// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT.

package armprogrammableconnectivity

import "time"

// ApplicationProperties - Details about the Application that would use the Operator's Network APIs.
type ApplicationProperties struct {
	// Description of the application.
	ApplicationDescription *string

	// The category that describes the application.
	ApplicationType *string

	// Legal name of the organization owning the application.
	LegalName *string

	// Name of the application.
	Name *string

	// A description of the organization owning the application.
	OrganizationDescription *string

	// Email address of the Privacy contact or Data Protection officer of the organization.
	PrivacyContactEmailAddress *string

	// Unique Tax Number for the user's organization in the country/region the APC Gateway is being purchased.
	TaxNumber *string
}

// Gateway - A Programmable Connectivity Gateway resource.
type Gateway struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The resource-specific properties for this resource.
	Properties *GatewayProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

// GatewayListResult - The response of a Gateway list operation.
type GatewayListResult struct {
	// REQUIRED; The Gateway items on this page
	Value []*Gateway

	// The link to the next page of items
	NextLink *string
}

// GatewayProperties - Gateway resource properties.
type GatewayProperties struct {
	// READ-ONLY; Base URL of the Gateway resource. This is the URL that the users would use to make Network API requests to the
	// Operators via Azure.
	GatewayBaseURL *string

	// READ-ONLY; List of Operator API Connections selected by the user.
	OperatorAPIConnections []*string

	// READ-ONLY; The status of the last operation on the Gateway resource.
	ProvisioningState *ProvisioningState
}

// GatewayTagsUpdate - The type used for updating tags in Gateway resources.
type GatewayTagsUpdate struct {
	// Resource tags.
	Tags map[string]*string
}

// MarketplaceProperties - Azure marketplace properties for a plan.
type MarketplaceProperties struct {
	// Azure marketplace Legacy Offer ID for this plan. This is used to fetch the details of the plan from the Azure marketplace.
	LegacyOfferID *string

	// Azure marketplace Offer ID for this plan.
	OfferID *string

	// Azure marketplace Plan ID for this plan.
	PlanID *string

	// Azure marketplace Publisher ID for this plan.
	PublisherID *string

	// Azure marketplace Term ID for this plan.
	TermID *string
}

// Operation - REST API Operation
//
// Details of a REST API operation, returned from the Resource Provider Operations API
type Operation struct {
	// Localized display information for this particular operation.
	Display *OperationDisplay

	// READ-ONLY; Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
	ActionType *ActionType

	// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
	// Resource Manager/control-plane operations.
	IsDataAction *bool

	// READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
	// "Microsoft.Compute/virtualMachines/capture/action"
	Name *string

	// READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
	// value is "user,system"
	Origin *Origin
}

// OperationDisplay - Localized display information for and operation.
type OperationDisplay struct {
	// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
	Description *string

	// READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
	// Machine", "Restart Virtual Machine".
	Operation *string

	// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
	// Compute".
	Provider *string

	// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
	// Schedule Collections".
	Resource *string
}

// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to
// get the next set of results.
type OperationListResult struct {
	// REQUIRED; The Operation items on this page
	Value []*Operation

	// The link to the next page of items
	NextLink *string
}

// OperatorAPIConnection - A Programmable Connectivity Operator API Connection resource
type OperatorAPIConnection struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The resource-specific properties for this resource.
	Properties *OperatorAPIConnectionProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

// OperatorAPIConnectionListResult - The response of a OperatorApiConnection list operation.
type OperatorAPIConnectionListResult struct {
	// REQUIRED; The OperatorApiConnection items on this page
	Value []*OperatorAPIConnection

	// The link to the next page of items
	NextLink *string
}

// OperatorAPIConnectionProperties - Operator API Connection resource properties that cannot be updated once a resource has
// been created.
type OperatorAPIConnectionProperties struct {
	// REQUIRED; Type of the account the user has with the Operator's Network API infrastructure. AzureManaged | UserManaged.
	AccountType *AccountType

	// REQUIRED; Reference to the APC Gateway resource ID.
	GatewayID *string

	// REQUIRED; Reference to the Operator API Plan Resource ID.
	OperatorAPIPlanID *string

	// Application ID of the App Developer that is registered with the Operator in a specific country/region.
	AppID *string

	// Application secret linked to the 'appId'. This should be stored securely and is not returned back when the resource information
	// is read.
	AppSecret *string

	// Details about the Application that would use the Operator's Network APIs.
	ConfiguredApplication *ApplicationProperties

	// Details about the SaaS offer purchased from the marketplace.
	SaasProperties *SaasProperties

	// READ-ONLY; The Network API for the current operator in the country/region provided in the linked Operator API Plan.
	CamaraAPIName *string

	// READ-ONLY; Name of the Operator in the linked Operator API Plan belongs to.
	OperatorName *string

	// READ-ONLY; The status of the last operation.
	ProvisioningState *ProvisioningState

	// READ-ONLY; The status of the OperatorApiConnection resource.
	Status *Status
}

// OperatorAPIConnectionUpdate - The type used for update operations of the OperatorApiConnection.
type OperatorAPIConnectionUpdate struct {
	// The resource-specific properties for this resource.
	Properties *OperatorAPIConnectionUpdateProperties

	// Resource tags.
	Tags map[string]*string
}

// OperatorAPIConnectionUpdateProperties - The updatable properties of the OperatorApiConnection.
type OperatorAPIConnectionUpdateProperties struct {
	// Application ID of the App Developer that is registered with the Operator in a specific country/region.
	AppID *string

	// Application secret linked to the 'appId'. This should be stored securely and is not returned back when the resource information
	// is read.
	AppSecret *string

	// Details about the Application that would use the Operator's Network APIs.
	ConfiguredApplication *ApplicationProperties

	// Reference to the Operator API Plan Resource ID.
	OperatorAPIPlanID *string

	// Details about the SaaS offer purchased from the marketplace.
	SaasProperties *SaasProperties
}

// OperatorAPIPlan - A Programmable Connectivity Operator API Plans resource. This is a readonly resource that indicates which
// Operator Network APIs are available in the user's subscription.
type OperatorAPIPlan struct {
	// The resource-specific properties for this resource.
	Properties *OperatorAPIPlanProperties

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

// OperatorAPIPlanListResult - The response of a OperatorApiPlan list operation.
type OperatorAPIPlanListResult struct {
	// REQUIRED; The OperatorApiPlan items on this page
	Value []*OperatorAPIPlan

	// The link to the next page of items
	NextLink *string
}

// OperatorAPIPlanProperties - Operator API Plan properties.
type OperatorAPIPlanProperties struct {
	// Standardized Network API name defined by CAMARA specifications.
	CamaraAPIName *string

	// The limits, if any, will be imposed by the operator.
	Limits *string

	// Azure marketplace properties for this plan.
	MarketplaceProperties *MarketplaceProperties

	// List of country/region names where this plan is being supported by Azure Marketplace.
	Markets []*string

	// Name of the Operator this plan belongs to.
	OperatorName *string

	// List of country/region names where this plan is being supported by the Operator.
	OperatorRegions []*string

	// List of Azure regions where this offer is supported.
	SupportedLocations []*string

	// READ-ONLY; The status of the last operation on the Gateway resource.
	ProvisioningState *ProvisioningState
}

// SaasProperties - Details about the SaaS offer purchased from the marketplace.
type SaasProperties struct {
	// Resource ID of the SaaS offer purchased from the marketplace.
	SaasResourceID *string

	// Subscription ID of the SaaS offer purchased from the marketplace.
	SaasSubscriptionID *string
}

// Status - Description of the current status of the OperatorApiConnection resource.
type Status struct {
	// Explanation of the current state of the OperatorApiConnection resource.
	Reason *string

	// Current state of the OperatorApiConnection resource.
	State *string
}

// SystemData - Metadata pertaining to creation and last modification of the resource.
type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time

	// The identity that created the resource.
	CreatedBy *string

	// The type of identity that created the resource.
	CreatedByType *CreatedByType

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time

	// The identity that last modified the resource.
	LastModifiedBy *string

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType
}
