Documentation
¶
Index ¶
- type AdvancedFilter
- type AdvancedFilterClassification
- type AdvancedFilterOperatorType
- type AlternativeAuthenticationNameSource
- type AzureADPartnerClientAuthentication
- type AzureADPartnerClientAuthenticationProperties
- type AzureFunctionEventSubscriptionDestination
- type AzureFunctionEventSubscriptionDestinationProperties
- type BoolEqualsAdvancedFilter
- type BoolEqualsFilter
- type CaCertificate
- type CaCertificateProperties
- type CaCertificateProvisioningState
- type CaCertificatesClient
- func (client *CaCertificatesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[CaCertificatesClientCreateOrUpdateResponse], error)
- func (client *CaCertificatesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[CaCertificatesClientDeleteResponse], error)
- func (client *CaCertificatesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (CaCertificatesClientGetResponse, error)
- func (client *CaCertificatesClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, ...) *runtime.Pager[CaCertificatesClientListByNamespaceResponse]
- type CaCertificatesClientBeginCreateOrUpdateOptions
- type CaCertificatesClientBeginDeleteOptions
- type CaCertificatesClientCreateOrUpdateResponse
- type CaCertificatesClientDeleteResponse
- type CaCertificatesClientGetOptions
- type CaCertificatesClientGetResponse
- type CaCertificatesClientListByNamespaceOptions
- type CaCertificatesClientListByNamespaceResponse
- type CaCertificatesListResult
- type Channel
- type ChannelProperties
- type ChannelProvisioningState
- type ChannelType
- type ChannelUpdateParameters
- type ChannelUpdateParametersProperties
- type ChannelsClient
- func (client *ChannelsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (*runtime.Poller[ChannelsClientDeleteResponse], error)
- func (client *ChannelsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (ChannelsClientCreateOrUpdateResponse, error)
- func (client *ChannelsClient) Get(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (ChannelsClientGetResponse, error)
- func (client *ChannelsClient) GetFullURL(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (ChannelsClientGetFullURLResponse, error)
- func (client *ChannelsClient) NewListByPartnerNamespacePager(resourceGroupName string, partnerNamespaceName string, ...) *runtime.Pager[ChannelsClientListByPartnerNamespaceResponse]
- func (client *ChannelsClient) Update(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (ChannelsClientUpdateResponse, error)
- type ChannelsClientBeginDeleteOptions
- type ChannelsClientCreateOrUpdateOptions
- type ChannelsClientCreateOrUpdateResponse
- type ChannelsClientDeleteResponse
- type ChannelsClientGetFullURLOptions
- type ChannelsClientGetFullURLResponse
- type ChannelsClientGetOptions
- type ChannelsClientGetResponse
- type ChannelsClientListByPartnerNamespaceOptions
- type ChannelsClientListByPartnerNamespaceResponse
- type ChannelsClientUpdateOptions
- type ChannelsClientUpdateResponse
- type ChannelsListResult
- type Client
- type ClientAuthenticationSettings
- type ClientCertificateAuthentication
- type ClientCertificateValidationScheme
- type ClientFactory
- func (c *ClientFactory) NewCaCertificatesClient() *CaCertificatesClient
- func (c *ClientFactory) NewChannelsClient() *ChannelsClient
- func (c *ClientFactory) NewClientGroupsClient() *ClientGroupsClient
- func (c *ClientFactory) NewClientsClient() *ClientsClient
- func (c *ClientFactory) NewDomainEventSubscriptionsClient() *DomainEventSubscriptionsClient
- func (c *ClientFactory) NewDomainTopicEventSubscriptionsClient() *DomainTopicEventSubscriptionsClient
- func (c *ClientFactory) NewDomainTopicsClient() *DomainTopicsClient
- func (c *ClientFactory) NewDomainsClient() *DomainsClient
- func (c *ClientFactory) NewEventSubscriptionsClient() *EventSubscriptionsClient
- func (c *ClientFactory) NewExtensionTopicsClient() *ExtensionTopicsClient
- func (c *ClientFactory) NewNamespaceTopicEventSubscriptionsClient() *NamespaceTopicEventSubscriptionsClient
- func (c *ClientFactory) NewNamespaceTopicsClient() *NamespaceTopicsClient
- func (c *ClientFactory) NewNamespacesClient() *NamespacesClient
- func (c *ClientFactory) NewNetworkSecurityPerimeterConfigurationsClient() *NetworkSecurityPerimeterConfigurationsClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewPartnerConfigurationsClient() *PartnerConfigurationsClient
- func (c *ClientFactory) NewPartnerDestinationsClient() *PartnerDestinationsClient
- func (c *ClientFactory) NewPartnerNamespacesClient() *PartnerNamespacesClient
- func (c *ClientFactory) NewPartnerRegistrationsClient() *PartnerRegistrationsClient
- func (c *ClientFactory) NewPartnerTopicEventSubscriptionsClient() *PartnerTopicEventSubscriptionsClient
- func (c *ClientFactory) NewPartnerTopicsClient() *PartnerTopicsClient
- func (c *ClientFactory) NewPermissionBindingsClient() *PermissionBindingsClient
- func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient
- func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient
- func (c *ClientFactory) NewSystemTopicEventSubscriptionsClient() *SystemTopicEventSubscriptionsClient
- func (c *ClientFactory) NewSystemTopicsClient() *SystemTopicsClient
- func (c *ClientFactory) NewTopicEventSubscriptionsClient() *TopicEventSubscriptionsClient
- func (c *ClientFactory) NewTopicSpacesClient() *TopicSpacesClient
- func (c *ClientFactory) NewTopicTypesClient() *TopicTypesClient
- func (c *ClientFactory) NewTopicsClient() *TopicsClient
- func (c *ClientFactory) NewVerifiedPartnersClient() *VerifiedPartnersClient
- type ClientGroup
- type ClientGroupProperties
- type ClientGroupProvisioningState
- type ClientGroupsClient
- func (client *ClientGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[ClientGroupsClientCreateOrUpdateResponse], error)
- func (client *ClientGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[ClientGroupsClientDeleteResponse], error)
- func (client *ClientGroupsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (ClientGroupsClientGetResponse, error)
- func (client *ClientGroupsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, ...) *runtime.Pager[ClientGroupsClientListByNamespaceResponse]
- type ClientGroupsClientBeginCreateOrUpdateOptions
- type ClientGroupsClientBeginDeleteOptions
- type ClientGroupsClientCreateOrUpdateResponse
- type ClientGroupsClientDeleteResponse
- type ClientGroupsClientGetOptions
- type ClientGroupsClientGetResponse
- type ClientGroupsClientListByNamespaceOptions
- type ClientGroupsClientListByNamespaceResponse
- type ClientGroupsListResult
- type ClientProperties
- type ClientProvisioningState
- type ClientState
- type ClientsClient
- func (client *ClientsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[ClientsClientCreateOrUpdateResponse], error)
- func (client *ClientsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[ClientsClientDeleteResponse], error)
- func (client *ClientsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (ClientsClientGetResponse, error)
- func (client *ClientsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, ...) *runtime.Pager[ClientsClientListByNamespaceResponse]
- type ClientsClientBeginCreateOrUpdateOptions
- type ClientsClientBeginDeleteOptions
- type ClientsClientCreateOrUpdateResponse
- type ClientsClientDeleteResponse
- type ClientsClientGetOptions
- type ClientsClientGetResponse
- type ClientsClientListByNamespaceOptions
- type ClientsClientListByNamespaceResponse
- type ClientsListResult
- type ConnectionState
- type CreatedByType
- type CustomDomainConfiguration
- type CustomDomainIdentity
- type CustomDomainIdentityType
- type CustomDomainOwnershipValidationResult
- type CustomDomainValidationState
- type CustomJwtAuthenticationManagedIdentity
- type CustomJwtAuthenticationManagedIdentityType
- type CustomJwtAuthenticationSettings
- type DataResidencyBoundary
- type DeadLetterDestination
- type DeadLetterDestinationClassification
- type DeadLetterEndPointType
- type DeadLetterWithResourceIdentity
- type DeliveryAttributeListResult
- type DeliveryAttributeMapping
- type DeliveryAttributeMappingClassification
- type DeliveryAttributeMappingType
- type DeliveryConfiguration
- type DeliveryMode
- type DeliverySchema
- type DeliveryWithResourceIdentity
- type Domain
- type DomainEventSubscriptionsClient
- func (client *DomainEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainEventSubscriptionsClientCreateOrUpdateResponse], error)
- func (client *DomainEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainEventSubscriptionsClientDeleteResponse], error)
- func (client *DomainEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainEventSubscriptionsClientUpdateResponse], error)
- func (client *DomainEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainEventSubscriptionsClientGetResponse, error)
- func (client *DomainEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainEventSubscriptionsClientGetDeliveryAttributesResponse, error)
- func (client *DomainEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainEventSubscriptionsClientGetFullURLResponse, error)
- func (client *DomainEventSubscriptionsClient) NewListPager(resourceGroupName string, domainName string, ...) *runtime.Pager[DomainEventSubscriptionsClientListResponse]
- type DomainEventSubscriptionsClientBeginCreateOrUpdateOptions
- type DomainEventSubscriptionsClientBeginDeleteOptions
- type DomainEventSubscriptionsClientBeginUpdateOptions
- type DomainEventSubscriptionsClientCreateOrUpdateResponse
- type DomainEventSubscriptionsClientDeleteResponse
- type DomainEventSubscriptionsClientGetDeliveryAttributesOptions
- type DomainEventSubscriptionsClientGetDeliveryAttributesResponse
- type DomainEventSubscriptionsClientGetFullURLOptions
- type DomainEventSubscriptionsClientGetFullURLResponse
- type DomainEventSubscriptionsClientGetOptions
- type DomainEventSubscriptionsClientGetResponse
- type DomainEventSubscriptionsClientListOptions
- type DomainEventSubscriptionsClientListResponse
- type DomainEventSubscriptionsClientUpdateResponse
- type DomainProperties
- type DomainProvisioningState
- type DomainRegenerateKeyRequest
- type DomainSharedAccessKeys
- type DomainTopic
- type DomainTopicEventSubscriptionsClient
- func (client *DomainTopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainTopicEventSubscriptionsClientCreateOrUpdateResponse], ...)
- func (client *DomainTopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainTopicEventSubscriptionsClientDeleteResponse], error)
- func (client *DomainTopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainTopicEventSubscriptionsClientUpdateResponse], error)
- func (client *DomainTopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainTopicEventSubscriptionsClientGetResponse, error)
- func (client *DomainTopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainTopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
- func (client *DomainTopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainTopicEventSubscriptionsClientGetFullURLResponse, error)
- func (client *DomainTopicEventSubscriptionsClient) NewListPager(resourceGroupName string, domainName string, topicName string, ...) *runtime.Pager[DomainTopicEventSubscriptionsClientListResponse]
- type DomainTopicEventSubscriptionsClientBeginCreateOrUpdateOptions
- type DomainTopicEventSubscriptionsClientBeginDeleteOptions
- type DomainTopicEventSubscriptionsClientBeginUpdateOptions
- type DomainTopicEventSubscriptionsClientCreateOrUpdateResponse
- type DomainTopicEventSubscriptionsClientDeleteResponse
- type DomainTopicEventSubscriptionsClientGetDeliveryAttributesOptions
- type DomainTopicEventSubscriptionsClientGetDeliveryAttributesResponse
- type DomainTopicEventSubscriptionsClientGetFullURLOptions
- type DomainTopicEventSubscriptionsClientGetFullURLResponse
- type DomainTopicEventSubscriptionsClientGetOptions
- type DomainTopicEventSubscriptionsClientGetResponse
- type DomainTopicEventSubscriptionsClientListOptions
- type DomainTopicEventSubscriptionsClientListResponse
- type DomainTopicEventSubscriptionsClientUpdateResponse
- type DomainTopicProperties
- type DomainTopicProvisioningState
- type DomainTopicsClient
- func (client *DomainTopicsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainTopicsClientCreateOrUpdateResponse], error)
- func (client *DomainTopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainTopicsClientDeleteResponse], error)
- func (client *DomainTopicsClient) Get(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainTopicsClientGetResponse, error)
- func (client *DomainTopicsClient) NewListByDomainPager(resourceGroupName string, domainName string, ...) *runtime.Pager[DomainTopicsClientListByDomainResponse]
- type DomainTopicsClientBeginCreateOrUpdateOptions
- type DomainTopicsClientBeginDeleteOptions
- type DomainTopicsClientCreateOrUpdateResponse
- type DomainTopicsClientDeleteResponse
- type DomainTopicsClientGetOptions
- type DomainTopicsClientGetResponse
- type DomainTopicsClientListByDomainOptions
- type DomainTopicsClientListByDomainResponse
- type DomainTopicsListResult
- type DomainUpdateParameterProperties
- type DomainUpdateParameters
- type DomainsClient
- func (client *DomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainsClientCreateOrUpdateResponse], error)
- func (client *DomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainsClientDeleteResponse], error)
- func (client *DomainsClient) BeginUpdate(ctx context.Context, resourceGroupName string, domainName string, ...) (*runtime.Poller[DomainsClientUpdateResponse], error)
- func (client *DomainsClient) Get(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainsClientGetResponse, error)
- func (client *DomainsClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainsClientListSharedAccessKeysResponse, error)
- func (client *DomainsClient) NewListByResourceGroupPager(resourceGroupName string, options *DomainsClientListByResourceGroupOptions) *runtime.Pager[DomainsClientListByResourceGroupResponse]
- func (client *DomainsClient) NewListBySubscriptionPager(options *DomainsClientListBySubscriptionOptions) *runtime.Pager[DomainsClientListBySubscriptionResponse]
- func (client *DomainsClient) RegenerateKey(ctx context.Context, resourceGroupName string, domainName string, ...) (DomainsClientRegenerateKeyResponse, error)
- type DomainsClientBeginCreateOrUpdateOptions
- type DomainsClientBeginDeleteOptions
- type DomainsClientBeginUpdateOptions
- type DomainsClientCreateOrUpdateResponse
- type DomainsClientDeleteResponse
- type DomainsClientGetOptions
- type DomainsClientGetResponse
- type DomainsClientListByResourceGroupOptions
- type DomainsClientListByResourceGroupResponse
- type DomainsClientListBySubscriptionOptions
- type DomainsClientListBySubscriptionResponse
- type DomainsClientListSharedAccessKeysOptions
- type DomainsClientListSharedAccessKeysResponse
- type DomainsClientRegenerateKeyOptions
- type DomainsClientRegenerateKeyResponse
- type DomainsClientUpdateResponse
- type DomainsListResult
- type DynamicDeliveryAttributeMapping
- type DynamicDeliveryAttributeMappingProperties
- type DynamicRoutingEnrichment
- type EndpointType
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type EventDefinitionKind
- type EventDeliverySchema
- type EventHubEventSubscriptionDestination
- type EventHubEventSubscriptionDestinationProperties
- type EventInputSchema
- type EventSubscription
- type EventSubscriptionDestination
- type EventSubscriptionDestinationClassification
- type EventSubscriptionFilter
- type EventSubscriptionFullURL
- type EventSubscriptionIdentity
- type EventSubscriptionIdentityType
- type EventSubscriptionProperties
- type EventSubscriptionProvisioningState
- type EventSubscriptionUpdateParameters
- type EventSubscriptionsClient
- func (client *EventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, scope string, eventSubscriptionName string, ...) (*runtime.Poller[EventSubscriptionsClientCreateOrUpdateResponse], error)
- func (client *EventSubscriptionsClient) BeginDelete(ctx context.Context, scope string, eventSubscriptionName string, ...) (*runtime.Poller[EventSubscriptionsClientDeleteResponse], error)
- func (client *EventSubscriptionsClient) BeginUpdate(ctx context.Context, scope string, eventSubscriptionName string, ...) (*runtime.Poller[EventSubscriptionsClientUpdateResponse], error)
- func (client *EventSubscriptionsClient) Get(ctx context.Context, scope string, eventSubscriptionName string, ...) (EventSubscriptionsClientGetResponse, error)
- func (client *EventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, scope string, eventSubscriptionName string, ...) (EventSubscriptionsClientGetDeliveryAttributesResponse, error)
- func (client *EventSubscriptionsClient) GetFullURL(ctx context.Context, scope string, eventSubscriptionName string, ...) (EventSubscriptionsClientGetFullURLResponse, error)
- func (client *EventSubscriptionsClient) NewListByDomainTopicPager(resourceGroupName string, domainName string, topicName string, ...) *runtime.Pager[EventSubscriptionsClientListByDomainTopicResponse]
- func (client *EventSubscriptionsClient) NewListByResourcePager(resourceGroupName string, providerNamespace string, resourceTypeName string, ...) *runtime.Pager[EventSubscriptionsClientListByResourceResponse]
- func (client *EventSubscriptionsClient) NewListGlobalByResourceGroupForTopicTypePager(resourceGroupName string, topicTypeName string, ...) ...
- func (client *EventSubscriptionsClient) NewListGlobalByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[EventSubscriptionsClientListGlobalByResourceGroupResponse]
- func (client *EventSubscriptionsClient) NewListGlobalBySubscriptionForTopicTypePager(topicTypeName string, ...) ...
- func (client *EventSubscriptionsClient) NewListGlobalBySubscriptionPager(options *EventSubscriptionsClientListGlobalBySubscriptionOptions) *runtime.Pager[EventSubscriptionsClientListGlobalBySubscriptionResponse]
- func (client *EventSubscriptionsClient) NewListRegionalByResourceGroupForTopicTypePager(resourceGroupName string, location string, topicTypeName string, ...) ...
- func (client *EventSubscriptionsClient) NewListRegionalByResourceGroupPager(resourceGroupName string, location string, ...) *runtime.Pager[EventSubscriptionsClientListRegionalByResourceGroupResponse]
- func (client *EventSubscriptionsClient) NewListRegionalBySubscriptionForTopicTypePager(location string, topicTypeName string, ...) ...
- func (client *EventSubscriptionsClient) NewListRegionalBySubscriptionPager(location string, ...) *runtime.Pager[EventSubscriptionsClientListRegionalBySubscriptionResponse]
- type EventSubscriptionsClientBeginCreateOrUpdateOptions
- type EventSubscriptionsClientBeginDeleteOptions
- type EventSubscriptionsClientBeginUpdateOptions
- type EventSubscriptionsClientCreateOrUpdateResponse
- type EventSubscriptionsClientDeleteResponse
- type EventSubscriptionsClientGetDeliveryAttributesOptions
- type EventSubscriptionsClientGetDeliveryAttributesResponse
- type EventSubscriptionsClientGetFullURLOptions
- type EventSubscriptionsClientGetFullURLResponse
- type EventSubscriptionsClientGetOptions
- type EventSubscriptionsClientGetResponse
- type EventSubscriptionsClientListByDomainTopicOptions
- type EventSubscriptionsClientListByDomainTopicResponse
- type EventSubscriptionsClientListByResourceOptions
- type EventSubscriptionsClientListByResourceResponse
- type EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeOptions
- type EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeResponse
- type EventSubscriptionsClientListGlobalByResourceGroupOptions
- type EventSubscriptionsClientListGlobalByResourceGroupResponse
- type EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeOptions
- type EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeResponse
- type EventSubscriptionsClientListGlobalBySubscriptionOptions
- type EventSubscriptionsClientListGlobalBySubscriptionResponse
- type EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeOptions
- type EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeResponse
- type EventSubscriptionsClientListRegionalByResourceGroupOptions
- type EventSubscriptionsClientListRegionalByResourceGroupResponse
- type EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeOptions
- type EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeResponse
- type EventSubscriptionsClientListRegionalBySubscriptionOptions
- type EventSubscriptionsClientListRegionalBySubscriptionResponse
- type EventSubscriptionsClientUpdateResponse
- type EventSubscriptionsListResult
- type EventType
- type EventTypeInfo
- type EventTypeProperties
- type EventTypesListResult
- type ExtendedLocation
- type ExtensionTopic
- type ExtensionTopicProperties
- type ExtensionTopicsClient
- type ExtensionTopicsClientGetOptions
- type ExtensionTopicsClientGetResponse
- type Filter
- type FilterClassification
- type FilterOperatorType
- type FiltersConfiguration
- type HybridConnectionEventSubscriptionDestination
- type HybridConnectionEventSubscriptionDestinationProperties
- type IPActionType
- type IdentityInfo
- type IdentityType
- type InboundIPRule
- type InlineEventProperties
- type InputSchema
- type InputSchemaMapping
- type InputSchemaMappingClassification
- type InputSchemaMappingType
- type IsNotNullAdvancedFilter
- type IsNotNullFilter
- type IsNullOrUndefinedAdvancedFilter
- type IsNullOrUndefinedFilter
- type IssuerCertificateInfo
- type JSONField
- type JSONFieldWithDefault
- type JSONInputSchemaMapping
- type JSONInputSchemaMappingProperties
- type MonitorAlertEventSubscriptionDestination
- type MonitorAlertEventSubscriptionDestinationProperties
- type MonitorAlertSeverity
- type Namespace
- type NamespaceProperties
- type NamespaceProvisioningState
- type NamespaceRegenerateKeyRequest
- type NamespaceSKU
- type NamespaceSharedAccessKeys
- type NamespaceTopic
- type NamespaceTopicEventSubscriptionDestination
- type NamespaceTopicEventSubscriptionDestinationProperties
- type NamespaceTopicEventSubscriptionsClient
- func (client *NamespaceTopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespaceTopicEventSubscriptionsClientCreateOrUpdateResponse], ...)
- func (client *NamespaceTopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespaceTopicEventSubscriptionsClientDeleteResponse], error)
- func (client *NamespaceTopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespaceTopicEventSubscriptionsClientUpdateResponse], error)
- func (client *NamespaceTopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (NamespaceTopicEventSubscriptionsClientGetResponse, error)
- func (client *NamespaceTopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, namespaceName string, ...) (NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
- func (client *NamespaceTopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, namespaceName string, ...) (NamespaceTopicEventSubscriptionsClientGetFullURLResponse, error)
- func (client *NamespaceTopicEventSubscriptionsClient) NewListByNamespaceTopicPager(resourceGroupName string, namespaceName string, topicName string, ...) ...
- type NamespaceTopicEventSubscriptionsClientBeginCreateOrUpdateOptions
- type NamespaceTopicEventSubscriptionsClientBeginDeleteOptions
- type NamespaceTopicEventSubscriptionsClientBeginUpdateOptions
- type NamespaceTopicEventSubscriptionsClientCreateOrUpdateResponse
- type NamespaceTopicEventSubscriptionsClientDeleteResponse
- type NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesOptions
- type NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesResponse
- type NamespaceTopicEventSubscriptionsClientGetFullURLOptions
- type NamespaceTopicEventSubscriptionsClientGetFullURLResponse
- type NamespaceTopicEventSubscriptionsClientGetOptions
- type NamespaceTopicEventSubscriptionsClientGetResponse
- type NamespaceTopicEventSubscriptionsClientListByNamespaceTopicOptions
- type NamespaceTopicEventSubscriptionsClientListByNamespaceTopicResponse
- type NamespaceTopicEventSubscriptionsClientUpdateResponse
- type NamespaceTopicProperties
- type NamespaceTopicProvisioningState
- type NamespaceTopicUpdateParameterProperties
- type NamespaceTopicUpdateParameters
- type NamespaceTopicsClient
- func (client *NamespaceTopicsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespaceTopicsClientCreateOrUpdateResponse], error)
- func (client *NamespaceTopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespaceTopicsClientDeleteResponse], error)
- func (client *NamespaceTopicsClient) BeginRegenerateKey(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespaceTopicsClientRegenerateKeyResponse], error)
- func (client *NamespaceTopicsClient) BeginUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespaceTopicsClientUpdateResponse], error)
- func (client *NamespaceTopicsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (NamespaceTopicsClientGetResponse, error)
- func (client *NamespaceTopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, namespaceName string, ...) (NamespaceTopicsClientListSharedAccessKeysResponse, error)
- func (client *NamespaceTopicsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, ...) *runtime.Pager[NamespaceTopicsClientListByNamespaceResponse]
- type NamespaceTopicsClientBeginCreateOrUpdateOptions
- type NamespaceTopicsClientBeginDeleteOptions
- type NamespaceTopicsClientBeginRegenerateKeyOptions
- type NamespaceTopicsClientBeginUpdateOptions
- type NamespaceTopicsClientCreateOrUpdateResponse
- type NamespaceTopicsClientDeleteResponse
- type NamespaceTopicsClientGetOptions
- type NamespaceTopicsClientGetResponse
- type NamespaceTopicsClientListByNamespaceOptions
- type NamespaceTopicsClientListByNamespaceResponse
- type NamespaceTopicsClientListSharedAccessKeysOptions
- type NamespaceTopicsClientListSharedAccessKeysResponse
- type NamespaceTopicsClientRegenerateKeyResponse
- type NamespaceTopicsClientUpdateResponse
- type NamespaceTopicsListResult
- type NamespaceUpdateParameterProperties
- type NamespaceUpdateParameters
- type NamespacesClient
- func (client *NamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespacesClientCreateOrUpdateResponse], error)
- func (client *NamespacesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespacesClientDeleteResponse], error)
- func (client *NamespacesClient) BeginRegenerateKey(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespacesClientRegenerateKeyResponse], error)
- func (client *NamespacesClient) BeginUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespacesClientUpdateResponse], error)
- func (client *NamespacesClient) BeginValidateCustomDomainOwnership(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[NamespacesClientValidateCustomDomainOwnershipResponse], error)
- func (client *NamespacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (NamespacesClientGetResponse, error)
- func (client *NamespacesClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, namespaceName string, ...) (NamespacesClientListSharedAccessKeysResponse, error)
- func (client *NamespacesClient) NewListByResourceGroupPager(resourceGroupName string, options *NamespacesClientListByResourceGroupOptions) *runtime.Pager[NamespacesClientListByResourceGroupResponse]
- func (client *NamespacesClient) NewListBySubscriptionPager(options *NamespacesClientListBySubscriptionOptions) *runtime.Pager[NamespacesClientListBySubscriptionResponse]
- type NamespacesClientBeginCreateOrUpdateOptions
- type NamespacesClientBeginDeleteOptions
- type NamespacesClientBeginRegenerateKeyOptions
- type NamespacesClientBeginUpdateOptions
- type NamespacesClientBeginValidateCustomDomainOwnershipOptions
- type NamespacesClientCreateOrUpdateResponse
- type NamespacesClientDeleteResponse
- type NamespacesClientGetOptions
- type NamespacesClientGetResponse
- type NamespacesClientListByResourceGroupOptions
- type NamespacesClientListByResourceGroupResponse
- type NamespacesClientListBySubscriptionOptions
- type NamespacesClientListBySubscriptionResponse
- type NamespacesClientListSharedAccessKeysOptions
- type NamespacesClientListSharedAccessKeysResponse
- type NamespacesClientRegenerateKeyResponse
- type NamespacesClientUpdateResponse
- type NamespacesClientValidateCustomDomainOwnershipResponse
- type NamespacesListResult
- type NetworkSecurityPerimeterAssociationAccessMode
- type NetworkSecurityPerimeterConfigProvisioningState
- type NetworkSecurityPerimeterConfiguration
- type NetworkSecurityPerimeterConfigurationIssueSeverity
- type NetworkSecurityPerimeterConfigurationIssueType
- type NetworkSecurityPerimeterConfigurationIssues
- type NetworkSecurityPerimeterConfigurationIssuesProperties
- type NetworkSecurityPerimeterConfigurationList
- type NetworkSecurityPerimeterConfigurationProfile
- type NetworkSecurityPerimeterConfigurationProperties
- type NetworkSecurityPerimeterConfigurationsClient
- func (client *NetworkSecurityPerimeterConfigurationsClient) BeginReconcile(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[NetworkSecurityPerimeterConfigurationsClientReconcileResponse], ...)
- func (client *NetworkSecurityPerimeterConfigurationsClient) Get(ctx context.Context, resourceGroupName string, ...) (NetworkSecurityPerimeterConfigurationsClientGetResponse, error)
- func (client *NetworkSecurityPerimeterConfigurationsClient) NewListPager(resourceGroupName string, resourceType NetworkSecurityPerimeterResourceType, ...) *runtime.Pager[NetworkSecurityPerimeterConfigurationsClientListResponse]
- type NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions
- type NetworkSecurityPerimeterConfigurationsClientGetOptions
- type NetworkSecurityPerimeterConfigurationsClientGetResponse
- type NetworkSecurityPerimeterConfigurationsClientListOptions
- type NetworkSecurityPerimeterConfigurationsClientListResponse
- type NetworkSecurityPerimeterConfigurationsClientReconcileResponse
- type NetworkSecurityPerimeterInfo
- type NetworkSecurityPerimeterProfileAccessRule
- type NetworkSecurityPerimeterProfileAccessRuleDirection
- type NetworkSecurityPerimeterProfileAccessRuleProperties
- type NetworkSecurityPerimeterResourceType
- type NetworkSecurityPerimeterSubscription
- type NumberGreaterThanAdvancedFilter
- type NumberGreaterThanFilter
- type NumberGreaterThanOrEqualsAdvancedFilter
- type NumberGreaterThanOrEqualsFilter
- type NumberInAdvancedFilter
- type NumberInFilter
- type NumberInRangeAdvancedFilter
- type NumberInRangeFilter
- type NumberLessThanAdvancedFilter
- type NumberLessThanFilter
- type NumberLessThanOrEqualsAdvancedFilter
- type NumberLessThanOrEqualsFilter
- type NumberNotInAdvancedFilter
- type NumberNotInFilter
- type NumberNotInRangeAdvancedFilter
- type NumberNotInRangeFilter
- type Operation
- type OperationInfo
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type OperationsListResult
- type Partner
- type PartnerAuthorization
- type PartnerClientAuthentication
- type PartnerClientAuthenticationClassification
- type PartnerClientAuthenticationType
- type PartnerConfiguration
- type PartnerConfigurationProperties
- type PartnerConfigurationProvisioningState
- type PartnerConfigurationUpdateParameterProperties
- type PartnerConfigurationUpdateParameters
- type PartnerConfigurationsClient
- func (client *PartnerConfigurationsClient) AuthorizePartner(ctx context.Context, resourceGroupName string, partnerInfo Partner, ...) (PartnerConfigurationsClientAuthorizePartnerResponse, error)
- func (client *PartnerConfigurationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[PartnerConfigurationsClientCreateOrUpdateResponse], error)
- func (client *PartnerConfigurationsClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[PartnerConfigurationsClientDeleteResponse], error)
- func (client *PartnerConfigurationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[PartnerConfigurationsClientUpdateResponse], error)
- func (client *PartnerConfigurationsClient) Get(ctx context.Context, resourceGroupName string, ...) (PartnerConfigurationsClientGetResponse, error)
- func (client *PartnerConfigurationsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[PartnerConfigurationsClientListByResourceGroupResponse]
- func (client *PartnerConfigurationsClient) NewListBySubscriptionPager(options *PartnerConfigurationsClientListBySubscriptionOptions) *runtime.Pager[PartnerConfigurationsClientListBySubscriptionResponse]
- func (client *PartnerConfigurationsClient) UnauthorizePartner(ctx context.Context, resourceGroupName string, partnerInfo Partner, ...) (PartnerConfigurationsClientUnauthorizePartnerResponse, error)
- type PartnerConfigurationsClientAuthorizePartnerOptions
- type PartnerConfigurationsClientAuthorizePartnerResponse
- type PartnerConfigurationsClientBeginCreateOrUpdateOptions
- type PartnerConfigurationsClientBeginDeleteOptions
- type PartnerConfigurationsClientBeginUpdateOptions
- type PartnerConfigurationsClientCreateOrUpdateResponse
- type PartnerConfigurationsClientDeleteResponse
- type PartnerConfigurationsClientGetOptions
- type PartnerConfigurationsClientGetResponse
- type PartnerConfigurationsClientListByResourceGroupOptions
- type PartnerConfigurationsClientListByResourceGroupResponse
- type PartnerConfigurationsClientListBySubscriptionOptions
- type PartnerConfigurationsClientListBySubscriptionResponse
- type PartnerConfigurationsClientUnauthorizePartnerOptions
- type PartnerConfigurationsClientUnauthorizePartnerResponse
- type PartnerConfigurationsClientUpdateResponse
- type PartnerConfigurationsListResult
- type PartnerDestination
- type PartnerDestinationActivationState
- type PartnerDestinationInfo
- type PartnerDestinationInfoClassification
- type PartnerDestinationProperties
- type PartnerDestinationProvisioningState
- type PartnerDestinationUpdateParameters
- type PartnerDestinationsClient
- func (client *PartnerDestinationsClient) Activate(ctx context.Context, resourceGroupName string, partnerDestinationName string, ...) (PartnerDestinationsClientActivateResponse, error)
- func (client *PartnerDestinationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, partnerDestinationName string, ...) (*runtime.Poller[PartnerDestinationsClientCreateOrUpdateResponse], error)
- func (client *PartnerDestinationsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerDestinationName string, ...) (*runtime.Poller[PartnerDestinationsClientDeleteResponse], error)
- func (client *PartnerDestinationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, partnerDestinationName string, ...) (*runtime.Poller[PartnerDestinationsClientUpdateResponse], error)
- func (client *PartnerDestinationsClient) Get(ctx context.Context, resourceGroupName string, partnerDestinationName string, ...) (PartnerDestinationsClientGetResponse, error)
- func (client *PartnerDestinationsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[PartnerDestinationsClientListByResourceGroupResponse]
- func (client *PartnerDestinationsClient) NewListBySubscriptionPager(options *PartnerDestinationsClientListBySubscriptionOptions) *runtime.Pager[PartnerDestinationsClientListBySubscriptionResponse]
- type PartnerDestinationsClientActivateOptions
- type PartnerDestinationsClientActivateResponse
- type PartnerDestinationsClientBeginCreateOrUpdateOptions
- type PartnerDestinationsClientBeginDeleteOptions
- type PartnerDestinationsClientBeginUpdateOptions
- type PartnerDestinationsClientCreateOrUpdateResponse
- type PartnerDestinationsClientDeleteResponse
- type PartnerDestinationsClientGetOptions
- type PartnerDestinationsClientGetResponse
- type PartnerDestinationsClientListByResourceGroupOptions
- type PartnerDestinationsClientListByResourceGroupResponse
- type PartnerDestinationsClientListBySubscriptionOptions
- type PartnerDestinationsClientListBySubscriptionResponse
- type PartnerDestinationsClientUpdateResponse
- type PartnerDestinationsListResult
- type PartnerDetails
- type PartnerEndpointType
- type PartnerEventSubscriptionDestination
- type PartnerEventSubscriptionDestinationProperties
- type PartnerNamespace
- type PartnerNamespaceProperties
- type PartnerNamespaceProvisioningState
- type PartnerNamespaceRegenerateKeyRequest
- type PartnerNamespaceSharedAccessKeys
- type PartnerNamespaceUpdateParameterProperties
- type PartnerNamespaceUpdateParameters
- type PartnerNamespacesClient
- func (client *PartnerNamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (*runtime.Poller[PartnerNamespacesClientCreateOrUpdateResponse], error)
- func (client *PartnerNamespacesClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (*runtime.Poller[PartnerNamespacesClientDeleteResponse], error)
- func (client *PartnerNamespacesClient) BeginUpdate(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (*runtime.Poller[PartnerNamespacesClientUpdateResponse], error)
- func (client *PartnerNamespacesClient) Get(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (PartnerNamespacesClientGetResponse, error)
- func (client *PartnerNamespacesClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (PartnerNamespacesClientListSharedAccessKeysResponse, error)
- func (client *PartnerNamespacesClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[PartnerNamespacesClientListByResourceGroupResponse]
- func (client *PartnerNamespacesClient) NewListBySubscriptionPager(options *PartnerNamespacesClientListBySubscriptionOptions) *runtime.Pager[PartnerNamespacesClientListBySubscriptionResponse]
- func (client *PartnerNamespacesClient) RegenerateKey(ctx context.Context, resourceGroupName string, partnerNamespaceName string, ...) (PartnerNamespacesClientRegenerateKeyResponse, error)
- type PartnerNamespacesClientBeginCreateOrUpdateOptions
- type PartnerNamespacesClientBeginDeleteOptions
- type PartnerNamespacesClientBeginUpdateOptions
- type PartnerNamespacesClientCreateOrUpdateResponse
- type PartnerNamespacesClientDeleteResponse
- type PartnerNamespacesClientGetOptions
- type PartnerNamespacesClientGetResponse
- type PartnerNamespacesClientListByResourceGroupOptions
- type PartnerNamespacesClientListByResourceGroupResponse
- type PartnerNamespacesClientListBySubscriptionOptions
- type PartnerNamespacesClientListBySubscriptionResponse
- type PartnerNamespacesClientListSharedAccessKeysOptions
- type PartnerNamespacesClientListSharedAccessKeysResponse
- type PartnerNamespacesClientRegenerateKeyOptions
- type PartnerNamespacesClientRegenerateKeyResponse
- type PartnerNamespacesClientUpdateResponse
- type PartnerNamespacesListResult
- type PartnerRegistration
- type PartnerRegistrationProperties
- type PartnerRegistrationProvisioningState
- type PartnerRegistrationUpdateParameters
- type PartnerRegistrationsClient
- func (client *PartnerRegistrationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, partnerRegistrationName string, ...) (*runtime.Poller[PartnerRegistrationsClientCreateOrUpdateResponse], error)
- func (client *PartnerRegistrationsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerRegistrationName string, ...) (*runtime.Poller[PartnerRegistrationsClientDeleteResponse], error)
- func (client *PartnerRegistrationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, partnerRegistrationName string, ...) (*runtime.Poller[PartnerRegistrationsClientUpdateResponse], error)
- func (client *PartnerRegistrationsClient) Get(ctx context.Context, resourceGroupName string, partnerRegistrationName string, ...) (PartnerRegistrationsClientGetResponse, error)
- func (client *PartnerRegistrationsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[PartnerRegistrationsClientListByResourceGroupResponse]
- func (client *PartnerRegistrationsClient) NewListBySubscriptionPager(options *PartnerRegistrationsClientListBySubscriptionOptions) *runtime.Pager[PartnerRegistrationsClientListBySubscriptionResponse]
- type PartnerRegistrationsClientBeginCreateOrUpdateOptions
- type PartnerRegistrationsClientBeginDeleteOptions
- type PartnerRegistrationsClientBeginUpdateOptions
- type PartnerRegistrationsClientCreateOrUpdateResponse
- type PartnerRegistrationsClientDeleteResponse
- type PartnerRegistrationsClientGetOptions
- type PartnerRegistrationsClientGetResponse
- type PartnerRegistrationsClientListByResourceGroupOptions
- type PartnerRegistrationsClientListByResourceGroupResponse
- type PartnerRegistrationsClientListBySubscriptionOptions
- type PartnerRegistrationsClientListBySubscriptionResponse
- type PartnerRegistrationsClientUpdateResponse
- type PartnerRegistrationsListResult
- type PartnerTopic
- type PartnerTopicActivationState
- type PartnerTopicEventSubscriptionsClient
- func (client *PartnerTopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (*runtime.Poller[PartnerTopicEventSubscriptionsClientCreateOrUpdateResponse], ...)
- func (client *PartnerTopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (*runtime.Poller[PartnerTopicEventSubscriptionsClientDeleteResponse], error)
- func (client *PartnerTopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (*runtime.Poller[PartnerTopicEventSubscriptionsClientUpdateResponse], error)
- func (client *PartnerTopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (PartnerTopicEventSubscriptionsClientGetResponse, error)
- func (client *PartnerTopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (PartnerTopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
- func (client *PartnerTopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (PartnerTopicEventSubscriptionsClientGetFullURLResponse, error)
- func (client *PartnerTopicEventSubscriptionsClient) NewListByPartnerTopicPager(resourceGroupName string, partnerTopicName string, ...) *runtime.Pager[PartnerTopicEventSubscriptionsClientListByPartnerTopicResponse]
- type PartnerTopicEventSubscriptionsClientBeginCreateOrUpdateOptions
- type PartnerTopicEventSubscriptionsClientBeginDeleteOptions
- type PartnerTopicEventSubscriptionsClientBeginUpdateOptions
- type PartnerTopicEventSubscriptionsClientCreateOrUpdateResponse
- type PartnerTopicEventSubscriptionsClientDeleteResponse
- type PartnerTopicEventSubscriptionsClientGetDeliveryAttributesOptions
- type PartnerTopicEventSubscriptionsClientGetDeliveryAttributesResponse
- type PartnerTopicEventSubscriptionsClientGetFullURLOptions
- type PartnerTopicEventSubscriptionsClientGetFullURLResponse
- type PartnerTopicEventSubscriptionsClientGetOptions
- type PartnerTopicEventSubscriptionsClientGetResponse
- type PartnerTopicEventSubscriptionsClientListByPartnerTopicOptions
- type PartnerTopicEventSubscriptionsClientListByPartnerTopicResponse
- type PartnerTopicEventSubscriptionsClientUpdateResponse
- type PartnerTopicInfo
- type PartnerTopicProperties
- type PartnerTopicProvisioningState
- type PartnerTopicRoutingMode
- type PartnerTopicUpdateParameters
- type PartnerTopicsClient
- func (client *PartnerTopicsClient) Activate(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (PartnerTopicsClientActivateResponse, error)
- func (client *PartnerTopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (*runtime.Poller[PartnerTopicsClientDeleteResponse], error)
- func (client *PartnerTopicsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (PartnerTopicsClientCreateOrUpdateResponse, error)
- func (client *PartnerTopicsClient) Deactivate(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (PartnerTopicsClientDeactivateResponse, error)
- func (client *PartnerTopicsClient) Get(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (PartnerTopicsClientGetResponse, error)
- func (client *PartnerTopicsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[PartnerTopicsClientListByResourceGroupResponse]
- func (client *PartnerTopicsClient) NewListBySubscriptionPager(options *PartnerTopicsClientListBySubscriptionOptions) *runtime.Pager[PartnerTopicsClientListBySubscriptionResponse]
- func (client *PartnerTopicsClient) Update(ctx context.Context, resourceGroupName string, partnerTopicName string, ...) (PartnerTopicsClientUpdateResponse, error)
- type PartnerTopicsClientActivateOptions
- type PartnerTopicsClientActivateResponse
- type PartnerTopicsClientBeginDeleteOptions
- type PartnerTopicsClientCreateOrUpdateOptions
- type PartnerTopicsClientCreateOrUpdateResponse
- type PartnerTopicsClientDeactivateOptions
- type PartnerTopicsClientDeactivateResponse
- type PartnerTopicsClientDeleteResponse
- type PartnerTopicsClientGetOptions
- type PartnerTopicsClientGetResponse
- type PartnerTopicsClientListByResourceGroupOptions
- type PartnerTopicsClientListByResourceGroupResponse
- type PartnerTopicsClientListBySubscriptionOptions
- type PartnerTopicsClientListBySubscriptionResponse
- type PartnerTopicsClientUpdateOptions
- type PartnerTopicsClientUpdateResponse
- type PartnerTopicsListResult
- type PartnerUpdateDestinationInfo
- type PartnerUpdateDestinationInfoClassification
- type PartnerUpdateTopicInfo
- type PermissionBinding
- type PermissionBindingProperties
- type PermissionBindingProvisioningState
- type PermissionBindingsClient
- func (client *PermissionBindingsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[PermissionBindingsClientCreateOrUpdateResponse], error)
- func (client *PermissionBindingsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[PermissionBindingsClientDeleteResponse], error)
- func (client *PermissionBindingsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (PermissionBindingsClientGetResponse, error)
- func (client *PermissionBindingsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, ...) *runtime.Pager[PermissionBindingsClientListByNamespaceResponse]
- type PermissionBindingsClientBeginCreateOrUpdateOptions
- type PermissionBindingsClientBeginDeleteOptions
- type PermissionBindingsClientCreateOrUpdateResponse
- type PermissionBindingsClientDeleteResponse
- type PermissionBindingsClientGetOptions
- type PermissionBindingsClientGetResponse
- type PermissionBindingsClientListByNamespaceOptions
- type PermissionBindingsClientListByNamespaceResponse
- type PermissionBindingsListResult
- type PermissionType
- type PersistedConnectionStatus
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionsClient
- func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[PrivateEndpointConnectionsClientUpdateResponse], error)
- func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, ...) (PrivateEndpointConnectionsClientGetResponse, error)
- func (client *PrivateEndpointConnectionsClient) NewListByResourcePager(resourceGroupName string, parentType PrivateEndpointConnectionsParentType, ...) *runtime.Pager[PrivateEndpointConnectionsClientListByResourceResponse]
- type PrivateEndpointConnectionsClientBeginDeleteOptions
- type PrivateEndpointConnectionsClientBeginUpdateOptions
- type PrivateEndpointConnectionsClientDeleteResponse
- type PrivateEndpointConnectionsClientGetOptions
- type PrivateEndpointConnectionsClientGetResponse
- type PrivateEndpointConnectionsClientListByResourceOptions
- type PrivateEndpointConnectionsClientListByResourceResponse
- type PrivateEndpointConnectionsClientUpdateResponse
- type PrivateEndpointConnectionsParentType
- type PrivateLinkResource
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesClient
- func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, parentType string, ...) (PrivateLinkResourcesClientGetResponse, error)
- func (client *PrivateLinkResourcesClient) NewListByResourcePager(resourceGroupName string, parentType string, parentName string, ...) *runtime.Pager[PrivateLinkResourcesClientListByResourceResponse]
- type PrivateLinkResourcesClientGetOptions
- type PrivateLinkResourcesClientGetResponse
- type PrivateLinkResourcesClientListByResourceOptions
- type PrivateLinkResourcesClientListByResourceResponse
- type PrivateLinkResourcesListResult
- type PublicNetworkAccess
- type PublisherType
- type PushInfo
- type QueueInfo
- type ReadinessState
- type Resource
- type ResourceAssociation
- type ResourceKind
- type ResourceMoveChangeHistory
- type ResourceProvisioningState
- type ResourceRegionType
- type ResourceSKU
- type RetryPolicy
- type RoutingEnrichments
- type RoutingIdentityInfo
- type RoutingIdentityType
- type SKU
- type SKUName
- type ServiceBusQueueEventSubscriptionDestination
- type ServiceBusQueueEventSubscriptionDestinationProperties
- type ServiceBusTopicEventSubscriptionDestination
- type ServiceBusTopicEventSubscriptionDestinationProperties
- type StaticDeliveryAttributeMapping
- type StaticDeliveryAttributeMappingProperties
- type StaticRoutingEnrichment
- type StaticRoutingEnrichmentClassification
- type StaticRoutingEnrichmentType
- type StaticStringRoutingEnrichment
- type StorageBlobDeadLetterDestination
- type StorageBlobDeadLetterDestinationProperties
- type StorageQueueEventSubscriptionDestination
- type StorageQueueEventSubscriptionDestinationProperties
- type StringBeginsWithAdvancedFilter
- type StringBeginsWithFilter
- type StringContainsAdvancedFilter
- type StringContainsFilter
- type StringEndsWithAdvancedFilter
- type StringEndsWithFilter
- type StringInAdvancedFilter
- type StringInFilter
- type StringNotBeginsWithAdvancedFilter
- type StringNotBeginsWithFilter
- type StringNotContainsAdvancedFilter
- type StringNotContainsFilter
- type StringNotEndsWithAdvancedFilter
- type StringNotEndsWithFilter
- type StringNotInAdvancedFilter
- type StringNotInFilter
- type Subscription
- type SubscriptionFullURL
- type SubscriptionProperties
- type SubscriptionProvisioningState
- type SubscriptionUpdateParameters
- type SubscriptionUpdateParametersProperties
- type SubscriptionsListResult
- type SystemData
- type SystemTopic
- type SystemTopicEventSubscriptionsClient
- func (client *SystemTopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (*runtime.Poller[SystemTopicEventSubscriptionsClientCreateOrUpdateResponse], ...)
- func (client *SystemTopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (*runtime.Poller[SystemTopicEventSubscriptionsClientDeleteResponse], error)
- func (client *SystemTopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (*runtime.Poller[SystemTopicEventSubscriptionsClientUpdateResponse], error)
- func (client *SystemTopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (SystemTopicEventSubscriptionsClientGetResponse, error)
- func (client *SystemTopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (SystemTopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
- func (client *SystemTopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (SystemTopicEventSubscriptionsClientGetFullURLResponse, error)
- func (client *SystemTopicEventSubscriptionsClient) NewListBySystemTopicPager(resourceGroupName string, systemTopicName string, ...) *runtime.Pager[SystemTopicEventSubscriptionsClientListBySystemTopicResponse]
- type SystemTopicEventSubscriptionsClientBeginCreateOrUpdateOptions
- type SystemTopicEventSubscriptionsClientBeginDeleteOptions
- type SystemTopicEventSubscriptionsClientBeginUpdateOptions
- type SystemTopicEventSubscriptionsClientCreateOrUpdateResponse
- type SystemTopicEventSubscriptionsClientDeleteResponse
- type SystemTopicEventSubscriptionsClientGetDeliveryAttributesOptions
- type SystemTopicEventSubscriptionsClientGetDeliveryAttributesResponse
- type SystemTopicEventSubscriptionsClientGetFullURLOptions
- type SystemTopicEventSubscriptionsClientGetFullURLResponse
- type SystemTopicEventSubscriptionsClientGetOptions
- type SystemTopicEventSubscriptionsClientGetResponse
- type SystemTopicEventSubscriptionsClientListBySystemTopicOptions
- type SystemTopicEventSubscriptionsClientListBySystemTopicResponse
- type SystemTopicEventSubscriptionsClientUpdateResponse
- type SystemTopicProperties
- type SystemTopicUpdateParameters
- type SystemTopicsClient
- func (client *SystemTopicsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (*runtime.Poller[SystemTopicsClientCreateOrUpdateResponse], error)
- func (client *SystemTopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (*runtime.Poller[SystemTopicsClientDeleteResponse], error)
- func (client *SystemTopicsClient) BeginUpdate(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (*runtime.Poller[SystemTopicsClientUpdateResponse], error)
- func (client *SystemTopicsClient) Get(ctx context.Context, resourceGroupName string, systemTopicName string, ...) (SystemTopicsClientGetResponse, error)
- func (client *SystemTopicsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[SystemTopicsClientListByResourceGroupResponse]
- func (client *SystemTopicsClient) NewListBySubscriptionPager(options *SystemTopicsClientListBySubscriptionOptions) *runtime.Pager[SystemTopicsClientListBySubscriptionResponse]
- type SystemTopicsClientBeginCreateOrUpdateOptions
- type SystemTopicsClientBeginDeleteOptions
- type SystemTopicsClientBeginUpdateOptions
- type SystemTopicsClientCreateOrUpdateResponse
- type SystemTopicsClientDeleteResponse
- type SystemTopicsClientGetOptions
- type SystemTopicsClientGetResponse
- type SystemTopicsClientListByResourceGroupOptions
- type SystemTopicsClientListByResourceGroupResponse
- type SystemTopicsClientListBySubscriptionOptions
- type SystemTopicsClientListBySubscriptionResponse
- type SystemTopicsClientUpdateResponse
- type SystemTopicsListResult
- type TLSVersion
- type Topic
- type TopicEventSubscriptionsClient
- func (client *TopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, topicName string, ...) (*runtime.Poller[TopicEventSubscriptionsClientCreateOrUpdateResponse], error)
- func (client *TopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, topicName string, ...) (*runtime.Poller[TopicEventSubscriptionsClientDeleteResponse], error)
- func (client *TopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, topicName string, ...) (*runtime.Poller[TopicEventSubscriptionsClientUpdateResponse], error)
- func (client *TopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, topicName string, ...) (TopicEventSubscriptionsClientGetResponse, error)
- func (client *TopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, topicName string, ...) (TopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
- func (client *TopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, topicName string, ...) (TopicEventSubscriptionsClientGetFullURLResponse, error)
- func (client *TopicEventSubscriptionsClient) NewListPager(resourceGroupName string, topicName string, ...) *runtime.Pager[TopicEventSubscriptionsClientListResponse]
- type TopicEventSubscriptionsClientBeginCreateOrUpdateOptions
- type TopicEventSubscriptionsClientBeginDeleteOptions
- type TopicEventSubscriptionsClientBeginUpdateOptions
- type TopicEventSubscriptionsClientCreateOrUpdateResponse
- type TopicEventSubscriptionsClientDeleteResponse
- type TopicEventSubscriptionsClientGetDeliveryAttributesOptions
- type TopicEventSubscriptionsClientGetDeliveryAttributesResponse
- type TopicEventSubscriptionsClientGetFullURLOptions
- type TopicEventSubscriptionsClientGetFullURLResponse
- type TopicEventSubscriptionsClientGetOptions
- type TopicEventSubscriptionsClientGetResponse
- type TopicEventSubscriptionsClientListOptions
- type TopicEventSubscriptionsClientListResponse
- type TopicEventSubscriptionsClientUpdateResponse
- type TopicProperties
- type TopicProvisioningState
- type TopicRegenerateKeyRequest
- type TopicSharedAccessKeys
- type TopicSpace
- type TopicSpaceProperties
- type TopicSpaceProvisioningState
- type TopicSpacesClient
- func (client *TopicSpacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[TopicSpacesClientCreateOrUpdateResponse], error)
- func (client *TopicSpacesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*runtime.Poller[TopicSpacesClientDeleteResponse], error)
- func (client *TopicSpacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (TopicSpacesClientGetResponse, error)
- func (client *TopicSpacesClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, ...) *runtime.Pager[TopicSpacesClientListByNamespaceResponse]
- type TopicSpacesClientBeginCreateOrUpdateOptions
- type TopicSpacesClientBeginDeleteOptions
- type TopicSpacesClientCreateOrUpdateResponse
- type TopicSpacesClientDeleteResponse
- type TopicSpacesClientGetOptions
- type TopicSpacesClientGetResponse
- type TopicSpacesClientListByNamespaceOptions
- type TopicSpacesClientListByNamespaceResponse
- type TopicSpacesConfiguration
- type TopicSpacesConfigurationState
- type TopicSpacesListResult
- type TopicTypeAdditionalEnforcedPermission
- type TopicTypeInfo
- type TopicTypeProperties
- type TopicTypeProvisioningState
- type TopicTypeSourceScope
- type TopicTypesClient
- func (client *TopicTypesClient) Get(ctx context.Context, topicTypeName string, options *TopicTypesClientGetOptions) (TopicTypesClientGetResponse, error)
- func (client *TopicTypesClient) NewListEventTypesPager(topicTypeName string, options *TopicTypesClientListEventTypesOptions) *runtime.Pager[TopicTypesClientListEventTypesResponse]
- func (client *TopicTypesClient) NewListPager(options *TopicTypesClientListOptions) *runtime.Pager[TopicTypesClientListResponse]
- type TopicTypesClientGetOptions
- type TopicTypesClientGetResponse
- type TopicTypesClientListEventTypesOptions
- type TopicTypesClientListEventTypesResponse
- type TopicTypesClientListOptions
- type TopicTypesClientListResponse
- type TopicTypesListResult
- type TopicUpdateParameterProperties
- type TopicUpdateParameters
- type TopicsClient
- func (client *TopicsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, topicName string, ...) (*runtime.Poller[TopicsClientCreateOrUpdateResponse], error)
- func (client *TopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, topicName string, ...) (*runtime.Poller[TopicsClientDeleteResponse], error)
- func (client *TopicsClient) BeginRegenerateKey(ctx context.Context, resourceGroupName string, topicName string, ...) (*runtime.Poller[TopicsClientRegenerateKeyResponse], error)
- func (client *TopicsClient) BeginUpdate(ctx context.Context, resourceGroupName string, topicName string, ...) (*runtime.Poller[TopicsClientUpdateResponse], error)
- func (client *TopicsClient) Get(ctx context.Context, resourceGroupName string, topicName string, ...) (TopicsClientGetResponse, error)
- func (client *TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, topicName string, ...) (TopicsClientListSharedAccessKeysResponse, error)
- func (client *TopicsClient) NewListByResourceGroupPager(resourceGroupName string, options *TopicsClientListByResourceGroupOptions) *runtime.Pager[TopicsClientListByResourceGroupResponse]
- func (client *TopicsClient) NewListBySubscriptionPager(options *TopicsClientListBySubscriptionOptions) *runtime.Pager[TopicsClientListBySubscriptionResponse]
- func (client *TopicsClient) NewListEventTypesPager(resourceGroupName string, providerNamespace string, resourceTypeName string, ...) *runtime.Pager[TopicsClientListEventTypesResponse]
- type TopicsClientBeginCreateOrUpdateOptions
- type TopicsClientBeginDeleteOptions
- type TopicsClientBeginRegenerateKeyOptions
- type TopicsClientBeginUpdateOptions
- type TopicsClientCreateOrUpdateResponse
- type TopicsClientDeleteResponse
- type TopicsClientGetOptions
- type TopicsClientGetResponse
- type TopicsClientListByResourceGroupOptions
- type TopicsClientListByResourceGroupResponse
- type TopicsClientListBySubscriptionOptions
- type TopicsClientListBySubscriptionResponse
- type TopicsClientListEventTypesOptions
- type TopicsClientListEventTypesResponse
- type TopicsClientListSharedAccessKeysOptions
- type TopicsClientListSharedAccessKeysResponse
- type TopicsClientRegenerateKeyResponse
- type TopicsClientUpdateResponse
- type TopicsConfiguration
- type TopicsListResult
- type TrackedResource
- type UpdateTopicSpacesConfigurationInfo
- type UpdateTopicsConfigurationInfo
- type UserIdentityProperties
- type VerifiedPartner
- type VerifiedPartnerProperties
- type VerifiedPartnerProvisioningState
- type VerifiedPartnersClient
- type VerifiedPartnersClientGetOptions
- type VerifiedPartnersClientGetResponse
- type VerifiedPartnersClientListOptions
- type VerifiedPartnersClientListResponse
- type VerifiedPartnersListResult
- type WebHookEventSubscriptionDestination
- type WebHookEventSubscriptionDestinationProperties
- type WebhookPartnerDestinationInfo
- type WebhookPartnerDestinationProperties
- type WebhookUpdatePartnerDestinationInfo
Examples ¶
- CaCertificatesClient.BeginCreateOrUpdate
- CaCertificatesClient.BeginDelete
- CaCertificatesClient.Get
- CaCertificatesClient.NewListByNamespacePager
- ChannelsClient.BeginDelete
- ChannelsClient.CreateOrUpdate
- ChannelsClient.Get
- ChannelsClient.GetFullURL
- ChannelsClient.NewListByPartnerNamespacePager
- ChannelsClient.Update
- ClientGroupsClient.BeginCreateOrUpdate
- ClientGroupsClient.BeginDelete
- ClientGroupsClient.Get
- ClientGroupsClient.NewListByNamespacePager
- ClientsClient.BeginCreateOrUpdate
- ClientsClient.BeginDelete
- ClientsClient.Get
- ClientsClient.NewListByNamespacePager
- DomainEventSubscriptionsClient.BeginCreateOrUpdate
- DomainEventSubscriptionsClient.BeginDelete
- DomainEventSubscriptionsClient.BeginUpdate
- DomainEventSubscriptionsClient.Get
- DomainEventSubscriptionsClient.GetDeliveryAttributes
- DomainEventSubscriptionsClient.GetFullURL
- DomainEventSubscriptionsClient.NewListPager
- DomainTopicEventSubscriptionsClient.BeginCreateOrUpdate
- DomainTopicEventSubscriptionsClient.BeginDelete
- DomainTopicEventSubscriptionsClient.BeginUpdate
- DomainTopicEventSubscriptionsClient.Get
- DomainTopicEventSubscriptionsClient.GetDeliveryAttributes
- DomainTopicEventSubscriptionsClient.GetFullURL
- DomainTopicEventSubscriptionsClient.NewListPager
- DomainTopicsClient.BeginCreateOrUpdate
- DomainTopicsClient.BeginDelete
- DomainTopicsClient.Get
- DomainTopicsClient.NewListByDomainPager
- DomainsClient.BeginCreateOrUpdate
- DomainsClient.BeginDelete
- DomainsClient.BeginUpdate
- DomainsClient.Get
- DomainsClient.ListSharedAccessKeys
- DomainsClient.NewListByResourceGroupPager
- DomainsClient.NewListBySubscriptionPager
- DomainsClient.RegenerateKey
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForCustomTopic)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForCustomTopicAzureFunctionDestination)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForCustomTopicEventHubDestination)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForCustomTopicHybridConnectionDestination)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForCustomTopicServiceBusQueueDestination)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForCustomTopicServiceBusTopicDestination)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForCustomTopicStorageQueueDestination)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForCustomTopicWebhookDestination)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForResource)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForResourceGroup)
- EventSubscriptionsClient.BeginCreateOrUpdate (EventSubscriptionsCreateOrUpdateForSubscription)
- EventSubscriptionsClient.BeginDelete (EventSubscriptionsDeleteForCustomTopic)
- EventSubscriptionsClient.BeginDelete (EventSubscriptionsDeleteForResource)
- EventSubscriptionsClient.BeginDelete (EventSubscriptionsDeleteForResourceGroup)
- EventSubscriptionsClient.BeginDelete (EventSubscriptionsDeleteForSubscription)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForCustomTopic)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForCustomTopicAzureFunctionDestination)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForCustomTopicEventHubDestination)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForCustomTopicHybridConnectionDestination)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForCustomTopicServiceBusQueueDestination)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForCustomTopicServiceBusTopicDestination)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForCustomTopicStorageQueueDestination)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForCustomTopicWebhookDestination)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForResource)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForResourceGroup)
- EventSubscriptionsClient.BeginUpdate (EventSubscriptionsUpdateForSubscription)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForCustomTopic)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForCustomTopicAzureFunctionDestination)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForCustomTopicEventHubDestination)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForCustomTopicHybridConnectionDestination)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForCustomTopicServiceBusQueueDestination)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForCustomTopicServiceBusTopicDestination)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForCustomTopicStorageQueueDestination)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForCustomTopicWebhookDestination)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForResource)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForResourceGroup)
- EventSubscriptionsClient.Get (EventSubscriptionsGetForSubscription)
- EventSubscriptionsClient.GetDeliveryAttributes
- EventSubscriptionsClient.GetFullURL (EventSubscriptionsGetFullUrlForCustomTopic)
- EventSubscriptionsClient.GetFullURL (EventSubscriptionsGetFullUrlForResource)
- EventSubscriptionsClient.GetFullURL (EventSubscriptionsGetFullUrlForResourceGroup)
- EventSubscriptionsClient.GetFullURL (EventSubscriptionsGetFullUrlForSubscription)
- EventSubscriptionsClient.NewListByDomainTopicPager
- EventSubscriptionsClient.NewListByResourcePager
- EventSubscriptionsClient.NewListGlobalByResourceGroupForTopicTypePager
- EventSubscriptionsClient.NewListGlobalByResourceGroupPager
- EventSubscriptionsClient.NewListGlobalBySubscriptionForTopicTypePager
- EventSubscriptionsClient.NewListGlobalBySubscriptionPager
- EventSubscriptionsClient.NewListRegionalByResourceGroupForTopicTypePager
- EventSubscriptionsClient.NewListRegionalByResourceGroupPager
- EventSubscriptionsClient.NewListRegionalBySubscriptionForTopicTypePager
- EventSubscriptionsClient.NewListRegionalBySubscriptionPager
- ExtensionTopicsClient.Get
- NamespaceTopicEventSubscriptionsClient.BeginCreateOrUpdate
- NamespaceTopicEventSubscriptionsClient.BeginDelete
- NamespaceTopicEventSubscriptionsClient.BeginUpdate
- NamespaceTopicEventSubscriptionsClient.Get
- NamespaceTopicEventSubscriptionsClient.GetDeliveryAttributes
- NamespaceTopicEventSubscriptionsClient.GetFullURL
- NamespaceTopicEventSubscriptionsClient.NewListByNamespaceTopicPager
- NamespaceTopicsClient.BeginCreateOrUpdate
- NamespaceTopicsClient.BeginDelete
- NamespaceTopicsClient.BeginRegenerateKey
- NamespaceTopicsClient.BeginUpdate
- NamespaceTopicsClient.Get
- NamespaceTopicsClient.ListSharedAccessKeys
- NamespaceTopicsClient.NewListByNamespacePager
- NamespacesClient.BeginCreateOrUpdate
- NamespacesClient.BeginDelete
- NamespacesClient.BeginRegenerateKey
- NamespacesClient.BeginUpdate
- NamespacesClient.BeginValidateCustomDomainOwnership
- NamespacesClient.Get
- NamespacesClient.ListSharedAccessKeys
- NamespacesClient.NewListByResourceGroupPager
- NamespacesClient.NewListBySubscriptionPager
- NetworkSecurityPerimeterConfigurationsClient.BeginReconcile
- NetworkSecurityPerimeterConfigurationsClient.Get
- NetworkSecurityPerimeterConfigurationsClient.NewListPager
- OperationsClient.NewListPager
- PartnerConfigurationsClient.AuthorizePartner
- PartnerConfigurationsClient.BeginCreateOrUpdate
- PartnerConfigurationsClient.BeginDelete
- PartnerConfigurationsClient.BeginUpdate
- PartnerConfigurationsClient.Get
- PartnerConfigurationsClient.NewListByResourceGroupPager
- PartnerConfigurationsClient.NewListBySubscriptionPager
- PartnerConfigurationsClient.UnauthorizePartner
- PartnerDestinationsClient.Activate
- PartnerDestinationsClient.BeginCreateOrUpdate
- PartnerDestinationsClient.BeginDelete
- PartnerDestinationsClient.BeginUpdate
- PartnerDestinationsClient.Get
- PartnerDestinationsClient.NewListByResourceGroupPager
- PartnerDestinationsClient.NewListBySubscriptionPager
- PartnerNamespacesClient.BeginCreateOrUpdate
- PartnerNamespacesClient.BeginDelete
- PartnerNamespacesClient.BeginUpdate
- PartnerNamespacesClient.Get
- PartnerNamespacesClient.ListSharedAccessKeys
- PartnerNamespacesClient.NewListByResourceGroupPager
- PartnerNamespacesClient.NewListBySubscriptionPager
- PartnerNamespacesClient.RegenerateKey
- PartnerRegistrationsClient.BeginCreateOrUpdate
- PartnerRegistrationsClient.BeginDelete
- PartnerRegistrationsClient.BeginUpdate
- PartnerRegistrationsClient.Get
- PartnerRegistrationsClient.NewListByResourceGroupPager
- PartnerRegistrationsClient.NewListBySubscriptionPager
- PartnerTopicEventSubscriptionsClient.BeginCreateOrUpdate
- PartnerTopicEventSubscriptionsClient.BeginDelete
- PartnerTopicEventSubscriptionsClient.BeginUpdate
- PartnerTopicEventSubscriptionsClient.Get
- PartnerTopicEventSubscriptionsClient.GetDeliveryAttributes
- PartnerTopicEventSubscriptionsClient.GetFullURL
- PartnerTopicEventSubscriptionsClient.NewListByPartnerTopicPager
- PartnerTopicsClient.Activate
- PartnerTopicsClient.BeginDelete
- PartnerTopicsClient.CreateOrUpdate
- PartnerTopicsClient.Deactivate
- PartnerTopicsClient.Get
- PartnerTopicsClient.NewListByResourceGroupPager
- PartnerTopicsClient.NewListBySubscriptionPager
- PartnerTopicsClient.Update
- PermissionBindingsClient.BeginCreateOrUpdate
- PermissionBindingsClient.BeginDelete
- PermissionBindingsClient.Get
- PermissionBindingsClient.NewListByNamespacePager
- PrivateEndpointConnectionsClient.BeginDelete
- PrivateEndpointConnectionsClient.BeginUpdate
- PrivateEndpointConnectionsClient.Get
- PrivateEndpointConnectionsClient.NewListByResourcePager
- PrivateLinkResourcesClient.Get
- PrivateLinkResourcesClient.NewListByResourcePager
- SystemTopicEventSubscriptionsClient.BeginCreateOrUpdate
- SystemTopicEventSubscriptionsClient.BeginDelete
- SystemTopicEventSubscriptionsClient.BeginUpdate
- SystemTopicEventSubscriptionsClient.Get
- SystemTopicEventSubscriptionsClient.GetDeliveryAttributes
- SystemTopicEventSubscriptionsClient.GetFullURL
- SystemTopicEventSubscriptionsClient.NewListBySystemTopicPager
- SystemTopicsClient.BeginCreateOrUpdate
- SystemTopicsClient.BeginDelete
- SystemTopicsClient.BeginUpdate
- SystemTopicsClient.Get
- SystemTopicsClient.NewListByResourceGroupPager
- SystemTopicsClient.NewListBySubscriptionPager
- TopicEventSubscriptionsClient.BeginCreateOrUpdate
- TopicEventSubscriptionsClient.BeginDelete
- TopicEventSubscriptionsClient.BeginUpdate
- TopicEventSubscriptionsClient.Get
- TopicEventSubscriptionsClient.GetDeliveryAttributes
- TopicEventSubscriptionsClient.GetFullURL
- TopicEventSubscriptionsClient.NewListPager
- TopicSpacesClient.BeginCreateOrUpdate
- TopicSpacesClient.BeginDelete
- TopicSpacesClient.Get
- TopicSpacesClient.NewListByNamespacePager
- TopicTypesClient.Get
- TopicTypesClient.NewListEventTypesPager
- TopicTypesClient.NewListPager
- TopicsClient.BeginCreateOrUpdate (TopicsCreateOrUpdate)
- TopicsClient.BeginCreateOrUpdate (TopicsCreateOrUpdateForAzureArc)
- TopicsClient.BeginDelete
- TopicsClient.BeginRegenerateKey
- TopicsClient.BeginUpdate
- TopicsClient.Get
- TopicsClient.ListSharedAccessKeys
- TopicsClient.NewListByResourceGroupPager
- TopicsClient.NewListBySubscriptionPager
- TopicsClient.NewListEventTypesPager
- VerifiedPartnersClient.Get
- VerifiedPartnersClient.NewListPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedFilter ¶
type AdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
}
AdvancedFilter - This is the base type that represents an advanced filter. To configure an advanced filter, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class such as BoolEqualsAdvancedFilter, NumberInAdvancedFilter, StringEqualsAdvancedFilter etc. depending on the type of the key based on which you want to filter.
func (*AdvancedFilter) GetAdvancedFilter ¶
func (a *AdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type AdvancedFilter.
func (AdvancedFilter) MarshalJSON ¶
func (a AdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdvancedFilter.
func (*AdvancedFilter) UnmarshalJSON ¶
func (a *AdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdvancedFilter.
type AdvancedFilterClassification ¶
type AdvancedFilterClassification interface {
// GetAdvancedFilter returns the AdvancedFilter content of the underlying type.
GetAdvancedFilter() *AdvancedFilter
}
AdvancedFilterClassification provides polymorphic access to related types. Call the interface's GetAdvancedFilter() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AdvancedFilter, *BoolEqualsAdvancedFilter, *IsNotNullAdvancedFilter, *IsNullOrUndefinedAdvancedFilter, *NumberGreaterThanAdvancedFilter, - *NumberGreaterThanOrEqualsAdvancedFilter, *NumberInAdvancedFilter, *NumberInRangeAdvancedFilter, *NumberLessThanAdvancedFilter, - *NumberLessThanOrEqualsAdvancedFilter, *NumberNotInAdvancedFilter, *NumberNotInRangeAdvancedFilter, *StringBeginsWithAdvancedFilter, - *StringContainsAdvancedFilter, *StringEndsWithAdvancedFilter, *StringInAdvancedFilter, *StringNotBeginsWithAdvancedFilter, - *StringNotContainsAdvancedFilter, *StringNotEndsWithAdvancedFilter, *StringNotInAdvancedFilter
type AdvancedFilterOperatorType ¶
type AdvancedFilterOperatorType string
AdvancedFilterOperatorType - The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
const ( AdvancedFilterOperatorTypeBoolEquals AdvancedFilterOperatorType = "BoolEquals" AdvancedFilterOperatorTypeIsNotNull AdvancedFilterOperatorType = "IsNotNull" AdvancedFilterOperatorTypeIsNullOrUndefined AdvancedFilterOperatorType = "IsNullOrUndefined" AdvancedFilterOperatorTypeNumberGreaterThan AdvancedFilterOperatorType = "NumberGreaterThan" AdvancedFilterOperatorTypeNumberGreaterThanOrEquals AdvancedFilterOperatorType = "NumberGreaterThanOrEquals" AdvancedFilterOperatorTypeNumberIn AdvancedFilterOperatorType = "NumberIn" AdvancedFilterOperatorTypeNumberInRange AdvancedFilterOperatorType = "NumberInRange" AdvancedFilterOperatorTypeNumberLessThan AdvancedFilterOperatorType = "NumberLessThan" AdvancedFilterOperatorTypeNumberLessThanOrEquals AdvancedFilterOperatorType = "NumberLessThanOrEquals" AdvancedFilterOperatorTypeNumberNotIn AdvancedFilterOperatorType = "NumberNotIn" AdvancedFilterOperatorTypeNumberNotInRange AdvancedFilterOperatorType = "NumberNotInRange" AdvancedFilterOperatorTypeStringBeginsWith AdvancedFilterOperatorType = "StringBeginsWith" AdvancedFilterOperatorTypeStringContains AdvancedFilterOperatorType = "StringContains" AdvancedFilterOperatorTypeStringEndsWith AdvancedFilterOperatorType = "StringEndsWith" AdvancedFilterOperatorTypeStringIn AdvancedFilterOperatorType = "StringIn" AdvancedFilterOperatorTypeStringNotBeginsWith AdvancedFilterOperatorType = "StringNotBeginsWith" AdvancedFilterOperatorTypeStringNotContains AdvancedFilterOperatorType = "StringNotContains" AdvancedFilterOperatorTypeStringNotEndsWith AdvancedFilterOperatorType = "StringNotEndsWith" AdvancedFilterOperatorTypeStringNotIn AdvancedFilterOperatorType = "StringNotIn" )
func PossibleAdvancedFilterOperatorTypeValues ¶
func PossibleAdvancedFilterOperatorTypeValues() []AdvancedFilterOperatorType
PossibleAdvancedFilterOperatorTypeValues returns the possible values for the AdvancedFilterOperatorType const type.
type AlternativeAuthenticationNameSource ¶
type AlternativeAuthenticationNameSource string
AlternativeAuthenticationNameSource - Alternative authentication name sources related to client authentication settings for namespace resource.
const ( AlternativeAuthenticationNameSourceClientCertificateDNS AlternativeAuthenticationNameSource = "ClientCertificateDns" AlternativeAuthenticationNameSourceClientCertificateEmail AlternativeAuthenticationNameSource = "ClientCertificateEmail" AlternativeAuthenticationNameSourceClientCertificateIP AlternativeAuthenticationNameSource = "ClientCertificateIp" AlternativeAuthenticationNameSourceClientCertificateSubject AlternativeAuthenticationNameSource = "ClientCertificateSubject" AlternativeAuthenticationNameSourceClientCertificateURI AlternativeAuthenticationNameSource = "ClientCertificateUri" )
func PossibleAlternativeAuthenticationNameSourceValues ¶
func PossibleAlternativeAuthenticationNameSourceValues() []AlternativeAuthenticationNameSource
PossibleAlternativeAuthenticationNameSourceValues returns the possible values for the AlternativeAuthenticationNameSource const type.
type AzureADPartnerClientAuthentication ¶
type AzureADPartnerClientAuthentication struct {
// REQUIRED; Type of client authentication
ClientAuthenticationType *PartnerClientAuthenticationType
// AzureAD ClientAuthentication Properties
Properties *AzureADPartnerClientAuthenticationProperties
}
AzureADPartnerClientAuthentication - Azure Active Directory Partner Client Authentication
func (*AzureADPartnerClientAuthentication) GetPartnerClientAuthentication ¶
func (a *AzureADPartnerClientAuthentication) GetPartnerClientAuthentication() *PartnerClientAuthentication
GetPartnerClientAuthentication implements the PartnerClientAuthenticationClassification interface for type AzureADPartnerClientAuthentication.
func (AzureADPartnerClientAuthentication) MarshalJSON ¶
func (a AzureADPartnerClientAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureADPartnerClientAuthentication.
func (*AzureADPartnerClientAuthentication) UnmarshalJSON ¶
func (a *AzureADPartnerClientAuthentication) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureADPartnerClientAuthentication.
type AzureADPartnerClientAuthenticationProperties ¶
type AzureADPartnerClientAuthenticationProperties struct {
// The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery
// requests.
AzureActiveDirectoryApplicationIDOrURI *string
// The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
AzureActiveDirectoryTenantID *string
}
AzureADPartnerClientAuthenticationProperties - Properties of an Azure Active Directory Partner Client Authentication.
func (AzureADPartnerClientAuthenticationProperties) MarshalJSON ¶
func (a AzureADPartnerClientAuthenticationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureADPartnerClientAuthenticationProperties.
func (*AzureADPartnerClientAuthenticationProperties) UnmarshalJSON ¶
func (a *AzureADPartnerClientAuthenticationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureADPartnerClientAuthenticationProperties.
type AzureFunctionEventSubscriptionDestination ¶
type AzureFunctionEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// Azure Function Properties of the event subscription destination.
Properties *AzureFunctionEventSubscriptionDestinationProperties
}
AzureFunctionEventSubscriptionDestination - Information about the azure function destination for an event subscription.
func (*AzureFunctionEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (a *AzureFunctionEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type AzureFunctionEventSubscriptionDestination.
func (AzureFunctionEventSubscriptionDestination) MarshalJSON ¶
func (a AzureFunctionEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFunctionEventSubscriptionDestination.
func (*AzureFunctionEventSubscriptionDestination) UnmarshalJSON ¶
func (a *AzureFunctionEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionEventSubscriptionDestination.
type AzureFunctionEventSubscriptionDestinationProperties ¶
type AzureFunctionEventSubscriptionDestinationProperties struct {
// Delivery attribute details.
DeliveryAttributeMappings []DeliveryAttributeMappingClassification
// Maximum number of events per batch.
MaxEventsPerBatch *int32
// Preferred batch size in Kilobytes.
PreferredBatchSizeInKilobytes *int32
// The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.
ResourceID *string
}
AzureFunctionEventSubscriptionDestinationProperties - The properties that represent the Azure Function destination of an event subscription.
func (AzureFunctionEventSubscriptionDestinationProperties) MarshalJSON ¶
func (a AzureFunctionEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFunctionEventSubscriptionDestinationProperties.
func (*AzureFunctionEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (a *AzureFunctionEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionEventSubscriptionDestinationProperties.
type BoolEqualsAdvancedFilter ¶
type BoolEqualsAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The boolean filter value.
Value *bool
}
BoolEqualsAdvancedFilter - BoolEquals Advanced Filter.
func (*BoolEqualsAdvancedFilter) GetAdvancedFilter ¶
func (b *BoolEqualsAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type BoolEqualsAdvancedFilter.
func (BoolEqualsAdvancedFilter) MarshalJSON ¶
func (b BoolEqualsAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BoolEqualsAdvancedFilter.
func (*BoolEqualsAdvancedFilter) UnmarshalJSON ¶
func (b *BoolEqualsAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BoolEqualsAdvancedFilter.
type BoolEqualsFilter ¶
type BoolEqualsFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The boolean filter value.
Value *bool
}
BoolEqualsFilter - BoolEquals Filter.
func (*BoolEqualsFilter) GetFilter ¶
func (b *BoolEqualsFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type BoolEqualsFilter.
func (BoolEqualsFilter) MarshalJSON ¶
func (b BoolEqualsFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BoolEqualsFilter.
func (*BoolEqualsFilter) UnmarshalJSON ¶
func (b *BoolEqualsFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BoolEqualsFilter.
type CaCertificate ¶
type CaCertificate struct {
// The properties of CA certificate.
Properties *CaCertificateProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to the CaCertificate resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
CaCertificate - The CA Certificate resource.
func (CaCertificate) MarshalJSON ¶
func (c CaCertificate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CaCertificate.
func (*CaCertificate) UnmarshalJSON ¶
func (c *CaCertificate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CaCertificate.
type CaCertificateProperties ¶
type CaCertificateProperties struct {
// Description for the CA Certificate resource.
Description *string
// Base64 encoded PEM (Privacy Enhanced Mail) format certificate data.
EncodedCertificate *string
// READ-ONLY; Certificate expiry time in UTC. This is a read-only field.
ExpiryTimeInUTC *time.Time
// READ-ONLY; Certificate issue time in UTC. This is a read-only field.
IssueTimeInUTC *time.Time
// READ-ONLY; Provisioning state of the CA Certificate resource.
ProvisioningState *CaCertificateProvisioningState
}
CaCertificateProperties - The properties of CA certificate.
func (CaCertificateProperties) MarshalJSON ¶
func (c CaCertificateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CaCertificateProperties.
func (*CaCertificateProperties) UnmarshalJSON ¶
func (c *CaCertificateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CaCertificateProperties.
type CaCertificateProvisioningState ¶
type CaCertificateProvisioningState string
CaCertificateProvisioningState - Provisioning state of the CA Certificate resource.
const ( CaCertificateProvisioningStateCanceled CaCertificateProvisioningState = "Canceled" CaCertificateProvisioningStateCreating CaCertificateProvisioningState = "Creating" CaCertificateProvisioningStateDeleted CaCertificateProvisioningState = "Deleted" CaCertificateProvisioningStateDeleting CaCertificateProvisioningState = "Deleting" CaCertificateProvisioningStateFailed CaCertificateProvisioningState = "Failed" CaCertificateProvisioningStateSucceeded CaCertificateProvisioningState = "Succeeded" CaCertificateProvisioningStateUpdating CaCertificateProvisioningState = "Updating" )
func PossibleCaCertificateProvisioningStateValues ¶
func PossibleCaCertificateProvisioningStateValues() []CaCertificateProvisioningState
PossibleCaCertificateProvisioningStateValues returns the possible values for the CaCertificateProvisioningState const type.
type CaCertificatesClient ¶
type CaCertificatesClient struct {
// contains filtered or unexported fields
}
CaCertificatesClient contains the methods for the CaCertificates group. Don't use this type directly, use NewCaCertificatesClient() instead.
func NewCaCertificatesClient ¶
func NewCaCertificatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CaCertificatesClient, error)
NewCaCertificatesClient creates a new instance of CaCertificatesClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*CaCertificatesClient) BeginCreateOrUpdate ¶
func (client *CaCertificatesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, caCertificateName string, caCertificateInfo CaCertificate, options *CaCertificatesClientBeginCreateOrUpdateOptions) (*runtime.Poller[CaCertificatesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a CA certificate with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- caCertificateName - The CA certificate name.
- caCertificateInfo - CA certificate information.
- options - CaCertificatesClientBeginCreateOrUpdateOptions contains the optional parameters for the CaCertificatesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewCaCertificatesClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleNamespaceName1", "exampleCACertificateName1", armeventgrid.CaCertificate{
Properties: &armeventgrid.CaCertificateProperties{
Description: to.Ptr("This is a test certificate"),
EncodedCertificate: to.Ptr("base64EncodePemFormattedCertificateString"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CaCertificate = armeventgrid.CaCertificate{
// Name: to.Ptr("exampleCACertificateName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/caCertificates"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/caCertificates/exampleCACertificateName1"),
// Properties: &armeventgrid.CaCertificateProperties{
// Description: to.Ptr("This is a test Root certificate"),
// EncodedCertificate: to.Ptr("base64EncodePemFormattedCertificateString"),
// ExpiryTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-12T23:06:43.000Z"); return t}()),
// IssueTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-12T23:06:43.000Z"); return t}()),
// ProvisioningState: to.Ptr(armeventgrid.CaCertificateProvisioningStateSucceeded),
// },
// }
func (*CaCertificatesClient) BeginDelete ¶
func (client *CaCertificatesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, caCertificateName string, options *CaCertificatesClientBeginDeleteOptions) (*runtime.Poller[CaCertificatesClientDeleteResponse], error)
BeginDelete - Delete an existing CA certificate. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- caCertificateName - Name of the CA certificate.
- options - CaCertificatesClientBeginDeleteOptions contains the optional parameters for the CaCertificatesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewCaCertificatesClient().BeginDelete(ctx, "examplerg", "exampleNamespaceName1", "exampleCACertificateName1", 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)
}
func (*CaCertificatesClient) Get ¶
func (client *CaCertificatesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, caCertificateName string, options *CaCertificatesClientGetOptions) (CaCertificatesClientGetResponse, error)
Get - Get properties of a CA certificate. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- caCertificateName - Name of the CA certificate.
- options - CaCertificatesClientGetOptions contains the optional parameters for the CaCertificatesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewCaCertificatesClient().Get(ctx, "examplerg", "exampleNamespaceName1", "exampleCACertificateName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CaCertificate = armeventgrid.CaCertificate{
// Name: to.Ptr("exampleCACertificateName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/caCertificates"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/caCertificates/exampleCACertificateName1"),
// Properties: &armeventgrid.CaCertificateProperties{
// Description: to.Ptr("This is a test Root certificate"),
// EncodedCertificate: to.Ptr("base64EncodePemFormattedCertificateString"),
// ExpiryTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-12T23:06:43.000Z"); return t}()),
// IssueTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-12T23:06:43.000Z"); return t}()),
// ProvisioningState: to.Ptr(armeventgrid.CaCertificateProvisioningStateSucceeded),
// },
// }
func (*CaCertificatesClient) NewListByNamespacePager ¶
func (client *CaCertificatesClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *CaCertificatesClientListByNamespaceOptions) *runtime.Pager[CaCertificatesClientListByNamespaceResponse]
NewListByNamespacePager - Get all the CA certificates under a namespace.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- options - CaCertificatesClientListByNamespaceOptions contains the optional parameters for the CaCertificatesClient.NewListByNamespacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_ListByNamespace.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewCaCertificatesClient().NewListByNamespacePager("examplerg", "namespace123", &armeventgrid.CaCertificatesClientListByNamespaceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.CaCertificatesListResult = armeventgrid.CaCertificatesListResult{
// Value: []*armeventgrid.CaCertificate{
// {
// Name: to.Ptr("exampleCACertificateName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/caCertificates"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/caCertificates/exampleCACertificateName1"),
// Properties: &armeventgrid.CaCertificateProperties{
// Description: to.Ptr("This is a test Root certificate"),
// EncodedCertificate: to.Ptr("base64EncodePemFormattedCertificateString"),
// ExpiryTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-12T23:06:43.000Z"); return t}()),
// IssueTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-12T23:06:43.000Z"); return t}()),
// ProvisioningState: to.Ptr(armeventgrid.CaCertificateProvisioningStateSucceeded),
// },
// }},
// }
}
type CaCertificatesClientBeginCreateOrUpdateOptions ¶
type CaCertificatesClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
CaCertificatesClientBeginCreateOrUpdateOptions contains the optional parameters for the CaCertificatesClient.BeginCreateOrUpdate method.
type CaCertificatesClientBeginDeleteOptions ¶
type CaCertificatesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
CaCertificatesClientBeginDeleteOptions contains the optional parameters for the CaCertificatesClient.BeginDelete method.
type CaCertificatesClientCreateOrUpdateResponse ¶
type CaCertificatesClientCreateOrUpdateResponse struct {
// The CA Certificate resource.
CaCertificate
}
CaCertificatesClientCreateOrUpdateResponse contains the response from method CaCertificatesClient.BeginCreateOrUpdate.
type CaCertificatesClientDeleteResponse ¶
type CaCertificatesClientDeleteResponse struct {
}
CaCertificatesClientDeleteResponse contains the response from method CaCertificatesClient.BeginDelete.
type CaCertificatesClientGetOptions ¶
type CaCertificatesClientGetOptions struct {
}
CaCertificatesClientGetOptions contains the optional parameters for the CaCertificatesClient.Get method.
type CaCertificatesClientGetResponse ¶
type CaCertificatesClientGetResponse struct {
// The CA Certificate resource.
CaCertificate
}
CaCertificatesClientGetResponse contains the response from method CaCertificatesClient.Get.
type CaCertificatesClientListByNamespaceOptions ¶
type CaCertificatesClientListByNamespaceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
CaCertificatesClientListByNamespaceOptions contains the optional parameters for the CaCertificatesClient.NewListByNamespacePager method.
type CaCertificatesClientListByNamespaceResponse ¶
type CaCertificatesClientListByNamespaceResponse struct {
// Result of the List CA Certificate operation.
CaCertificatesListResult
}
CaCertificatesClientListByNamespaceResponse contains the response from method CaCertificatesClient.NewListByNamespacePager.
type CaCertificatesListResult ¶
type CaCertificatesListResult struct {
// A link for the next page of CA Certificate.
NextLink *string
// A collection of CA Certificate.
Value []*CaCertificate
}
CaCertificatesListResult - Result of the List CA Certificate operation.
func (CaCertificatesListResult) MarshalJSON ¶
func (c CaCertificatesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CaCertificatesListResult.
func (*CaCertificatesListResult) UnmarshalJSON ¶
func (c *CaCertificatesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CaCertificatesListResult.
type Channel ¶
type Channel struct {
// Properties of the Channel.
Properties *ChannelProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Channel resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
Channel info.
func (Channel) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Channel.
func (*Channel) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Channel.
type ChannelProperties ¶
type ChannelProperties struct {
// The type of the event channel which represents the direction flow of events.
ChannelType *ChannelType
// Expiration time of the channel. If this timer expires while the corresponding partner topic is never activated, the channel
// and corresponding partner topic are deleted.
ExpirationTimeIfNotActivatedUTC *time.Time
// Context or helpful message that can be used during the approval process by the subscriber.
MessageForActivation *string
// This property should be populated when channelType is PartnerDestination and represents information about the partner destination
// resource corresponding to the channel.
PartnerDestinationInfo PartnerDestinationInfoClassification
// This property should be populated when channelType is PartnerTopic and represents information about the partner topic resource
// corresponding to the channel.
PartnerTopicInfo *PartnerTopicInfo
// Provisioning state of the channel.
ProvisioningState *ChannelProvisioningState
// The readiness state of the corresponding partner topic.
ReadinessState *ReadinessState
}
ChannelProperties - Properties of the Channel.
func (ChannelProperties) MarshalJSON ¶
func (c ChannelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ChannelProperties.
func (*ChannelProperties) UnmarshalJSON ¶
func (c *ChannelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ChannelProperties.
type ChannelProvisioningState ¶
type ChannelProvisioningState string
ChannelProvisioningState - Provisioning state of the channel.
const ( ChannelProvisioningStateCanceled ChannelProvisioningState = "Canceled" ChannelProvisioningStateCreating ChannelProvisioningState = "Creating" ChannelProvisioningStateDeleting ChannelProvisioningState = "Deleting" ChannelProvisioningStateFailed ChannelProvisioningState = "Failed" ChannelProvisioningStateIdleDueToMirroredPartnerDestinationDeletion ChannelProvisioningState = "IdleDueToMirroredPartnerDestinationDeletion" ChannelProvisioningStateIdleDueToMirroredPartnerTopicDeletion ChannelProvisioningState = "IdleDueToMirroredPartnerTopicDeletion" ChannelProvisioningStateSucceeded ChannelProvisioningState = "Succeeded" ChannelProvisioningStateUpdating ChannelProvisioningState = "Updating" )
func PossibleChannelProvisioningStateValues ¶
func PossibleChannelProvisioningStateValues() []ChannelProvisioningState
PossibleChannelProvisioningStateValues returns the possible values for the ChannelProvisioningState const type.
type ChannelType ¶
type ChannelType string
ChannelType - The type of the event channel which represents the direction flow of events.
const ( ChannelTypePartnerDestination ChannelType = "PartnerDestination" ChannelTypePartnerTopic ChannelType = "PartnerTopic" )
func PossibleChannelTypeValues ¶
func PossibleChannelTypeValues() []ChannelType
PossibleChannelTypeValues returns the possible values for the ChannelType const type.
type ChannelUpdateParameters ¶
type ChannelUpdateParameters struct {
// Properties of the channel update parameters.
Properties *ChannelUpdateParametersProperties
}
ChannelUpdateParameters - Properties of the Channel update.
func (ChannelUpdateParameters) MarshalJSON ¶
func (c ChannelUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ChannelUpdateParameters.
func (*ChannelUpdateParameters) UnmarshalJSON ¶
func (c *ChannelUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ChannelUpdateParameters.
type ChannelUpdateParametersProperties ¶
type ChannelUpdateParametersProperties struct {
// Expiration time of the channel. If this timer expires while the corresponding partner topic or partner destination is never
// activated, the channel and corresponding partner topic or partner
// destination are deleted.
ExpirationTimeIfNotActivatedUTC *time.Time
// Partner destination properties which can be updated if the channel is of type PartnerDestination.
PartnerDestinationInfo PartnerUpdateDestinationInfoClassification
// Partner topic properties which can be updated if the channel is of type PartnerTopic.
PartnerTopicInfo *PartnerUpdateTopicInfo
}
ChannelUpdateParametersProperties - Properties of the channel update parameters.
func (ChannelUpdateParametersProperties) MarshalJSON ¶
func (c ChannelUpdateParametersProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ChannelUpdateParametersProperties.
func (*ChannelUpdateParametersProperties) UnmarshalJSON ¶
func (c *ChannelUpdateParametersProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ChannelUpdateParametersProperties.
type ChannelsClient ¶
type ChannelsClient struct {
// contains filtered or unexported fields
}
ChannelsClient contains the methods for the Channels group. Don't use this type directly, use NewChannelsClient() instead.
func NewChannelsClient ¶
func NewChannelsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ChannelsClient, error)
NewChannelsClient creates a new instance of ChannelsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ChannelsClient) BeginDelete ¶
func (client *ChannelsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerNamespaceName string, channelName string, options *ChannelsClientBeginDeleteOptions) (*runtime.Poller[ChannelsClientDeleteResponse], error)
BeginDelete - Delete an existing channel. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the partners subscription.
- partnerNamespaceName - Name of the partner namespace.
- channelName - Name of the channel.
- options - ChannelsClientBeginDeleteOptions contains the optional parameters for the ChannelsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewChannelsClient().BeginDelete(ctx, "examplerg", "examplePartnerNamespaceName1", "exampleEventChannelName1", 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)
}
func (*ChannelsClient) CreateOrUpdate ¶
func (client *ChannelsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, partnerNamespaceName string, channelName string, channelInfo Channel, options *ChannelsClientCreateOrUpdateOptions) (ChannelsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Synchronously creates or updates a new channel with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the partners subscription.
- partnerNamespaceName - Name of the partner namespace.
- channelName - Name of the channel.
- channelInfo - Channel information.
- options - ChannelsClientCreateOrUpdateOptions contains the optional parameters for the ChannelsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewChannelsClient().CreateOrUpdate(ctx, "examplerg", "examplePartnerNamespaceName1", "exampleChannelName1", armeventgrid.Channel{
Properties: &armeventgrid.ChannelProperties{
ChannelType: to.Ptr(armeventgrid.ChannelTypePartnerTopic),
ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-10-21T22:50:25.410Z"); return t }()),
MessageForActivation: to.Ptr("Example message to approver"),
PartnerTopicInfo: &armeventgrid.PartnerTopicInfo{
Name: to.Ptr("examplePartnerTopic1"),
AzureSubscriptionID: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40"),
ResourceGroupName: to.Ptr("examplerg2"),
Source: to.Ptr("ContosoCorp.Accounts.User1"),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Channel = armeventgrid.Channel{
// Name: to.Ptr("exampleChannelName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerNamespaces/channels"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1/changes/exampleChannelName1"),
// Properties: &armeventgrid.ChannelProperties{
// ChannelType: to.Ptr(armeventgrid.ChannelTypePartnerTopic),
// ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-10-21T22:50:25.410Z"); return t}()),
// MessageForActivation: to.Ptr("Example message to approver"),
// PartnerTopicInfo: &armeventgrid.PartnerTopicInfo{
// Name: to.Ptr("examplePartnerTopic1"),
// AzureSubscriptionID: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40"),
// ResourceGroupName: to.Ptr("examplerg2"),
// Source: to.Ptr("ContosoCorp.Accounts.User1"),
// },
// },
// }
func (*ChannelsClient) Get ¶
func (client *ChannelsClient) Get(ctx context.Context, resourceGroupName string, partnerNamespaceName string, channelName string, options *ChannelsClientGetOptions) (ChannelsClientGetResponse, error)
Get - Get properties of a channel. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the partners subscription.
- partnerNamespaceName - Name of the partner namespace.
- channelName - Name of the channel.
- options - ChannelsClientGetOptions contains the optional parameters for the ChannelsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewChannelsClient().Get(ctx, "examplerg", "examplePartnerNamespaceName1", "exampleChannelName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Channel = armeventgrid.Channel{
// Name: to.Ptr("exampleChannelName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerNamespaces/channels"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1/changes/exampleChannelName1"),
// Properties: &armeventgrid.ChannelProperties{
// ChannelType: to.Ptr(armeventgrid.ChannelTypePartnerTopic),
// ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-10-21T22:50:25.410Z"); return t}()),
// MessageForActivation: to.Ptr("Example message to approver"),
// PartnerTopicInfo: &armeventgrid.PartnerTopicInfo{
// Name: to.Ptr("examplePartnerTopic1"),
// AzureSubscriptionID: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40"),
// ResourceGroupName: to.Ptr("examplerg2"),
// Source: to.Ptr("ContosoCorp.Accounts.User1"),
// },
// ProvisioningState: to.Ptr(armeventgrid.ChannelProvisioningStateSucceeded),
// ReadinessState: to.Ptr(armeventgrid.ReadinessStateNeverActivated),
// },
// }
func (*ChannelsClient) GetFullURL ¶
func (client *ChannelsClient) GetFullURL(ctx context.Context, resourceGroupName string, partnerNamespaceName string, channelName string, options *ChannelsClientGetFullURLOptions) (ChannelsClientGetFullURLResponse, error)
GetFullURL - Get the full endpoint URL of a partner destination channel. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the partners subscription.
- partnerNamespaceName - Name of the partner namespace.
- channelName - Name of the Channel.
- options - ChannelsClientGetFullURLOptions contains the optional parameters for the ChannelsClient.GetFullURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_GetFullUrl.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewChannelsClient().GetFullURL(ctx, "examplerg", "examplenamespace", "examplechannel", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
func (*ChannelsClient) NewListByPartnerNamespacePager ¶
func (client *ChannelsClient) NewListByPartnerNamespacePager(resourceGroupName string, partnerNamespaceName string, options *ChannelsClientListByPartnerNamespaceOptions) *runtime.Pager[ChannelsClientListByPartnerNamespaceResponse]
NewListByPartnerNamespacePager - List all the channels in a partner namespace.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the partners subscription.
- partnerNamespaceName - Name of the partner namespace.
- options - ChannelsClientListByPartnerNamespaceOptions contains the optional parameters for the ChannelsClient.NewListByPartnerNamespacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_ListByPartnerNamespace.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewChannelsClient().NewListByPartnerNamespacePager("examplerg", "examplePartnerNamespaceName1", &armeventgrid.ChannelsClientListByPartnerNamespaceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.ChannelsListResult = armeventgrid.ChannelsListResult{
// Value: []*armeventgrid.Channel{
// {
// Name: to.Ptr("exampleChannelName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerNamespaces/channels"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1/changes/exampleChannelName1"),
// Properties: &armeventgrid.ChannelProperties{
// ChannelType: to.Ptr(armeventgrid.ChannelTypePartnerTopic),
// ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-10-21T22:50:25.410Z"); return t}()),
// MessageForActivation: to.Ptr("Example message to approver"),
// PartnerTopicInfo: &armeventgrid.PartnerTopicInfo{
// Name: to.Ptr("examplePartnerTopic1"),
// AzureSubscriptionID: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40"),
// ResourceGroupName: to.Ptr("examplerg2"),
// Source: to.Ptr("ContosoCorp.Accounts.User1"),
// },
// ProvisioningState: to.Ptr(armeventgrid.ChannelProvisioningStateSucceeded),
// ReadinessState: to.Ptr(armeventgrid.ReadinessStateNeverActivated),
// },
// }},
// }
}
func (*ChannelsClient) Update ¶
func (client *ChannelsClient) Update(ctx context.Context, resourceGroupName string, partnerNamespaceName string, channelName string, channelUpdateParameters ChannelUpdateParameters, options *ChannelsClientUpdateOptions) (ChannelsClientUpdateResponse, error)
Update - Synchronously updates a channel with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the partners subscription.
- partnerNamespaceName - Name of the partner namespace.
- channelName - Name of the channel.
- channelUpdateParameters - Channel update information.
- options - ChannelsClientUpdateOptions contains the optional parameters for the ChannelsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
_, err = clientFactory.NewChannelsClient().Update(ctx, "examplerg", "examplePartnerNamespaceName1", "exampleChannelName1", armeventgrid.ChannelUpdateParameters{
Properties: &armeventgrid.ChannelUpdateParametersProperties{
ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-23T23:06:11.785Z"); return t }()),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
type ChannelsClientBeginDeleteOptions ¶
type ChannelsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ChannelsClientBeginDeleteOptions contains the optional parameters for the ChannelsClient.BeginDelete method.
type ChannelsClientCreateOrUpdateOptions ¶
type ChannelsClientCreateOrUpdateOptions struct {
}
ChannelsClientCreateOrUpdateOptions contains the optional parameters for the ChannelsClient.CreateOrUpdate method.
type ChannelsClientCreateOrUpdateResponse ¶
type ChannelsClientCreateOrUpdateResponse struct {
// Channel info.
Channel
}
ChannelsClientCreateOrUpdateResponse contains the response from method ChannelsClient.CreateOrUpdate.
type ChannelsClientDeleteResponse ¶
type ChannelsClientDeleteResponse struct {
}
ChannelsClientDeleteResponse contains the response from method ChannelsClient.BeginDelete.
type ChannelsClientGetFullURLOptions ¶
type ChannelsClientGetFullURLOptions struct {
}
ChannelsClientGetFullURLOptions contains the optional parameters for the ChannelsClient.GetFullURL method.
type ChannelsClientGetFullURLResponse ¶
type ChannelsClientGetFullURLResponse struct {
// Full endpoint URL of an event subscription
EventSubscriptionFullURL
}
ChannelsClientGetFullURLResponse contains the response from method ChannelsClient.GetFullURL.
type ChannelsClientGetOptions ¶
type ChannelsClientGetOptions struct {
}
ChannelsClientGetOptions contains the optional parameters for the ChannelsClient.Get method.
type ChannelsClientGetResponse ¶
type ChannelsClientGetResponse struct {
// Channel info.
Channel
}
ChannelsClientGetResponse contains the response from method ChannelsClient.Get.
type ChannelsClientListByPartnerNamespaceOptions ¶
type ChannelsClientListByPartnerNamespaceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
ChannelsClientListByPartnerNamespaceOptions contains the optional parameters for the ChannelsClient.NewListByPartnerNamespacePager method.
type ChannelsClientListByPartnerNamespaceResponse ¶
type ChannelsClientListByPartnerNamespaceResponse struct {
// Result of the List Channels operation
ChannelsListResult
}
ChannelsClientListByPartnerNamespaceResponse contains the response from method ChannelsClient.NewListByPartnerNamespacePager.
type ChannelsClientUpdateOptions ¶
type ChannelsClientUpdateOptions struct {
}
ChannelsClientUpdateOptions contains the optional parameters for the ChannelsClient.Update method.
type ChannelsClientUpdateResponse ¶
type ChannelsClientUpdateResponse struct {
}
ChannelsClientUpdateResponse contains the response from method ChannelsClient.Update.
type ChannelsListResult ¶
type ChannelsListResult struct {
// A link for the next page of channels.
NextLink *string
// A collection of Channels.
Value []*Channel
}
ChannelsListResult - Result of the List Channels operation
func (ChannelsListResult) MarshalJSON ¶
func (c ChannelsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ChannelsListResult.
func (*ChannelsListResult) UnmarshalJSON ¶
func (c *ChannelsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ChannelsListResult.
type Client ¶
type Client struct {
// The properties of client.
Properties *ClientProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to the Client resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
Client - The Client resource.
func (Client) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Client.
func (*Client) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Client.
type ClientAuthenticationSettings ¶
type ClientAuthenticationSettings struct {
// Alternative authentication name sources related to client authentication settings for namespace resource.
AlternativeAuthenticationNameSources []*AlternativeAuthenticationNameSource
// Custom JWT authentication settings for namespace resource.
CustomJwtAuthentication *CustomJwtAuthenticationSettings
}
ClientAuthenticationSettings - Client authentication settings for namespace resource.
func (ClientAuthenticationSettings) MarshalJSON ¶
func (c ClientAuthenticationSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClientAuthenticationSettings.
func (*ClientAuthenticationSettings) UnmarshalJSON ¶
func (c *ClientAuthenticationSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClientAuthenticationSettings.
type ClientCertificateAuthentication ¶
type ClientCertificateAuthentication struct {
// The list of thumbprints that are allowed during client authentication. This property is required only if the validationScheme
// is 'ThumbprintMatch'.
AllowedThumbprints []*string
// The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.
ValidationScheme *ClientCertificateValidationScheme
}
ClientCertificateAuthentication - The certificate authentication properties for the client.
func (ClientCertificateAuthentication) MarshalJSON ¶
func (c ClientCertificateAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClientCertificateAuthentication.
func (*ClientCertificateAuthentication) UnmarshalJSON ¶
func (c *ClientCertificateAuthentication) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClientCertificateAuthentication.
type ClientCertificateValidationScheme ¶
type ClientCertificateValidationScheme string
ClientCertificateValidationScheme - The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.
const ( ClientCertificateValidationSchemeDNSMatchesAuthenticationName ClientCertificateValidationScheme = "DnsMatchesAuthenticationName" ClientCertificateValidationSchemeEmailMatchesAuthenticationName ClientCertificateValidationScheme = "EmailMatchesAuthenticationName" ClientCertificateValidationSchemeIPMatchesAuthenticationName ClientCertificateValidationScheme = "IpMatchesAuthenticationName" ClientCertificateValidationSchemeSubjectMatchesAuthenticationName ClientCertificateValidationScheme = "SubjectMatchesAuthenticationName" ClientCertificateValidationSchemeThumbprintMatch ClientCertificateValidationScheme = "ThumbprintMatch" ClientCertificateValidationSchemeURIMatchesAuthenticationName ClientCertificateValidationScheme = "UriMatchesAuthenticationName" )
func PossibleClientCertificateValidationSchemeValues ¶
func PossibleClientCertificateValidationSchemeValues() []ClientCertificateValidationScheme
PossibleClientCertificateValidationSchemeValues returns the possible values for the ClientCertificateValidationScheme const type.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewCaCertificatesClient ¶
func (c *ClientFactory) NewCaCertificatesClient() *CaCertificatesClient
NewCaCertificatesClient creates a new instance of CaCertificatesClient.
func (*ClientFactory) NewChannelsClient ¶
func (c *ClientFactory) NewChannelsClient() *ChannelsClient
NewChannelsClient creates a new instance of ChannelsClient.
func (*ClientFactory) NewClientGroupsClient ¶
func (c *ClientFactory) NewClientGroupsClient() *ClientGroupsClient
NewClientGroupsClient creates a new instance of ClientGroupsClient.
func (*ClientFactory) NewClientsClient ¶
func (c *ClientFactory) NewClientsClient() *ClientsClient
NewClientsClient creates a new instance of ClientsClient.
func (*ClientFactory) NewDomainEventSubscriptionsClient ¶
func (c *ClientFactory) NewDomainEventSubscriptionsClient() *DomainEventSubscriptionsClient
NewDomainEventSubscriptionsClient creates a new instance of DomainEventSubscriptionsClient.
func (*ClientFactory) NewDomainTopicEventSubscriptionsClient ¶
func (c *ClientFactory) NewDomainTopicEventSubscriptionsClient() *DomainTopicEventSubscriptionsClient
NewDomainTopicEventSubscriptionsClient creates a new instance of DomainTopicEventSubscriptionsClient.
func (*ClientFactory) NewDomainTopicsClient ¶
func (c *ClientFactory) NewDomainTopicsClient() *DomainTopicsClient
NewDomainTopicsClient creates a new instance of DomainTopicsClient.
func (*ClientFactory) NewDomainsClient ¶
func (c *ClientFactory) NewDomainsClient() *DomainsClient
NewDomainsClient creates a new instance of DomainsClient.
func (*ClientFactory) NewEventSubscriptionsClient ¶
func (c *ClientFactory) NewEventSubscriptionsClient() *EventSubscriptionsClient
NewEventSubscriptionsClient creates a new instance of EventSubscriptionsClient.
func (*ClientFactory) NewExtensionTopicsClient ¶
func (c *ClientFactory) NewExtensionTopicsClient() *ExtensionTopicsClient
NewExtensionTopicsClient creates a new instance of ExtensionTopicsClient.
func (*ClientFactory) NewNamespaceTopicEventSubscriptionsClient ¶
func (c *ClientFactory) NewNamespaceTopicEventSubscriptionsClient() *NamespaceTopicEventSubscriptionsClient
NewNamespaceTopicEventSubscriptionsClient creates a new instance of NamespaceTopicEventSubscriptionsClient.
func (*ClientFactory) NewNamespaceTopicsClient ¶
func (c *ClientFactory) NewNamespaceTopicsClient() *NamespaceTopicsClient
NewNamespaceTopicsClient creates a new instance of NamespaceTopicsClient.
func (*ClientFactory) NewNamespacesClient ¶
func (c *ClientFactory) NewNamespacesClient() *NamespacesClient
NewNamespacesClient creates a new instance of NamespacesClient.
func (*ClientFactory) NewNetworkSecurityPerimeterConfigurationsClient ¶
func (c *ClientFactory) NewNetworkSecurityPerimeterConfigurationsClient() *NetworkSecurityPerimeterConfigurationsClient
NewNetworkSecurityPerimeterConfigurationsClient creates a new instance of NetworkSecurityPerimeterConfigurationsClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewPartnerConfigurationsClient ¶
func (c *ClientFactory) NewPartnerConfigurationsClient() *PartnerConfigurationsClient
NewPartnerConfigurationsClient creates a new instance of PartnerConfigurationsClient.
func (*ClientFactory) NewPartnerDestinationsClient ¶
func (c *ClientFactory) NewPartnerDestinationsClient() *PartnerDestinationsClient
NewPartnerDestinationsClient creates a new instance of PartnerDestinationsClient.
func (*ClientFactory) NewPartnerNamespacesClient ¶
func (c *ClientFactory) NewPartnerNamespacesClient() *PartnerNamespacesClient
NewPartnerNamespacesClient creates a new instance of PartnerNamespacesClient.
func (*ClientFactory) NewPartnerRegistrationsClient ¶
func (c *ClientFactory) NewPartnerRegistrationsClient() *PartnerRegistrationsClient
NewPartnerRegistrationsClient creates a new instance of PartnerRegistrationsClient.
func (*ClientFactory) NewPartnerTopicEventSubscriptionsClient ¶
func (c *ClientFactory) NewPartnerTopicEventSubscriptionsClient() *PartnerTopicEventSubscriptionsClient
NewPartnerTopicEventSubscriptionsClient creates a new instance of PartnerTopicEventSubscriptionsClient.
func (*ClientFactory) NewPartnerTopicsClient ¶
func (c *ClientFactory) NewPartnerTopicsClient() *PartnerTopicsClient
NewPartnerTopicsClient creates a new instance of PartnerTopicsClient.
func (*ClientFactory) NewPermissionBindingsClient ¶
func (c *ClientFactory) NewPermissionBindingsClient() *PermissionBindingsClient
NewPermissionBindingsClient creates a new instance of PermissionBindingsClient.
func (*ClientFactory) NewPrivateEndpointConnectionsClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient.
func (*ClientFactory) NewPrivateLinkResourcesClient ¶
func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient.
func (*ClientFactory) NewSystemTopicEventSubscriptionsClient ¶
func (c *ClientFactory) NewSystemTopicEventSubscriptionsClient() *SystemTopicEventSubscriptionsClient
NewSystemTopicEventSubscriptionsClient creates a new instance of SystemTopicEventSubscriptionsClient.
func (*ClientFactory) NewSystemTopicsClient ¶
func (c *ClientFactory) NewSystemTopicsClient() *SystemTopicsClient
NewSystemTopicsClient creates a new instance of SystemTopicsClient.
func (*ClientFactory) NewTopicEventSubscriptionsClient ¶
func (c *ClientFactory) NewTopicEventSubscriptionsClient() *TopicEventSubscriptionsClient
NewTopicEventSubscriptionsClient creates a new instance of TopicEventSubscriptionsClient.
func (*ClientFactory) NewTopicSpacesClient ¶
func (c *ClientFactory) NewTopicSpacesClient() *TopicSpacesClient
NewTopicSpacesClient creates a new instance of TopicSpacesClient.
func (*ClientFactory) NewTopicTypesClient ¶
func (c *ClientFactory) NewTopicTypesClient() *TopicTypesClient
NewTopicTypesClient creates a new instance of TopicTypesClient.
func (*ClientFactory) NewTopicsClient ¶
func (c *ClientFactory) NewTopicsClient() *TopicsClient
NewTopicsClient creates a new instance of TopicsClient.
func (*ClientFactory) NewVerifiedPartnersClient ¶
func (c *ClientFactory) NewVerifiedPartnersClient() *VerifiedPartnersClient
NewVerifiedPartnersClient creates a new instance of VerifiedPartnersClient.
type ClientGroup ¶
type ClientGroup struct {
// The properties of client group.
Properties *ClientGroupProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to the ClientGroup resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
ClientGroup - The Client group resource.
func (ClientGroup) MarshalJSON ¶
func (c ClientGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClientGroup.
func (*ClientGroup) UnmarshalJSON ¶
func (c *ClientGroup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClientGroup.
type ClientGroupProperties ¶
type ClientGroupProperties struct {
// Description for the Client Group resource.
Description *string
// The grouping query for the clients. Example : attributes.keyName IN ['a', 'b', 'c'].
Query *string
// READ-ONLY; Provisioning state of the ClientGroup resource.
ProvisioningState *ClientGroupProvisioningState
}
ClientGroupProperties - The properties of client group.
func (ClientGroupProperties) MarshalJSON ¶
func (c ClientGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClientGroupProperties.
func (*ClientGroupProperties) UnmarshalJSON ¶
func (c *ClientGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClientGroupProperties.
type ClientGroupProvisioningState ¶
type ClientGroupProvisioningState string
ClientGroupProvisioningState - Provisioning state of the ClientGroup resource.
const ( ClientGroupProvisioningStateCanceled ClientGroupProvisioningState = "Canceled" ClientGroupProvisioningStateCreating ClientGroupProvisioningState = "Creating" ClientGroupProvisioningStateDeleted ClientGroupProvisioningState = "Deleted" ClientGroupProvisioningStateDeleting ClientGroupProvisioningState = "Deleting" ClientGroupProvisioningStateFailed ClientGroupProvisioningState = "Failed" ClientGroupProvisioningStateSucceeded ClientGroupProvisioningState = "Succeeded" ClientGroupProvisioningStateUpdating ClientGroupProvisioningState = "Updating" )
func PossibleClientGroupProvisioningStateValues ¶
func PossibleClientGroupProvisioningStateValues() []ClientGroupProvisioningState
PossibleClientGroupProvisioningStateValues returns the possible values for the ClientGroupProvisioningState const type.
type ClientGroupsClient ¶
type ClientGroupsClient struct {
// contains filtered or unexported fields
}
ClientGroupsClient contains the methods for the ClientGroups group. Don't use this type directly, use NewClientGroupsClient() instead.
func NewClientGroupsClient ¶
func NewClientGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientGroupsClient, error)
NewClientGroupsClient creates a new instance of ClientGroupsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientGroupsClient) BeginCreateOrUpdate ¶
func (client *ClientGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, clientGroupName string, clientGroupInfo ClientGroup, options *ClientGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ClientGroupsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a client group with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- clientGroupName - The client group name.
- clientGroupInfo - Client group information.
- options - ClientGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the ClientGroupsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/ClientGroups_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClientGroupsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleNamespaceName1", "exampleClientGroupName1", armeventgrid.ClientGroup{
Properties: &armeventgrid.ClientGroupProperties{
Description: to.Ptr("This is a test client group"),
Query: to.Ptr("attributes.b IN ['a', 'b', 'c']"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ClientGroup = armeventgrid.ClientGroup{
// Name: to.Ptr("exampleClientGroupName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/clientGroups"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/clientGroups/exampleClientGroupName1"),
// Properties: &armeventgrid.ClientGroupProperties{
// Description: to.Ptr("This is a test client group"),
// Query: to.Ptr("attributes.b IN ['a', 'b', 'c']"),
// },
// }
func (*ClientGroupsClient) BeginDelete ¶
func (client *ClientGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, clientGroupName string, options *ClientGroupsClientBeginDeleteOptions) (*runtime.Poller[ClientGroupsClientDeleteResponse], error)
BeginDelete - Delete an existing client group. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- clientGroupName - Name of the client group.
- options - ClientGroupsClientBeginDeleteOptions contains the optional parameters for the ClientGroupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/ClientGroups_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClientGroupsClient().BeginDelete(ctx, "examplerg", "exampleNamespaceName1", "exampleClientGroupName1", 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)
}
func (*ClientGroupsClient) Get ¶
func (client *ClientGroupsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, clientGroupName string, options *ClientGroupsClientGetOptions) (ClientGroupsClientGetResponse, error)
Get - Get properties of a client group. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- clientGroupName - Name of the client group.
- options - ClientGroupsClientGetOptions contains the optional parameters for the ClientGroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/ClientGroups_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewClientGroupsClient().Get(ctx, "examplerg", "exampleNamespaceName1", "exampleClientGroupName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ClientGroup = armeventgrid.ClientGroup{
// Name: to.Ptr("exampleClientGroupName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/clientGroups"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/clientGroups/exampleClientGroupName1"),
// Properties: &armeventgrid.ClientGroupProperties{
// Description: to.Ptr("This is a test client group"),
// Query: to.Ptr("attributes.b IN ['a', 'b', 'c']"),
// },
// }
func (*ClientGroupsClient) NewListByNamespacePager ¶
func (client *ClientGroupsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *ClientGroupsClientListByNamespaceOptions) *runtime.Pager[ClientGroupsClientListByNamespaceResponse]
NewListByNamespacePager - Get all the client groups under a namespace.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- options - ClientGroupsClientListByNamespaceOptions contains the optional parameters for the ClientGroupsClient.NewListByNamespacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/ClientGroups_ListByNamespace.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewClientGroupsClient().NewListByNamespacePager("examplerg", "namespace123", &armeventgrid.ClientGroupsClientListByNamespaceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.ClientGroupsListResult = armeventgrid.ClientGroupsListResult{
// Value: []*armeventgrid.ClientGroup{
// {
// Name: to.Ptr("exampleClientGroupName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/clientGroups"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/clientGroups/exampleClientGroupName1"),
// Properties: &armeventgrid.ClientGroupProperties{
// Description: to.Ptr("This is a test client group"),
// Query: to.Ptr("attributes.b IN ['a', 'b', 'c']"),
// },
// }},
// }
}
type ClientGroupsClientBeginCreateOrUpdateOptions ¶
type ClientGroupsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ClientGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the ClientGroupsClient.BeginCreateOrUpdate method.
type ClientGroupsClientBeginDeleteOptions ¶
type ClientGroupsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ClientGroupsClientBeginDeleteOptions contains the optional parameters for the ClientGroupsClient.BeginDelete method.
type ClientGroupsClientCreateOrUpdateResponse ¶
type ClientGroupsClientCreateOrUpdateResponse struct {
// The Client group resource.
ClientGroup
}
ClientGroupsClientCreateOrUpdateResponse contains the response from method ClientGroupsClient.BeginCreateOrUpdate.
type ClientGroupsClientDeleteResponse ¶
type ClientGroupsClientDeleteResponse struct {
}
ClientGroupsClientDeleteResponse contains the response from method ClientGroupsClient.BeginDelete.
type ClientGroupsClientGetOptions ¶
type ClientGroupsClientGetOptions struct {
}
ClientGroupsClientGetOptions contains the optional parameters for the ClientGroupsClient.Get method.
type ClientGroupsClientGetResponse ¶
type ClientGroupsClientGetResponse struct {
// The Client group resource.
ClientGroup
}
ClientGroupsClientGetResponse contains the response from method ClientGroupsClient.Get.
type ClientGroupsClientListByNamespaceOptions ¶
type ClientGroupsClientListByNamespaceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
ClientGroupsClientListByNamespaceOptions contains the optional parameters for the ClientGroupsClient.NewListByNamespacePager method.
type ClientGroupsClientListByNamespaceResponse ¶
type ClientGroupsClientListByNamespaceResponse struct {
// Result of the List Client Group operation.
ClientGroupsListResult
}
ClientGroupsClientListByNamespaceResponse contains the response from method ClientGroupsClient.NewListByNamespacePager.
type ClientGroupsListResult ¶
type ClientGroupsListResult struct {
// A link for the next page of Client Group.
NextLink *string
// A collection of Client Group.
Value []*ClientGroup
}
ClientGroupsListResult - Result of the List Client Group operation.
func (ClientGroupsListResult) MarshalJSON ¶
func (c ClientGroupsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClientGroupsListResult.
func (*ClientGroupsListResult) UnmarshalJSON ¶
func (c *ClientGroupsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClientGroupsListResult.
type ClientProperties ¶
type ClientProperties struct {
// Attributes for the client. Supported values are int, bool, string, string[]. Example: "attributes": { "room": "345", "floor":
// 12, "deviceTypes": ["Fan", "Light"] }
Attributes map[string]any
// The name presented by the client for authentication. The default value is the name of the resource.
AuthenticationName *string
// The client certificate authentication information.
ClientCertificateAuthentication *ClientCertificateAuthentication
// Description for the Client resource.
Description *string
// Indicates if the client is enabled or not. Default value is Enabled.
State *ClientState
// READ-ONLY; Provisioning state of the Client resource.
ProvisioningState *ClientProvisioningState
}
ClientProperties - The properties of client.
func (ClientProperties) MarshalJSON ¶
func (c ClientProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClientProperties.
func (*ClientProperties) UnmarshalJSON ¶
func (c *ClientProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClientProperties.
type ClientProvisioningState ¶
type ClientProvisioningState string
ClientProvisioningState - Provisioning state of the Client resource.
const ( ClientProvisioningStateCanceled ClientProvisioningState = "Canceled" ClientProvisioningStateCreating ClientProvisioningState = "Creating" ClientProvisioningStateDeleted ClientProvisioningState = "Deleted" ClientProvisioningStateDeleting ClientProvisioningState = "Deleting" ClientProvisioningStateFailed ClientProvisioningState = "Failed" ClientProvisioningStateSucceeded ClientProvisioningState = "Succeeded" ClientProvisioningStateUpdating ClientProvisioningState = "Updating" )
func PossibleClientProvisioningStateValues ¶
func PossibleClientProvisioningStateValues() []ClientProvisioningState
PossibleClientProvisioningStateValues returns the possible values for the ClientProvisioningState const type.
type ClientState ¶
type ClientState string
ClientState - Indicates if the client is enabled or not. Default value is Enabled.
const ( ClientStateDisabled ClientState = "Disabled" ClientStateEnabled ClientState = "Enabled" )
func PossibleClientStateValues ¶
func PossibleClientStateValues() []ClientState
PossibleClientStateValues returns the possible values for the ClientState const type.
type ClientsClient ¶
type ClientsClient struct {
// contains filtered or unexported fields
}
ClientsClient contains the methods for the Clients group. Don't use this type directly, use NewClientsClient() instead.
func NewClientsClient ¶
func NewClientsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientsClient, error)
NewClientsClient creates a new instance of ClientsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientsClient) BeginCreateOrUpdate ¶
func (client *ClientsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, clientName string, clientInfo Client, options *ClientsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ClientsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a client with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- clientName - The client name.
- clientInfo - Client information.
- options - ClientsClientBeginCreateOrUpdateOptions contains the optional parameters for the ClientsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Clients_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClientsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleNamespaceName1", "exampleClientName1", armeventgrid.Client{
Properties: &armeventgrid.ClientProperties{
Description: to.Ptr("This is a test client"),
Attributes: map[string]any{
"deviceTypes": []any{
"Fan",
"Light",
"AC",
},
"floor": float64(3),
"room": "345",
},
ClientCertificateAuthentication: &armeventgrid.ClientCertificateAuthentication{
ValidationScheme: to.Ptr(armeventgrid.ClientCertificateValidationSchemeSubjectMatchesAuthenticationName),
},
State: to.Ptr(armeventgrid.ClientStateEnabled),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Client = armeventgrid.Client{
// Name: to.Ptr("exampleClientName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/clients"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/clients/exampleClientName1"),
// Properties: &armeventgrid.ClientProperties{
// Description: to.Ptr("This is a test client"),
// Attributes: map[string]any{
// "deviceTypes": []any{
// "Light",
// "1",
// },
// "floor": float64(3),
// "room": "345a",
// },
// ClientCertificateAuthentication: &armeventgrid.ClientCertificateAuthentication{
// ValidationScheme: to.Ptr(armeventgrid.ClientCertificateValidationSchemeSubjectMatchesAuthenticationName),
// },
// ProvisioningState: to.Ptr(armeventgrid.ClientProvisioningStateSucceeded),
// State: to.Ptr(armeventgrid.ClientStateEnabled),
// },
// }
func (*ClientsClient) BeginDelete ¶
func (client *ClientsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, clientName string, options *ClientsClientBeginDeleteOptions) (*runtime.Poller[ClientsClientDeleteResponse], error)
BeginDelete - Delete an existing client. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- clientName - Name of the client.
- options - ClientsClientBeginDeleteOptions contains the optional parameters for the ClientsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Clients_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClientsClient().BeginDelete(ctx, "examplerg", "exampleNamespaceName1", "exampleClientName1", 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)
}
func (*ClientsClient) Get ¶
func (client *ClientsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, clientName string, options *ClientsClientGetOptions) (ClientsClientGetResponse, error)
Get - Get properties of a client. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- clientName - Name of the client.
- options - ClientsClientGetOptions contains the optional parameters for the ClientsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Clients_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewClientsClient().Get(ctx, "examplerg", "exampleNamespaceName1", "exampleClientName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Client = armeventgrid.Client{
// Name: to.Ptr("exampleClientName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/clients"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/clients/exampleClientName1"),
// Properties: &armeventgrid.ClientProperties{
// Description: to.Ptr("This is a test client"),
// Attributes: map[string]any{
// "deviceTypes": []any{
// "Light",
// "1",
// },
// "floor": float64(3),
// "room": "345a",
// },
// ClientCertificateAuthentication: &armeventgrid.ClientCertificateAuthentication{
// ValidationScheme: to.Ptr(armeventgrid.ClientCertificateValidationSchemeSubjectMatchesAuthenticationName),
// },
// ProvisioningState: to.Ptr(armeventgrid.ClientProvisioningStateSucceeded),
// State: to.Ptr(armeventgrid.ClientStateEnabled),
// },
// }
func (*ClientsClient) NewListByNamespacePager ¶
func (client *ClientsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *ClientsClientListByNamespaceOptions) *runtime.Pager[ClientsClientListByNamespaceResponse]
NewListByNamespacePager - Get all the permission bindings under a namespace.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- options - ClientsClientListByNamespaceOptions contains the optional parameters for the ClientsClient.NewListByNamespacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Clients_ListByNamespace.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewClientsClient().NewListByNamespacePager("examplerg", "namespace123", &armeventgrid.ClientsClientListByNamespaceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.ClientsListResult = armeventgrid.ClientsListResult{
// Value: []*armeventgrid.Client{
// {
// Name: to.Ptr("exampleClientName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/clients"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/clients/exampleClientName1"),
// Properties: &armeventgrid.ClientProperties{
// Description: to.Ptr("This is a test client"),
// Attributes: map[string]any{
// "deviceTypes": []any{
// "Light",
// "1",
// },
// "floor": float64(3),
// "room": "345a",
// },
// ClientCertificateAuthentication: &armeventgrid.ClientCertificateAuthentication{
// ValidationScheme: to.Ptr(armeventgrid.ClientCertificateValidationSchemeSubjectMatchesAuthenticationName),
// },
// ProvisioningState: to.Ptr(armeventgrid.ClientProvisioningStateSucceeded),
// State: to.Ptr(armeventgrid.ClientStateEnabled),
// },
// }},
// }
}
type ClientsClientBeginCreateOrUpdateOptions ¶
type ClientsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ClientsClientBeginCreateOrUpdateOptions contains the optional parameters for the ClientsClient.BeginCreateOrUpdate method.
type ClientsClientBeginDeleteOptions ¶
type ClientsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ClientsClientBeginDeleteOptions contains the optional parameters for the ClientsClient.BeginDelete method.
type ClientsClientCreateOrUpdateResponse ¶
type ClientsClientCreateOrUpdateResponse struct {
// The Client resource.
Client
}
ClientsClientCreateOrUpdateResponse contains the response from method ClientsClient.BeginCreateOrUpdate.
type ClientsClientDeleteResponse ¶
type ClientsClientDeleteResponse struct {
}
ClientsClientDeleteResponse contains the response from method ClientsClient.BeginDelete.
type ClientsClientGetOptions ¶
type ClientsClientGetOptions struct {
}
ClientsClientGetOptions contains the optional parameters for the ClientsClient.Get method.
type ClientsClientGetResponse ¶
type ClientsClientGetResponse struct {
// The Client resource.
Client
}
ClientsClientGetResponse contains the response from method ClientsClient.Get.
type ClientsClientListByNamespaceOptions ¶
type ClientsClientListByNamespaceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
ClientsClientListByNamespaceOptions contains the optional parameters for the ClientsClient.NewListByNamespacePager method.
type ClientsClientListByNamespaceResponse ¶
type ClientsClientListByNamespaceResponse struct {
// Result of the List Client operation.
ClientsListResult
}
ClientsClientListByNamespaceResponse contains the response from method ClientsClient.NewListByNamespacePager.
type ClientsListResult ¶
type ClientsListResult struct {
// A link for the next page of Client.
NextLink *string
// A collection of Client.
Value []*Client
}
ClientsListResult - Result of the List Client operation.
func (ClientsListResult) MarshalJSON ¶
func (c ClientsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClientsListResult.
func (*ClientsListResult) UnmarshalJSON ¶
func (c *ClientsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClientsListResult.
type ConnectionState ¶
type ConnectionState struct {
// Actions required (if any).
ActionsRequired *string
// Description of the connection state.
Description *string
// Status of the connection.
Status *PersistedConnectionStatus
}
ConnectionState information.
func (ConnectionState) MarshalJSON ¶
func (c ConnectionState) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionState.
func (*ConnectionState) UnmarshalJSON ¶
func (c *ConnectionState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionState.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type CustomDomainConfiguration ¶
type CustomDomainConfiguration struct {
// REQUIRED; Fully Qualified Domain Name (FQDN) for the custom domain.
FullyQualifiedDomainName *string
// The URL for the certificate that is used for publishing to the custom domain. We currently support certificates stored
// in Azure Key Vault only. While certificate URL can be either versioned URL of the
// following format https://{key-vault-name}.vault.azure.net/certificates/{certificate-name}/{version-id}, or unversioned
// URL of the following format (e.g.,
// https://contosovault.vault.azure.net/certificates/contosocert, we support unversioned certificate URL only (e.g., https://contosovault.vault.azure.net/certificates/contosocert)
CertificateURL *string
// Expected DNS TXT record name. Event Grid will check for a TXT record with this name in the DNS record set of the custom
// domain name to prove ownership over the domain. The values under this TXT record
// must contain the expected TXT record value.
ExpectedTxtRecordName *string
// Expected DNS TXT record value. Event Grid will check for a TXT record with this value in the DNS record set of the custom
// domain name to prove ownership over the domain.
ExpectedTxtRecordValue *string
// Identity info for accessing the certificate for the custom domain. This identity info must match an identity that has been
// set on the namespace.
Identity *CustomDomainIdentity
// Validation state for the custom domain. This is a read only property and is initially set to 'Pending' and will be updated
// to 'Approved' by Event Grid only after ownership of the domain name has been
// successfully validated.
ValidationState *CustomDomainValidationState
}
CustomDomainConfiguration - A custom domain configuration that allows users to publish to their own domain name.
func (CustomDomainConfiguration) MarshalJSON ¶
func (c CustomDomainConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomDomainConfiguration.
func (*CustomDomainConfiguration) UnmarshalJSON ¶
func (c *CustomDomainConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomainConfiguration.
type CustomDomainIdentity ¶
type CustomDomainIdentity struct {
// The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.
Type *CustomDomainIdentityType
// The user identity associated with the resource.
UserAssignedIdentity *string
}
CustomDomainIdentity - The identity information for retrieving the certificate for the custom domain.
func (CustomDomainIdentity) MarshalJSON ¶
func (c CustomDomainIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomDomainIdentity.
func (*CustomDomainIdentity) UnmarshalJSON ¶
func (c *CustomDomainIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomainIdentity.
type CustomDomainIdentityType ¶
type CustomDomainIdentityType string
CustomDomainIdentityType - The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.
const ( CustomDomainIdentityTypeSystemAssigned CustomDomainIdentityType = "SystemAssigned" CustomDomainIdentityTypeUserAssigned CustomDomainIdentityType = "UserAssigned" )
func PossibleCustomDomainIdentityTypeValues ¶
func PossibleCustomDomainIdentityTypeValues() []CustomDomainIdentityType
PossibleCustomDomainIdentityTypeValues returns the possible values for the CustomDomainIdentityType const type.
type CustomDomainOwnershipValidationResult ¶
type CustomDomainOwnershipValidationResult struct {
// List of custom domain configurations for the namespace under topic spaces configuration.
CustomDomainsForTopicSpacesConfiguration []*CustomDomainConfiguration
// List of custom domain configurations for the namespace under topics configuration.
CustomDomainsForTopicsConfiguration []*CustomDomainConfiguration
}
CustomDomainOwnershipValidationResult - Namespace custom domain ownership validation result.
func (CustomDomainOwnershipValidationResult) MarshalJSON ¶
func (c CustomDomainOwnershipValidationResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomDomainOwnershipValidationResult.
func (*CustomDomainOwnershipValidationResult) UnmarshalJSON ¶
func (c *CustomDomainOwnershipValidationResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomainOwnershipValidationResult.
type CustomDomainValidationState ¶
type CustomDomainValidationState string
CustomDomainValidationState - Validation state for the custom domain. This is a read only property and is initially set to 'Pending' and will be updated to 'Approved' by Event Grid only after ownership of the domain name has been successfully validated.
const ( CustomDomainValidationStateApproved CustomDomainValidationState = "Approved" CustomDomainValidationStateErrorRetrievingDNSRecord CustomDomainValidationState = "ErrorRetrievingDnsRecord" CustomDomainValidationStatePending CustomDomainValidationState = "Pending" )
func PossibleCustomDomainValidationStateValues ¶
func PossibleCustomDomainValidationStateValues() []CustomDomainValidationState
PossibleCustomDomainValidationStateValues returns the possible values for the CustomDomainValidationState const type.
type CustomJwtAuthenticationManagedIdentity ¶
type CustomJwtAuthenticationManagedIdentity struct {
// REQUIRED; The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.
Type *CustomJwtAuthenticationManagedIdentityType
// The user identity associated with the resource.
UserAssignedIdentity *string
}
CustomJwtAuthenticationManagedIdentity - The identity information for retrieving the certificate for custom JWT authentication.
func (CustomJwtAuthenticationManagedIdentity) MarshalJSON ¶
func (c CustomJwtAuthenticationManagedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomJwtAuthenticationManagedIdentity.
func (*CustomJwtAuthenticationManagedIdentity) UnmarshalJSON ¶
func (c *CustomJwtAuthenticationManagedIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomJwtAuthenticationManagedIdentity.
type CustomJwtAuthenticationManagedIdentityType ¶
type CustomJwtAuthenticationManagedIdentityType string
CustomJwtAuthenticationManagedIdentityType - The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.
const ( CustomJwtAuthenticationManagedIdentityTypeSystemAssigned CustomJwtAuthenticationManagedIdentityType = "SystemAssigned" CustomJwtAuthenticationManagedIdentityTypeUserAssigned CustomJwtAuthenticationManagedIdentityType = "UserAssigned" )
func PossibleCustomJwtAuthenticationManagedIdentityTypeValues ¶
func PossibleCustomJwtAuthenticationManagedIdentityTypeValues() []CustomJwtAuthenticationManagedIdentityType
PossibleCustomJwtAuthenticationManagedIdentityTypeValues returns the possible values for the CustomJwtAuthenticationManagedIdentityType const type.
type CustomJwtAuthenticationSettings ¶
type CustomJwtAuthenticationSettings struct {
// Information about the certificate that is used for token validation. We currently support maximum 2 certificates.
IssuerCertificates []*IssuerCertificateInfo
// Expected JWT token issuer.
TokenIssuer *string
}
CustomJwtAuthenticationSettings - Custom JWT authentication settings for namespace resource.
func (CustomJwtAuthenticationSettings) MarshalJSON ¶
func (c CustomJwtAuthenticationSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomJwtAuthenticationSettings.
func (*CustomJwtAuthenticationSettings) UnmarshalJSON ¶
func (c *CustomJwtAuthenticationSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomJwtAuthenticationSettings.
type DataResidencyBoundary ¶
type DataResidencyBoundary string
DataResidencyBoundary - Data Residency Boundary of the resource.
const ( DataResidencyBoundaryWithinGeopair DataResidencyBoundary = "WithinGeopair" DataResidencyBoundaryWithinRegion DataResidencyBoundary = "WithinRegion" )
func PossibleDataResidencyBoundaryValues ¶
func PossibleDataResidencyBoundaryValues() []DataResidencyBoundary
PossibleDataResidencyBoundaryValues returns the possible values for the DataResidencyBoundary const type.
type DeadLetterDestination ¶
type DeadLetterDestination struct {
// REQUIRED; Type of the endpoint for the dead letter destination
EndpointType *DeadLetterEndPointType
}
DeadLetterDestination - Information about the dead letter destination for an event subscription. To configure a deadletter destination, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class. Currently, StorageBlobDeadLetterDestination is the only class that derives from this class.
func (*DeadLetterDestination) GetDeadLetterDestination ¶
func (d *DeadLetterDestination) GetDeadLetterDestination() *DeadLetterDestination
GetDeadLetterDestination implements the DeadLetterDestinationClassification interface for type DeadLetterDestination.
func (DeadLetterDestination) MarshalJSON ¶
func (d DeadLetterDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeadLetterDestination.
func (*DeadLetterDestination) UnmarshalJSON ¶
func (d *DeadLetterDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeadLetterDestination.
type DeadLetterDestinationClassification ¶
type DeadLetterDestinationClassification interface {
// GetDeadLetterDestination returns the DeadLetterDestination content of the underlying type.
GetDeadLetterDestination() *DeadLetterDestination
}
DeadLetterDestinationClassification provides polymorphic access to related types. Call the interface's GetDeadLetterDestination() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DeadLetterDestination, *StorageBlobDeadLetterDestination
type DeadLetterEndPointType ¶
type DeadLetterEndPointType string
DeadLetterEndPointType - Type of the endpoint for the dead letter destination
const (
DeadLetterEndPointTypeStorageBlob DeadLetterEndPointType = "StorageBlob"
)
func PossibleDeadLetterEndPointTypeValues ¶
func PossibleDeadLetterEndPointTypeValues() []DeadLetterEndPointType
PossibleDeadLetterEndPointTypeValues returns the possible values for the DeadLetterEndPointType const type.
type DeadLetterWithResourceIdentity ¶
type DeadLetterWithResourceIdentity struct {
// Information about the destination where events have to be delivered for the event subscription. Uses the managed identity
// setup on the parent resource (namely, topic or domain) to acquire the
// authentication tokens being used during dead-lettering.
DeadLetterDestination DeadLetterDestinationClassification
// The identity to use when dead-lettering events.
Identity *EventSubscriptionIdentity
}
DeadLetterWithResourceIdentity - Information about the deadletter destination with resource identity.
func (DeadLetterWithResourceIdentity) MarshalJSON ¶
func (d DeadLetterWithResourceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeadLetterWithResourceIdentity.
func (*DeadLetterWithResourceIdentity) UnmarshalJSON ¶
func (d *DeadLetterWithResourceIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeadLetterWithResourceIdentity.
type DeliveryAttributeListResult ¶
type DeliveryAttributeListResult struct {
// A collection of DeliveryAttributeMapping
Value []DeliveryAttributeMappingClassification
}
DeliveryAttributeListResult - Result of the Get delivery attributes operation.
func (DeliveryAttributeListResult) MarshalJSON ¶
func (d DeliveryAttributeListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeliveryAttributeListResult.
func (*DeliveryAttributeListResult) UnmarshalJSON ¶
func (d *DeliveryAttributeListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeliveryAttributeListResult.
type DeliveryAttributeMapping ¶
type DeliveryAttributeMapping struct {
// REQUIRED; Type of the delivery attribute or header name.
Type *DeliveryAttributeMappingType
// Name of the delivery attribute or header.
Name *string
}
DeliveryAttributeMapping - Delivery attribute mapping details.
func (*DeliveryAttributeMapping) GetDeliveryAttributeMapping ¶
func (d *DeliveryAttributeMapping) GetDeliveryAttributeMapping() *DeliveryAttributeMapping
GetDeliveryAttributeMapping implements the DeliveryAttributeMappingClassification interface for type DeliveryAttributeMapping.
func (DeliveryAttributeMapping) MarshalJSON ¶
func (d DeliveryAttributeMapping) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeliveryAttributeMapping.
func (*DeliveryAttributeMapping) UnmarshalJSON ¶
func (d *DeliveryAttributeMapping) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeliveryAttributeMapping.
type DeliveryAttributeMappingClassification ¶
type DeliveryAttributeMappingClassification interface {
// GetDeliveryAttributeMapping returns the DeliveryAttributeMapping content of the underlying type.
GetDeliveryAttributeMapping() *DeliveryAttributeMapping
}
DeliveryAttributeMappingClassification provides polymorphic access to related types. Call the interface's GetDeliveryAttributeMapping() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DeliveryAttributeMapping, *DynamicDeliveryAttributeMapping, *StaticDeliveryAttributeMapping
type DeliveryAttributeMappingType ¶
type DeliveryAttributeMappingType string
DeliveryAttributeMappingType - Type of the delivery attribute or header name.
const ( DeliveryAttributeMappingTypeDynamic DeliveryAttributeMappingType = "Dynamic" DeliveryAttributeMappingTypeStatic DeliveryAttributeMappingType = "Static" )
func PossibleDeliveryAttributeMappingTypeValues ¶
func PossibleDeliveryAttributeMappingTypeValues() []DeliveryAttributeMappingType
PossibleDeliveryAttributeMappingTypeValues returns the possible values for the DeliveryAttributeMappingType const type.
type DeliveryConfiguration ¶
type DeliveryConfiguration struct {
// Delivery mode of the event subscription.
DeliveryMode *DeliveryMode
// This property should be populated when deliveryMode is push and represents information about the push subscription.
Push *PushInfo
// This property should be populated when deliveryMode is queue and represents information about the queue subscription.
Queue *QueueInfo
}
DeliveryConfiguration - Properties of the delivery configuration information of the event subscription.
func (DeliveryConfiguration) MarshalJSON ¶
func (d DeliveryConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeliveryConfiguration.
func (*DeliveryConfiguration) UnmarshalJSON ¶
func (d *DeliveryConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeliveryConfiguration.
type DeliveryMode ¶
type DeliveryMode string
DeliveryMode - Delivery mode of the event subscription.
const ( DeliveryModePush DeliveryMode = "Push" DeliveryModeQueue DeliveryMode = "Queue" )
func PossibleDeliveryModeValues ¶
func PossibleDeliveryModeValues() []DeliveryMode
PossibleDeliveryModeValues returns the possible values for the DeliveryMode const type.
type DeliverySchema ¶
type DeliverySchema string
DeliverySchema - The event delivery schema for the event subscription.
const (
DeliverySchemaCloudEventSchemaV10 DeliverySchema = "CloudEventSchemaV1_0"
)
func PossibleDeliverySchemaValues ¶
func PossibleDeliverySchemaValues() []DeliverySchema
PossibleDeliverySchemaValues returns the possible values for the DeliverySchema const type.
type DeliveryWithResourceIdentity ¶
type DeliveryWithResourceIdentity struct {
// Information about the destination where events have to be delivered for the event subscription. Uses the managed identity
// setup on the parent resource (namely, topic or domain) to acquire the
// authentication tokens being used during delivery.
Destination EventSubscriptionDestinationClassification
// The identity to use when delivering events.
Identity *EventSubscriptionIdentity
}
DeliveryWithResourceIdentity - Information about the delivery for an event subscription with resource identity.
func (DeliveryWithResourceIdentity) MarshalJSON ¶
func (d DeliveryWithResourceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeliveryWithResourceIdentity.
func (*DeliveryWithResourceIdentity) UnmarshalJSON ¶
func (d *DeliveryWithResourceIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeliveryWithResourceIdentity.
type Domain ¶
type Domain struct {
// REQUIRED; Location of the resource.
Location *string
// Identity information for the Event Grid Domain resource.
Identity *IdentityInfo
// Properties of the Event Grid Domain resource.
Properties *DomainProperties
// The Sku pricing tier for the Event Grid Domain resource.
SKU *ResourceSKU
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to the Event Grid Domain resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
Domain - EventGrid Domain.
func (Domain) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Domain.
func (*Domain) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Domain.
type DomainEventSubscriptionsClient ¶
type DomainEventSubscriptionsClient struct {
// contains filtered or unexported fields
}
DomainEventSubscriptionsClient contains the methods for the DomainEventSubscriptions group. Don't use this type directly, use NewDomainEventSubscriptionsClient() instead.
func NewDomainEventSubscriptionsClient ¶
func NewDomainEventSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DomainEventSubscriptionsClient, error)
NewDomainEventSubscriptionsClient creates a new instance of DomainEventSubscriptionsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DomainEventSubscriptionsClient) BeginCreateOrUpdate ¶
func (client *DomainEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, domainName string, eventSubscriptionName string, eventSubscriptionInfo EventSubscription, options *DomainEventSubscriptionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DomainEventSubscriptionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates a new event subscription or updates an existing event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain topic.
- eventSubscriptionName - Name of the event subscription to be created. Event subscription names must be between 3 and 64 characters in length and use alphanumeric letters only.
- eventSubscriptionInfo - Event subscription properties containing the destination and filter information.
- options - DomainEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainEventSubscriptionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleDomain1", "exampleEventSubscriptionName1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("exampleEventSubscriptionName1"),
// Type: to.Ptr("Microsoft.EventGrid/domains/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1/eventSubscriptions/exampleEventSubscriptionName1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1"),
// },
// }
func (*DomainEventSubscriptionsClient) BeginDelete ¶
func (client *DomainEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, domainName string, eventSubscriptionName string, options *DomainEventSubscriptionsClientBeginDeleteOptions) (*runtime.Poller[DomainEventSubscriptionsClientDeleteResponse], error)
BeginDelete - Delete an existing event subscription for a domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- eventSubscriptionName - Name of the event subscription to be deleted.
- options - DomainEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the DomainEventSubscriptionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainEventSubscriptionsClient().BeginDelete(ctx, "examplerg", "exampleDomain1", "examplesubscription1", 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)
}
func (*DomainEventSubscriptionsClient) BeginUpdate ¶
func (client *DomainEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, domainName string, eventSubscriptionName string, eventSubscriptionUpdateParameters EventSubscriptionUpdateParameters, options *DomainEventSubscriptionsClientBeginUpdateOptions) (*runtime.Poller[DomainEventSubscriptionsClientUpdateResponse], error)
BeginUpdate - Update an existing event subscription for a topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- eventSubscriptionName - Name of the event subscription to be updated.
- eventSubscriptionUpdateParameters - Updated event subscription information.
- options - DomainEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the DomainEventSubscriptionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainEventSubscriptionsClient().BeginUpdate(ctx, "examplerg", "exampleDomain1", "exampleEventSubscriptionName1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
func (*DomainEventSubscriptionsClient) Get ¶
func (client *DomainEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, domainName string, eventSubscriptionName string, options *DomainEventSubscriptionsClientGetOptions) (DomainEventSubscriptionsClientGetResponse, error)
Get - Get properties of an event subscription of a domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- eventSubscriptionName - Name of the event subscription to be found.
- options - DomainEventSubscriptionsClientGetOptions contains the optional parameters for the DomainEventSubscriptionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewDomainEventSubscriptionsClient().Get(ctx, "examplerg", "exampleDomain1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/domains/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1"),
// },
// }
func (*DomainEventSubscriptionsClient) GetDeliveryAttributes ¶
func (client *DomainEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, domainName string, eventSubscriptionName string, options *DomainEventSubscriptionsClientGetDeliveryAttributesOptions) (DomainEventSubscriptionsClientGetDeliveryAttributesResponse, error)
GetDeliveryAttributes - Get all delivery attributes for an event subscription for domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- eventSubscriptionName - Name of the event subscription.
- options - DomainEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the DomainEventSubscriptionsClient.GetDeliveryAttributes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_GetDeliveryAttributes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewDomainEventSubscriptionsClient().GetDeliveryAttributes(ctx, "examplerg", "exampleDomain1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.DeliveryAttributeListResult = armeventgrid.DeliveryAttributeListResult{
// Value: []armeventgrid.DeliveryAttributeMappingClassification{
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header1"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(false),
// Value: to.Ptr("NormalValue"),
// },
// },
// &armeventgrid.DynamicDeliveryAttributeMapping{
// Name: to.Ptr("header2"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeDynamic),
// Properties: &armeventgrid.DynamicDeliveryAttributeMappingProperties{
// SourceField: to.Ptr("data.foo"),
// },
// },
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header3"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(true),
// Value: to.Ptr("mySecretValue"),
// },
// }},
// }
func (*DomainEventSubscriptionsClient) GetFullURL ¶
func (client *DomainEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, domainName string, eventSubscriptionName string, options *DomainEventSubscriptionsClientGetFullURLOptions) (DomainEventSubscriptionsClientGetFullURLResponse, error)
GetFullURL - Get the full endpoint URL for an event subscription for domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain topic.
- eventSubscriptionName - Name of the event subscription.
- options - DomainEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the DomainEventSubscriptionsClient.GetFullURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_GetFullUrl.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewDomainEventSubscriptionsClient().GetFullURL(ctx, "examplerg", "exampleDomain1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
func (*DomainEventSubscriptionsClient) NewListPager ¶
func (client *DomainEventSubscriptionsClient) NewListPager(resourceGroupName string, domainName string, options *DomainEventSubscriptionsClientListOptions) *runtime.Pager[DomainEventSubscriptionsClientListResponse]
NewListPager - List all event subscriptions that have been created for a specific topic.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- options - DomainEventSubscriptionsClientListOptions contains the optional parameters for the DomainEventSubscriptionsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewDomainEventSubscriptionsClient().NewListPager("examplerg", "exampleDomain1", &armeventgrid.DomainEventSubscriptionsClientListOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/domains/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1"),
// },
// }},
// }
}
type DomainEventSubscriptionsClientBeginCreateOrUpdateOptions ¶
type DomainEventSubscriptionsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainEventSubscriptionsClient.BeginCreateOrUpdate method.
type DomainEventSubscriptionsClientBeginDeleteOptions ¶
type DomainEventSubscriptionsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the DomainEventSubscriptionsClient.BeginDelete method.
type DomainEventSubscriptionsClientBeginUpdateOptions ¶
type DomainEventSubscriptionsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the DomainEventSubscriptionsClient.BeginUpdate method.
type DomainEventSubscriptionsClientCreateOrUpdateResponse ¶
type DomainEventSubscriptionsClientCreateOrUpdateResponse struct {
// Event Subscription.
EventSubscription
}
DomainEventSubscriptionsClientCreateOrUpdateResponse contains the response from method DomainEventSubscriptionsClient.BeginCreateOrUpdate.
type DomainEventSubscriptionsClientDeleteResponse ¶
type DomainEventSubscriptionsClientDeleteResponse struct {
}
DomainEventSubscriptionsClientDeleteResponse contains the response from method DomainEventSubscriptionsClient.BeginDelete.
type DomainEventSubscriptionsClientGetDeliveryAttributesOptions ¶
type DomainEventSubscriptionsClientGetDeliveryAttributesOptions struct {
}
DomainEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the DomainEventSubscriptionsClient.GetDeliveryAttributes method.
type DomainEventSubscriptionsClientGetDeliveryAttributesResponse ¶
type DomainEventSubscriptionsClientGetDeliveryAttributesResponse struct {
// Result of the Get delivery attributes operation.
DeliveryAttributeListResult
}
DomainEventSubscriptionsClientGetDeliveryAttributesResponse contains the response from method DomainEventSubscriptionsClient.GetDeliveryAttributes.
type DomainEventSubscriptionsClientGetFullURLOptions ¶
type DomainEventSubscriptionsClientGetFullURLOptions struct {
}
DomainEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the DomainEventSubscriptionsClient.GetFullURL method.
type DomainEventSubscriptionsClientGetFullURLResponse ¶
type DomainEventSubscriptionsClientGetFullURLResponse struct {
// Full endpoint URL of an event subscription
EventSubscriptionFullURL
}
DomainEventSubscriptionsClientGetFullURLResponse contains the response from method DomainEventSubscriptionsClient.GetFullURL.
type DomainEventSubscriptionsClientGetOptions ¶
type DomainEventSubscriptionsClientGetOptions struct {
}
DomainEventSubscriptionsClientGetOptions contains the optional parameters for the DomainEventSubscriptionsClient.Get method.
type DomainEventSubscriptionsClientGetResponse ¶
type DomainEventSubscriptionsClientGetResponse struct {
// Event Subscription.
EventSubscription
}
DomainEventSubscriptionsClientGetResponse contains the response from method DomainEventSubscriptionsClient.Get.
type DomainEventSubscriptionsClientListOptions ¶
type DomainEventSubscriptionsClientListOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
DomainEventSubscriptionsClientListOptions contains the optional parameters for the DomainEventSubscriptionsClient.NewListPager method.
type DomainEventSubscriptionsClientListResponse ¶
type DomainEventSubscriptionsClientListResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
DomainEventSubscriptionsClientListResponse contains the response from method DomainEventSubscriptionsClient.NewListPager.
type DomainEventSubscriptionsClientUpdateResponse ¶
type DomainEventSubscriptionsClientUpdateResponse struct {
// Event Subscription.
EventSubscription
}
DomainEventSubscriptionsClientUpdateResponse contains the response from method DomainEventSubscriptionsClient.BeginUpdate.
type DomainProperties ¶
type DomainProperties struct {
// This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with this Event
// Grid Domain resource. In this context, creation of domain topic can be
// auto-managed (when true) or self-managed (when false). The default value for this property is true. When this property
// is null or set to true, Event Grid is responsible of automatically creating the
// domain topic when the first event subscription is created at the scope of the domain topic. If this property is set to
// false, then creating the first event subscription will require creating a domain
// topic by the user. The self-management mode can be used if the user wants full control of when the domain topic is created,
// while auto-managed mode provides the flexibility to perform less operations
// and manage fewer resources by the user. Also, note that in auto-managed creation mode, user is allowed to create the domain
// topic on demand if needed.
AutoCreateTopicWithFirstSubscription *bool
// This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with this Event
// Grid Domain resource. In this context, deletion of domain topic can be
// auto-managed (when true) or self-managed (when false). The default value for this property is true. When this property
// is set to true, Event Grid is responsible of automatically deleting the domain
// topic when the last event subscription at the scope of the domain topic is deleted. If this property is set to false, then
// the user needs to manually delete the domain topic when it is no longer
// needed (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The self-management mode
// can be used if the user wants full control of when the domain topic needs to be
// deleted, while auto-managed mode provides the flexibility to perform less operations and manage fewer resources by the
// user.
AutoDeleteTopicWithLastSubscription *bool
// Data Residency Boundary of the resource.
DataResidencyBoundary *DataResidencyBoundary
// This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD
// token will be used to authenticate if user is allowed to publish to the domain.
DisableLocalAuth *bool
// Event Type Information for the domain. This information is provided by the publisher and can be used by the subscriber
// to view different types of events that are published.
EventTypeInfo *EventTypeInfo
// This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess
// is enabled.
InboundIPRules []*InboundIPRule
// This determines the format that Event Grid should expect for incoming events published to the Event Grid Domain Resource.
InputSchema *InputSchema
// Information about the InputSchemaMapping which specified the info about mapping event payload.
InputSchemaMapping InputSchemaMappingClassification
// Minimum TLS version of the publisher allowed to publish to this domain
MinimumTLSVersionAllowed *TLSVersion
// This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific
// IPs by configuring
PublicNetworkAccess *PublicNetworkAccess
// READ-ONLY; Endpoint for the Event Grid Domain Resource which is used for publishing the events.
Endpoint *string
// READ-ONLY; Metric resource id for the Event Grid Domain Resource.
MetricResourceID *string
// READ-ONLY; List of private endpoint connections.
PrivateEndpointConnections []*PrivateEndpointConnection
// READ-ONLY; Provisioning state of the Event Grid Domain Resource.
ProvisioningState *DomainProvisioningState
}
DomainProperties - Properties of the Event Grid Domain Resource.
func (DomainProperties) MarshalJSON ¶
func (d DomainProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DomainProperties.
func (*DomainProperties) UnmarshalJSON ¶
func (d *DomainProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DomainProperties.
type DomainProvisioningState ¶
type DomainProvisioningState string
DomainProvisioningState - Provisioning state of the Event Grid Domain Resource.
const ( DomainProvisioningStateCanceled DomainProvisioningState = "Canceled" DomainProvisioningStateCreating DomainProvisioningState = "Creating" DomainProvisioningStateDeleting DomainProvisioningState = "Deleting" DomainProvisioningStateFailed DomainProvisioningState = "Failed" DomainProvisioningStateSucceeded DomainProvisioningState = "Succeeded" DomainProvisioningStateUpdating DomainProvisioningState = "Updating" )
func PossibleDomainProvisioningStateValues ¶
func PossibleDomainProvisioningStateValues() []DomainProvisioningState
PossibleDomainProvisioningStateValues returns the possible values for the DomainProvisioningState const type.
type DomainRegenerateKeyRequest ¶
type DomainRegenerateKeyRequest struct {
// REQUIRED; Key name to regenerate key1 or key2.
KeyName *string
}
DomainRegenerateKeyRequest - Domain regenerate share access key request.
func (DomainRegenerateKeyRequest) MarshalJSON ¶
func (d DomainRegenerateKeyRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DomainRegenerateKeyRequest.
func (*DomainRegenerateKeyRequest) UnmarshalJSON ¶
func (d *DomainRegenerateKeyRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DomainRegenerateKeyRequest.
type DomainSharedAccessKeys ¶
DomainSharedAccessKeys - Shared access keys of the Domain.
func (DomainSharedAccessKeys) MarshalJSON ¶
func (d DomainSharedAccessKeys) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DomainSharedAccessKeys.
func (*DomainSharedAccessKeys) UnmarshalJSON ¶
func (d *DomainSharedAccessKeys) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DomainSharedAccessKeys.
type DomainTopic ¶
type DomainTopic struct {
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; Properties of the Domain Topic.
Properties *DomainTopicProperties
// READ-ONLY; The system metadata relating to Domain Topic resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
DomainTopic - Domain Topic.
func (DomainTopic) MarshalJSON ¶
func (d DomainTopic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DomainTopic.
func (*DomainTopic) UnmarshalJSON ¶
func (d *DomainTopic) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DomainTopic.
type DomainTopicEventSubscriptionsClient ¶
type DomainTopicEventSubscriptionsClient struct {
// contains filtered or unexported fields
}
DomainTopicEventSubscriptionsClient contains the methods for the DomainTopicEventSubscriptions group. Don't use this type directly, use NewDomainTopicEventSubscriptionsClient() instead.
func NewDomainTopicEventSubscriptionsClient ¶
func NewDomainTopicEventSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DomainTopicEventSubscriptionsClient, error)
NewDomainTopicEventSubscriptionsClient creates a new instance of DomainTopicEventSubscriptionsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DomainTopicEventSubscriptionsClient) BeginCreateOrUpdate ¶
func (client *DomainTopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, domainName string, topicName string, eventSubscriptionName string, eventSubscriptionInfo EventSubscription, options *DomainTopicEventSubscriptionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DomainTopicEventSubscriptionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates a new event subscription or updates an existing event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the top level domain.
- topicName - Name of the domain topic.
- eventSubscriptionName - Name of the event subscription to be created. Event subscription names must be between 3 and 64 characters in length and use alphanumeric letters only.
- eventSubscriptionInfo - Event subscription properties containing the destination and filter information.
- options - DomainTopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainTopicEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleDomain1", "exampleDomainTopic1", "exampleEventSubscriptionName1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("exampleEventSubscriptionName1"),
// Type: to.Ptr("Microsoft.EventGrid/domains/domainTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1/domainTopics/exampleDomainTopic1/eventSubscriptions/exampleEventSubscriptionName1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1/domainTopics/exampleDomainTopic1"),
// },
// }
func (*DomainTopicEventSubscriptionsClient) BeginDelete ¶
func (client *DomainTopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, domainName string, topicName string, eventSubscriptionName string, options *DomainTopicEventSubscriptionsClientBeginDeleteOptions) (*runtime.Poller[DomainTopicEventSubscriptionsClientDeleteResponse], error)
BeginDelete - Delete a nested existing event subscription for a domain topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the top level domain.
- topicName - Name of the domain topic.
- eventSubscriptionName - Name of the event subscription to be deleted.
- options - DomainTopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainTopicEventSubscriptionsClient().BeginDelete(ctx, "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", 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)
}
func (*DomainTopicEventSubscriptionsClient) BeginUpdate ¶
func (client *DomainTopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, domainName string, topicName string, eventSubscriptionName string, eventSubscriptionUpdateParameters EventSubscriptionUpdateParameters, options *DomainTopicEventSubscriptionsClientBeginUpdateOptions) (*runtime.Poller[DomainTopicEventSubscriptionsClientUpdateResponse], error)
BeginUpdate - Update an existing event subscription for a domain topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- topicName - Name of the topic.
- eventSubscriptionName - Name of the event subscription to be updated.
- eventSubscriptionUpdateParameters - Updated event subscription information.
- options - DomainTopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainTopicEventSubscriptionsClient().BeginUpdate(ctx, "examplerg", "exampleDomain1", "exampleDomainTopic1", "exampleEventSubscriptionName1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
func (*DomainTopicEventSubscriptionsClient) Get ¶
func (client *DomainTopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, domainName string, topicName string, eventSubscriptionName string, options *DomainTopicEventSubscriptionsClientGetOptions) (DomainTopicEventSubscriptionsClientGetResponse, error)
Get - Get properties of a nested event subscription for a domain topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the top level domain.
- topicName - Name of the domain topic.
- eventSubscriptionName - Name of the event subscription to be found.
- options - DomainTopicEventSubscriptionsClientGetOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewDomainTopicEventSubscriptionsClient().Get(ctx, "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/domains/domainTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1/domainTopics/exampleDomainTopic1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1/domainTopics/exampleDomainTopic1"),
// },
// }
func (*DomainTopicEventSubscriptionsClient) GetDeliveryAttributes ¶
func (client *DomainTopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, domainName string, topicName string, eventSubscriptionName string, options *DomainTopicEventSubscriptionsClientGetDeliveryAttributesOptions) (DomainTopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
GetDeliveryAttributes - Get all delivery attributes for an event subscription for domain topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the top level domain.
- topicName - Name of the domain topic.
- eventSubscriptionName - Name of the event subscription.
- options - DomainTopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.GetDeliveryAttributes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_GetDeliveryAttributes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewDomainTopicEventSubscriptionsClient().GetDeliveryAttributes(ctx, "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.DeliveryAttributeListResult = armeventgrid.DeliveryAttributeListResult{
// Value: []armeventgrid.DeliveryAttributeMappingClassification{
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header1"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(false),
// Value: to.Ptr("NormalValue"),
// },
// },
// &armeventgrid.DynamicDeliveryAttributeMapping{
// Name: to.Ptr("header2"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeDynamic),
// Properties: &armeventgrid.DynamicDeliveryAttributeMappingProperties{
// SourceField: to.Ptr("data.foo"),
// },
// },
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header3"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(true),
// Value: to.Ptr("mySecretValue"),
// },
// }},
// }
func (*DomainTopicEventSubscriptionsClient) GetFullURL ¶
func (client *DomainTopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, domainName string, topicName string, eventSubscriptionName string, options *DomainTopicEventSubscriptionsClientGetFullURLOptions) (DomainTopicEventSubscriptionsClientGetFullURLResponse, error)
GetFullURL - Get the full endpoint URL for a nested event subscription for domain topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the top level domain.
- topicName - Name of the domain topic.
- eventSubscriptionName - Name of the event subscription.
- options - DomainTopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.GetFullURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_GetFullUrl.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewDomainTopicEventSubscriptionsClient().GetFullURL(ctx, "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
func (*DomainTopicEventSubscriptionsClient) NewListPager ¶
func (client *DomainTopicEventSubscriptionsClient) NewListPager(resourceGroupName string, domainName string, topicName string, options *DomainTopicEventSubscriptionsClientListOptions) *runtime.Pager[DomainTopicEventSubscriptionsClientListResponse]
NewListPager - List all event subscriptions that have been created for a specific domain topic.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the top level domain.
- topicName - Name of the domain topic.
- options - DomainTopicEventSubscriptionsClientListOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewDomainTopicEventSubscriptionsClient().NewListPager("examplerg", "exampleDomain1", "exampleDomainTopic1", &armeventgrid.DomainTopicEventSubscriptionsClientListOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/domains/domainTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1/domainTopics/exampleDomainTopic1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampleDomain1/domainTopics/exampleDomainTopic1"),
// },
// }},
// }
}
type DomainTopicEventSubscriptionsClientBeginCreateOrUpdateOptions ¶
type DomainTopicEventSubscriptionsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainTopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.BeginCreateOrUpdate method.
type DomainTopicEventSubscriptionsClientBeginDeleteOptions ¶
type DomainTopicEventSubscriptionsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainTopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.BeginDelete method.
type DomainTopicEventSubscriptionsClientBeginUpdateOptions ¶
type DomainTopicEventSubscriptionsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainTopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.BeginUpdate method.
type DomainTopicEventSubscriptionsClientCreateOrUpdateResponse ¶
type DomainTopicEventSubscriptionsClientCreateOrUpdateResponse struct {
// Event Subscription.
EventSubscription
}
DomainTopicEventSubscriptionsClientCreateOrUpdateResponse contains the response from method DomainTopicEventSubscriptionsClient.BeginCreateOrUpdate.
type DomainTopicEventSubscriptionsClientDeleteResponse ¶
type DomainTopicEventSubscriptionsClientDeleteResponse struct {
}
DomainTopicEventSubscriptionsClientDeleteResponse contains the response from method DomainTopicEventSubscriptionsClient.BeginDelete.
type DomainTopicEventSubscriptionsClientGetDeliveryAttributesOptions ¶
type DomainTopicEventSubscriptionsClientGetDeliveryAttributesOptions struct {
}
DomainTopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.GetDeliveryAttributes method.
type DomainTopicEventSubscriptionsClientGetDeliveryAttributesResponse ¶
type DomainTopicEventSubscriptionsClientGetDeliveryAttributesResponse struct {
// Result of the Get delivery attributes operation.
DeliveryAttributeListResult
}
DomainTopicEventSubscriptionsClientGetDeliveryAttributesResponse contains the response from method DomainTopicEventSubscriptionsClient.GetDeliveryAttributes.
type DomainTopicEventSubscriptionsClientGetFullURLOptions ¶
type DomainTopicEventSubscriptionsClientGetFullURLOptions struct {
}
DomainTopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.GetFullURL method.
type DomainTopicEventSubscriptionsClientGetFullURLResponse ¶
type DomainTopicEventSubscriptionsClientGetFullURLResponse struct {
// Full endpoint URL of an event subscription
EventSubscriptionFullURL
}
DomainTopicEventSubscriptionsClientGetFullURLResponse contains the response from method DomainTopicEventSubscriptionsClient.GetFullURL.
type DomainTopicEventSubscriptionsClientGetOptions ¶
type DomainTopicEventSubscriptionsClientGetOptions struct {
}
DomainTopicEventSubscriptionsClientGetOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.Get method.
type DomainTopicEventSubscriptionsClientGetResponse ¶
type DomainTopicEventSubscriptionsClientGetResponse struct {
// Event Subscription.
EventSubscription
}
DomainTopicEventSubscriptionsClientGetResponse contains the response from method DomainTopicEventSubscriptionsClient.Get.
type DomainTopicEventSubscriptionsClientListOptions ¶
type DomainTopicEventSubscriptionsClientListOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
DomainTopicEventSubscriptionsClientListOptions contains the optional parameters for the DomainTopicEventSubscriptionsClient.NewListPager method.
type DomainTopicEventSubscriptionsClientListResponse ¶
type DomainTopicEventSubscriptionsClientListResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
DomainTopicEventSubscriptionsClientListResponse contains the response from method DomainTopicEventSubscriptionsClient.NewListPager.
type DomainTopicEventSubscriptionsClientUpdateResponse ¶
type DomainTopicEventSubscriptionsClientUpdateResponse struct {
// Event Subscription.
EventSubscription
}
DomainTopicEventSubscriptionsClientUpdateResponse contains the response from method DomainTopicEventSubscriptionsClient.BeginUpdate.
type DomainTopicProperties ¶
type DomainTopicProperties struct {
// READ-ONLY; Provisioning state of the domain topic.
ProvisioningState *DomainTopicProvisioningState
}
DomainTopicProperties - Properties of the Domain Topic.
func (DomainTopicProperties) MarshalJSON ¶
func (d DomainTopicProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DomainTopicProperties.
func (*DomainTopicProperties) UnmarshalJSON ¶
func (d *DomainTopicProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DomainTopicProperties.
type DomainTopicProvisioningState ¶
type DomainTopicProvisioningState string
DomainTopicProvisioningState - Provisioning state of the domain topic.
const ( DomainTopicProvisioningStateCanceled DomainTopicProvisioningState = "Canceled" DomainTopicProvisioningStateCreating DomainTopicProvisioningState = "Creating" DomainTopicProvisioningStateDeleting DomainTopicProvisioningState = "Deleting" DomainTopicProvisioningStateFailed DomainTopicProvisioningState = "Failed" DomainTopicProvisioningStateSucceeded DomainTopicProvisioningState = "Succeeded" DomainTopicProvisioningStateUpdating DomainTopicProvisioningState = "Updating" )
func PossibleDomainTopicProvisioningStateValues ¶
func PossibleDomainTopicProvisioningStateValues() []DomainTopicProvisioningState
PossibleDomainTopicProvisioningStateValues returns the possible values for the DomainTopicProvisioningState const type.
type DomainTopicsClient ¶
type DomainTopicsClient struct {
// contains filtered or unexported fields
}
DomainTopicsClient contains the methods for the DomainTopics group. Don't use this type directly, use NewDomainTopicsClient() instead.
func NewDomainTopicsClient ¶
func NewDomainTopicsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DomainTopicsClient, error)
NewDomainTopicsClient creates a new instance of DomainTopicsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DomainTopicsClient) BeginCreateOrUpdate ¶
func (client *DomainTopicsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, domainName string, domainTopicName string, options *DomainTopicsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DomainTopicsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates or updates a new domain topic with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- domainTopicName - Name of the domain topic.
- options - DomainTopicsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainTopicsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopics_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainTopicsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampledomain1", "exampledomaintopic1", 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)
}
func (*DomainTopicsClient) BeginDelete ¶
func (client *DomainTopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, domainName string, domainTopicName string, options *DomainTopicsClientBeginDeleteOptions) (*runtime.Poller[DomainTopicsClientDeleteResponse], error)
BeginDelete - Delete existing domain topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- domainTopicName - Name of the domain topic.
- options - DomainTopicsClientBeginDeleteOptions contains the optional parameters for the DomainTopicsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopics_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainTopicsClient().BeginDelete(ctx, "examplerg", "exampledomain1", "exampledomaintopic1", 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)
}
func (*DomainTopicsClient) Get ¶
func (client *DomainTopicsClient) Get(ctx context.Context, resourceGroupName string, domainName string, domainTopicName string, options *DomainTopicsClientGetOptions) (DomainTopicsClientGetResponse, error)
Get - Get properties of a domain topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- domainTopicName - Name of the topic.
- options - DomainTopicsClientGetOptions contains the optional parameters for the DomainTopicsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopics_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewDomainTopicsClient().Get(ctx, "examplerg", "exampledomain2", "topic1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.DomainTopic = armeventgrid.DomainTopic{
// Name: to.Ptr("topic1"),
// Type: to.Ptr("Microsoft.EventGrid/domains/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2/topics/topic1"),
// Properties: &armeventgrid.DomainTopicProperties{
// ProvisioningState: to.Ptr(armeventgrid.DomainTopicProvisioningStateSucceeded),
// },
// }
func (*DomainTopicsClient) NewListByDomainPager ¶
func (client *DomainTopicsClient) NewListByDomainPager(resourceGroupName string, domainName string, options *DomainTopicsClientListByDomainOptions) *runtime.Pager[DomainTopicsClientListByDomainResponse]
NewListByDomainPager - List all the topics in a domain.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Domain name.
- options - DomainTopicsClientListByDomainOptions contains the optional parameters for the DomainTopicsClient.NewListByDomainPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopics_ListByDomain.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewDomainTopicsClient().NewListByDomainPager("examplerg", "exampledomain2", &armeventgrid.DomainTopicsClientListByDomainOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.DomainTopicsListResult = armeventgrid.DomainTopicsListResult{
// Value: []*armeventgrid.DomainTopic{
// {
// Name: to.Ptr("domainCli100topic1"),
// Type: to.Ptr("Microsoft.EventGrid/domains/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic1"),
// Properties: &armeventgrid.DomainTopicProperties{
// ProvisioningState: to.Ptr(armeventgrid.DomainTopicProvisioningStateSucceeded),
// },
// },
// {
// Name: to.Ptr("domainCli100topic2"),
// Type: to.Ptr("Microsoft.EventGrid/domains/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic2"),
// Properties: &armeventgrid.DomainTopicProperties{
// ProvisioningState: to.Ptr(armeventgrid.DomainTopicProvisioningStateSucceeded),
// },
// }},
// }
}
type DomainTopicsClientBeginCreateOrUpdateOptions ¶
type DomainTopicsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainTopicsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainTopicsClient.BeginCreateOrUpdate method.
type DomainTopicsClientBeginDeleteOptions ¶
type DomainTopicsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainTopicsClientBeginDeleteOptions contains the optional parameters for the DomainTopicsClient.BeginDelete method.
type DomainTopicsClientCreateOrUpdateResponse ¶
type DomainTopicsClientCreateOrUpdateResponse struct {
// Domain Topic.
DomainTopic
}
DomainTopicsClientCreateOrUpdateResponse contains the response from method DomainTopicsClient.BeginCreateOrUpdate.
type DomainTopicsClientDeleteResponse ¶
type DomainTopicsClientDeleteResponse struct {
}
DomainTopicsClientDeleteResponse contains the response from method DomainTopicsClient.BeginDelete.
type DomainTopicsClientGetOptions ¶
type DomainTopicsClientGetOptions struct {
}
DomainTopicsClientGetOptions contains the optional parameters for the DomainTopicsClient.Get method.
type DomainTopicsClientGetResponse ¶
type DomainTopicsClientGetResponse struct {
// Domain Topic.
DomainTopic
}
DomainTopicsClientGetResponse contains the response from method DomainTopicsClient.Get.
type DomainTopicsClientListByDomainOptions ¶
type DomainTopicsClientListByDomainOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
DomainTopicsClientListByDomainOptions contains the optional parameters for the DomainTopicsClient.NewListByDomainPager method.
type DomainTopicsClientListByDomainResponse ¶
type DomainTopicsClientListByDomainResponse struct {
// Result of the List Domain Topics operation.
DomainTopicsListResult
}
DomainTopicsClientListByDomainResponse contains the response from method DomainTopicsClient.NewListByDomainPager.
type DomainTopicsListResult ¶
type DomainTopicsListResult struct {
// A link for the next page of domain topics.
NextLink *string
// A collection of Domain Topics.
Value []*DomainTopic
}
DomainTopicsListResult - Result of the List Domain Topics operation.
func (DomainTopicsListResult) MarshalJSON ¶
func (d DomainTopicsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DomainTopicsListResult.
func (*DomainTopicsListResult) UnmarshalJSON ¶
func (d *DomainTopicsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DomainTopicsListResult.
type DomainUpdateParameterProperties ¶
type DomainUpdateParameterProperties struct {
// This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with this Event
// Grid Domain resource. In this context, creation of domain topic can be
// auto-managed (when true) or self-managed (when false). The default value for this property is true. When this property
// is null or set to true, Event Grid is responsible of automatically creating the
// domain topic when the first event subscription is created at the scope of the domain topic. If this property is set to
// false, then creating the first event subscription will require creating a domain
// topic by the user. The self-management mode can be used if the user wants full control of when the domain topic is created,
// while auto-managed mode provides the flexibility to perform less operations
// and manage fewer resources by the user. Also, note that in auto-managed creation mode, user is allowed to create the domain
// topic on demand if needed.
AutoCreateTopicWithFirstSubscription *bool
// This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with this Event
// Grid Domain resource. In this context, deletion of domain topic can be
// auto-managed (when true) or self-managed (when false). The default value for this property is true. When this property
// is set to true, Event Grid is responsible of automatically deleting the domain
// topic when the last event subscription at the scope of the domain topic is deleted. If this property is set to false, then
// the user needs to manually delete the domain topic when it is no longer
// needed (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The self-management mode
// can be used if the user wants full control of when the domain topic needs to be
// deleted, while auto-managed mode provides the flexibility to perform less operations and manage fewer resources by the
// user.
AutoDeleteTopicWithLastSubscription *bool
// The data residency boundary for the domain.
DataResidencyBoundary *DataResidencyBoundary
// This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD
// token will be used to authenticate if user is allowed to publish to the domain.
DisableLocalAuth *bool
// The eventTypeInfo for the domain.
EventTypeInfo *EventTypeInfo
// This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess
// is enabled.
InboundIPRules []*InboundIPRule
// Minimum TLS version of the publisher allowed to publish to this domain
MinimumTLSVersionAllowed *TLSVersion
// This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific
// IPs by configuring
PublicNetworkAccess *PublicNetworkAccess
}
DomainUpdateParameterProperties - Information of domain update parameter properties.
func (DomainUpdateParameterProperties) MarshalJSON ¶
func (d DomainUpdateParameterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DomainUpdateParameterProperties.
func (*DomainUpdateParameterProperties) UnmarshalJSON ¶
func (d *DomainUpdateParameterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DomainUpdateParameterProperties.
type DomainUpdateParameters ¶
type DomainUpdateParameters struct {
// Identity information for the resource.
Identity *IdentityInfo
// Properties of the resource.
Properties *DomainUpdateParameterProperties
// The Sku pricing tier for the domain.
SKU *ResourceSKU
// Tags of the domains resource.
Tags map[string]*string
}
DomainUpdateParameters - Properties of the Domain update.
func (DomainUpdateParameters) MarshalJSON ¶
func (d DomainUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DomainUpdateParameters.
func (*DomainUpdateParameters) UnmarshalJSON ¶
func (d *DomainUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DomainUpdateParameters.
type DomainsClient ¶
type DomainsClient struct {
// contains filtered or unexported fields
}
DomainsClient contains the methods for the Domains group. Don't use this type directly, use NewDomainsClient() instead.
func NewDomainsClient ¶
func NewDomainsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DomainsClient, error)
NewDomainsClient creates a new instance of DomainsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DomainsClient) BeginCreateOrUpdate ¶
func (client *DomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, domainName string, domainInfo Domain, options *DomainsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DomainsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates or updates a new domain with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- domainInfo - Domain information.
- options - DomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampledomain1", armeventgrid.Domain{
Location: to.Ptr("westus2"),
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
Properties: &armeventgrid.DomainProperties{
InboundIPRules: []*armeventgrid.InboundIPRule{
{
Action: to.Ptr(armeventgrid.IPActionTypeAllow),
IPMask: to.Ptr("12.18.30.15"),
},
{
Action: to.Ptr(armeventgrid.IPActionTypeAllow),
IPMask: to.Ptr("12.18.176.1"),
}},
PublicNetworkAccess: to.Ptr(armeventgrid.PublicNetworkAccessEnabled),
},
}, 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)
}
func (*DomainsClient) BeginDelete ¶
func (client *DomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientBeginDeleteOptions) (*runtime.Poller[DomainsClientDeleteResponse], error)
BeginDelete - Delete existing domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- options - DomainsClientBeginDeleteOptions contains the optional parameters for the DomainsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainsClient().BeginDelete(ctx, "examplerg", "exampledomain1", 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)
}
func (*DomainsClient) BeginUpdate ¶
func (client *DomainsClient) BeginUpdate(ctx context.Context, resourceGroupName string, domainName string, domainUpdateParameters DomainUpdateParameters, options *DomainsClientBeginUpdateOptions) (*runtime.Poller[DomainsClientUpdateResponse], error)
BeginUpdate - Asynchronously updates a domain with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- domainUpdateParameters - Domain update information.
- options - DomainsClientBeginUpdateOptions contains the optional parameters for the DomainsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDomainsClient().BeginUpdate(ctx, "examplerg", "exampledomain1", armeventgrid.DomainUpdateParameters{
Properties: &armeventgrid.DomainUpdateParameterProperties{
InboundIPRules: []*armeventgrid.InboundIPRule{
{
Action: to.Ptr(armeventgrid.IPActionTypeAllow),
IPMask: to.Ptr("12.18.30.15"),
},
{
Action: to.Ptr(armeventgrid.IPActionTypeAllow),
IPMask: to.Ptr("12.18.176.1"),
}},
PublicNetworkAccess: to.Ptr(armeventgrid.PublicNetworkAccessEnabled),
},
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
}, 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)
}
func (*DomainsClient) Get ¶
func (client *DomainsClient) Get(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientGetOptions) (DomainsClientGetResponse, error)
Get - Get properties of a domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- options - DomainsClientGetOptions contains the optional parameters for the DomainsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewDomainsClient().Get(ctx, "examplerg", "exampledomain2", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Domain = armeventgrid.Domain{
// Name: to.Ptr("exampledomain2"),
// Type: to.Ptr("Microsoft.EventGrid/domains"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2"),
// Location: to.Ptr("westcentralus"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.DomainProperties{
// Endpoint: to.Ptr("https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.DomainProvisioningStateSucceeded),
// },
// }
func (*DomainsClient) ListSharedAccessKeys ¶
func (client *DomainsClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientListSharedAccessKeysOptions) (DomainsClientListSharedAccessKeysResponse, error)
ListSharedAccessKeys - List the two keys used to publish to a domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- options - DomainsClientListSharedAccessKeysOptions contains the optional parameters for the DomainsClient.ListSharedAccessKeys method.
func (*DomainsClient) NewListByResourceGroupPager ¶
func (client *DomainsClient) NewListByResourceGroupPager(resourceGroupName string, options *DomainsClientListByResourceGroupOptions) *runtime.Pager[DomainsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the domains under a resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - DomainsClientListByResourceGroupOptions contains the optional parameters for the DomainsClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_ListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewDomainsClient().NewListByResourceGroupPager("examplerg", &armeventgrid.DomainsClientListByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.DomainsListResult = armeventgrid.DomainsListResult{
// Value: []*armeventgrid.Domain{
// {
// Name: to.Ptr("exampledomain1"),
// Type: to.Ptr("Microsoft.EventGrid/domains"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1"),
// Location: to.Ptr("westus2"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.DomainProperties{
// Endpoint: to.Ptr("https://exampledomain1.westus2-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.DomainProvisioningStateSucceeded),
// },
// },
// {
// Name: to.Ptr("exampledomain2"),
// Type: to.Ptr("Microsoft.EventGrid/domains"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2"),
// Location: to.Ptr("westcentralus"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.DomainProperties{
// Endpoint: to.Ptr("https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.DomainProvisioningStateSucceeded),
// },
// }},
// }
}
func (*DomainsClient) NewListBySubscriptionPager ¶
func (client *DomainsClient) NewListBySubscriptionPager(options *DomainsClientListBySubscriptionOptions) *runtime.Pager[DomainsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all the domains under an Azure subscription.
Generated from API version 2024-06-01-preview
- options - DomainsClientListBySubscriptionOptions contains the optional parameters for the DomainsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_ListBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewDomainsClient().NewListBySubscriptionPager(&armeventgrid.DomainsClientListBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.DomainsListResult = armeventgrid.DomainsListResult{
// Value: []*armeventgrid.Domain{
// {
// Name: to.Ptr("exampledomain1"),
// Type: to.Ptr("Microsoft.EventGrid/domains"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1"),
// Location: to.Ptr("westus2"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.DomainProperties{
// Endpoint: to.Ptr("https://exampledomain1.westus2-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.DomainProvisioningStateSucceeded),
// },
// },
// {
// Name: to.Ptr("exampledomain2"),
// Type: to.Ptr("Microsoft.EventGrid/domains"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2"),
// Location: to.Ptr("westcentralus"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.DomainProperties{
// Endpoint: to.Ptr("https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.DomainProvisioningStateSucceeded),
// },
// }},
// }
}
func (*DomainsClient) RegenerateKey ¶
func (client *DomainsClient) RegenerateKey(ctx context.Context, resourceGroupName string, domainName string, regenerateKeyRequest DomainRegenerateKeyRequest, options *DomainsClientRegenerateKeyOptions) (DomainsClientRegenerateKeyResponse, error)
RegenerateKey - Regenerate a shared access key for a domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the domain.
- regenerateKeyRequest - Request body to regenerate key.
- options - DomainsClientRegenerateKeyOptions contains the optional parameters for the DomainsClient.RegenerateKey method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_RegenerateKey.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewDomainsClient().RegenerateKey(ctx, "examplerg", "exampledomain2", armeventgrid.DomainRegenerateKeyRequest{
KeyName: to.Ptr("key1"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.DomainSharedAccessKeys = armeventgrid.DomainSharedAccessKeys{
// Key1: to.Ptr("testKey1Value"),
// Key2: to.Ptr("testKey2Value"),
// }
type DomainsClientBeginCreateOrUpdateOptions ¶
type DomainsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainsClient.BeginCreateOrUpdate method.
type DomainsClientBeginDeleteOptions ¶
type DomainsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainsClientBeginDeleteOptions contains the optional parameters for the DomainsClient.BeginDelete method.
type DomainsClientBeginUpdateOptions ¶
type DomainsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
DomainsClientBeginUpdateOptions contains the optional parameters for the DomainsClient.BeginUpdate method.
type DomainsClientCreateOrUpdateResponse ¶
type DomainsClientCreateOrUpdateResponse struct {
// EventGrid Domain.
Domain
}
DomainsClientCreateOrUpdateResponse contains the response from method DomainsClient.BeginCreateOrUpdate.
type DomainsClientDeleteResponse ¶
type DomainsClientDeleteResponse struct {
}
DomainsClientDeleteResponse contains the response from method DomainsClient.BeginDelete.
type DomainsClientGetOptions ¶
type DomainsClientGetOptions struct {
}
DomainsClientGetOptions contains the optional parameters for the DomainsClient.Get method.
type DomainsClientGetResponse ¶
type DomainsClientGetResponse struct {
// EventGrid Domain.
Domain
}
DomainsClientGetResponse contains the response from method DomainsClient.Get.
type DomainsClientListByResourceGroupOptions ¶
type DomainsClientListByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
DomainsClientListByResourceGroupOptions contains the optional parameters for the DomainsClient.NewListByResourceGroupPager method.
type DomainsClientListByResourceGroupResponse ¶
type DomainsClientListByResourceGroupResponse struct {
// Result of the List Domains operation.
DomainsListResult
}
DomainsClientListByResourceGroupResponse contains the response from method DomainsClient.NewListByResourceGroupPager.
type DomainsClientListBySubscriptionOptions ¶
type DomainsClientListBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
DomainsClientListBySubscriptionOptions contains the optional parameters for the DomainsClient.NewListBySubscriptionPager method.
type DomainsClientListBySubscriptionResponse ¶
type DomainsClientListBySubscriptionResponse struct {
// Result of the List Domains operation.
DomainsListResult
}
DomainsClientListBySubscriptionResponse contains the response from method DomainsClient.NewListBySubscriptionPager.
type DomainsClientListSharedAccessKeysOptions ¶
type DomainsClientListSharedAccessKeysOptions struct {
}
DomainsClientListSharedAccessKeysOptions contains the optional parameters for the DomainsClient.ListSharedAccessKeys method.
type DomainsClientListSharedAccessKeysResponse ¶
type DomainsClientListSharedAccessKeysResponse struct {
DomainSharedAccessKeys
}
DomainsClientListSharedAccessKeysResponse contains the response from method DomainsClient.ListSharedAccessKeys.
type DomainsClientRegenerateKeyOptions ¶
type DomainsClientRegenerateKeyOptions struct {
}
DomainsClientRegenerateKeyOptions contains the optional parameters for the DomainsClient.RegenerateKey method.
type DomainsClientRegenerateKeyResponse ¶
type DomainsClientRegenerateKeyResponse struct {
DomainSharedAccessKeys
}
DomainsClientRegenerateKeyResponse contains the response from method DomainsClient.RegenerateKey.
type DomainsClientUpdateResponse ¶
type DomainsClientUpdateResponse struct {
// EventGrid Domain.
Domain
}
DomainsClientUpdateResponse contains the response from method DomainsClient.BeginUpdate.
type DomainsListResult ¶
type DomainsListResult struct {
// A link for the next page of domains.
NextLink *string
// A collection of Domains.
Value []*Domain
}
DomainsListResult - Result of the List Domains operation.
func (DomainsListResult) MarshalJSON ¶
func (d DomainsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DomainsListResult.
func (*DomainsListResult) UnmarshalJSON ¶
func (d *DomainsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DomainsListResult.
type DynamicDeliveryAttributeMapping ¶
type DynamicDeliveryAttributeMapping struct {
// REQUIRED; Type of the delivery attribute or header name.
Type *DeliveryAttributeMappingType
// Name of the delivery attribute or header.
Name *string
// Properties of dynamic delivery attribute mapping.
Properties *DynamicDeliveryAttributeMappingProperties
}
DynamicDeliveryAttributeMapping - Dynamic delivery attribute mapping details.
func (*DynamicDeliveryAttributeMapping) GetDeliveryAttributeMapping ¶
func (d *DynamicDeliveryAttributeMapping) GetDeliveryAttributeMapping() *DeliveryAttributeMapping
GetDeliveryAttributeMapping implements the DeliveryAttributeMappingClassification interface for type DynamicDeliveryAttributeMapping.
func (DynamicDeliveryAttributeMapping) MarshalJSON ¶
func (d DynamicDeliveryAttributeMapping) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DynamicDeliveryAttributeMapping.
func (*DynamicDeliveryAttributeMapping) UnmarshalJSON ¶
func (d *DynamicDeliveryAttributeMapping) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DynamicDeliveryAttributeMapping.
type DynamicDeliveryAttributeMappingProperties ¶
type DynamicDeliveryAttributeMappingProperties struct {
// JSON path in the event which contains attribute value.
SourceField *string
}
DynamicDeliveryAttributeMappingProperties - Properties of dynamic delivery attribute mapping.
func (DynamicDeliveryAttributeMappingProperties) MarshalJSON ¶
func (d DynamicDeliveryAttributeMappingProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DynamicDeliveryAttributeMappingProperties.
func (*DynamicDeliveryAttributeMappingProperties) UnmarshalJSON ¶
func (d *DynamicDeliveryAttributeMappingProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DynamicDeliveryAttributeMappingProperties.
type DynamicRoutingEnrichment ¶
type DynamicRoutingEnrichment struct {
// Dynamic routing enrichment key.
Key *string
// Dynamic routing enrichment value.
Value *string
}
func (DynamicRoutingEnrichment) MarshalJSON ¶
func (d DynamicRoutingEnrichment) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DynamicRoutingEnrichment.
func (*DynamicRoutingEnrichment) UnmarshalJSON ¶
func (d *DynamicRoutingEnrichment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DynamicRoutingEnrichment.
type EndpointType ¶
type EndpointType string
EndpointType - Type of the endpoint for the event subscription destination.
const ( EndpointTypeAzureFunction EndpointType = "AzureFunction" EndpointTypeEventHub EndpointType = "EventHub" EndpointTypeHybridConnection EndpointType = "HybridConnection" EndpointTypeMonitorAlert EndpointType = "MonitorAlert" EndpointTypeNamespaceTopic EndpointType = "NamespaceTopic" EndpointTypePartnerDestination EndpointType = "PartnerDestination" EndpointTypeServiceBusQueue EndpointType = "ServiceBusQueue" EndpointTypeServiceBusTopic EndpointType = "ServiceBusTopic" EndpointTypeStorageQueue EndpointType = "StorageQueue" EndpointTypeWebHook EndpointType = "WebHook" )
func PossibleEndpointTypeValues ¶
func PossibleEndpointTypeValues() []EndpointType
PossibleEndpointTypeValues returns the possible values for the EndpointType const type.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct {
// READ-ONLY; The additional info.
Info any
// READ-ONLY; The additional info type.
Type *string
}
ErrorAdditionalInfo - The resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶
func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.
func (*ErrorAdditionalInfo) UnmarshalJSON ¶
func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.
type ErrorDetail ¶
type ErrorDetail struct {
// READ-ONLY; The error additional info.
AdditionalInfo []*ErrorAdditionalInfo
// READ-ONLY; The error code.
Code *string
// READ-ONLY; The error details.
Details []*ErrorDetail
// READ-ONLY; The error message.
Message *string
// READ-ONLY; The error target.
Target *string
}
ErrorDetail - The error detail.
func (ErrorDetail) MarshalJSON ¶
func (e ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetail.
func (*ErrorDetail) UnmarshalJSON ¶
func (e *ErrorDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct {
// The error object.
Error *ErrorDetail
}
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
func (ErrorResponse) MarshalJSON ¶
func (e ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponse.
func (*ErrorResponse) UnmarshalJSON ¶
func (e *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.
type EventDefinitionKind ¶
type EventDefinitionKind string
EventDefinitionKind - The kind of event type used.
const (
EventDefinitionKindInline EventDefinitionKind = "Inline"
)
func PossibleEventDefinitionKindValues ¶
func PossibleEventDefinitionKindValues() []EventDefinitionKind
PossibleEventDefinitionKindValues returns the possible values for the EventDefinitionKind const type.
type EventDeliverySchema ¶
type EventDeliverySchema string
EventDeliverySchema - The event delivery schema for the event subscription.
const ( EventDeliverySchemaCloudEventSchemaV10 EventDeliverySchema = "CloudEventSchemaV1_0" EventDeliverySchemaCustomInputSchema EventDeliverySchema = "CustomInputSchema" EventDeliverySchemaEventGridSchema EventDeliverySchema = "EventGridSchema" )
func PossibleEventDeliverySchemaValues ¶
func PossibleEventDeliverySchemaValues() []EventDeliverySchema
PossibleEventDeliverySchemaValues returns the possible values for the EventDeliverySchema const type.
type EventHubEventSubscriptionDestination ¶
type EventHubEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// Event Hub Properties of the event subscription destination.
Properties *EventHubEventSubscriptionDestinationProperties
}
EventHubEventSubscriptionDestination - Information about the event hub destination for an event subscription.
func (*EventHubEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (e *EventHubEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type EventHubEventSubscriptionDestination.
func (EventHubEventSubscriptionDestination) MarshalJSON ¶
func (e EventHubEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventHubEventSubscriptionDestination.
func (*EventHubEventSubscriptionDestination) UnmarshalJSON ¶
func (e *EventHubEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventHubEventSubscriptionDestination.
type EventHubEventSubscriptionDestinationProperties ¶
type EventHubEventSubscriptionDestinationProperties struct {
// Delivery attribute details.
DeliveryAttributeMappings []DeliveryAttributeMappingClassification
// The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.
ResourceID *string
}
EventHubEventSubscriptionDestinationProperties - The properties for a event hub destination.
func (EventHubEventSubscriptionDestinationProperties) MarshalJSON ¶
func (e EventHubEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventHubEventSubscriptionDestinationProperties.
func (*EventHubEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (e *EventHubEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventHubEventSubscriptionDestinationProperties.
type EventInputSchema ¶
type EventInputSchema string
EventInputSchema - This determines the format that is expected for incoming events published to the topic.
const (
EventInputSchemaCloudEventSchemaV10 EventInputSchema = "CloudEventSchemaV1_0"
)
func PossibleEventInputSchemaValues ¶
func PossibleEventInputSchemaValues() []EventInputSchema
PossibleEventInputSchemaValues returns the possible values for the EventInputSchema const type.
type EventSubscription ¶
type EventSubscription struct {
// Properties of the event subscription.
Properties *EventSubscriptionProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Event Subscription resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
EventSubscription - Event Subscription.
func (EventSubscription) MarshalJSON ¶
func (e EventSubscription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventSubscription.
func (*EventSubscription) UnmarshalJSON ¶
func (e *EventSubscription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventSubscription.
type EventSubscriptionDestination ¶
type EventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
}
EventSubscriptionDestination - Information about the destination for an event subscription.
func (*EventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (e *EventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type EventSubscriptionDestination.
func (EventSubscriptionDestination) MarshalJSON ¶
func (e EventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventSubscriptionDestination.
func (*EventSubscriptionDestination) UnmarshalJSON ¶
func (e *EventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventSubscriptionDestination.
type EventSubscriptionDestinationClassification ¶
type EventSubscriptionDestinationClassification interface {
// GetEventSubscriptionDestination returns the EventSubscriptionDestination content of the underlying type.
GetEventSubscriptionDestination() *EventSubscriptionDestination
}
EventSubscriptionDestinationClassification provides polymorphic access to related types. Call the interface's GetEventSubscriptionDestination() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureFunctionEventSubscriptionDestination, *EventHubEventSubscriptionDestination, *EventSubscriptionDestination, *HybridConnectionEventSubscriptionDestination, - *MonitorAlertEventSubscriptionDestination, *NamespaceTopicEventSubscriptionDestination, *PartnerEventSubscriptionDestination, - *ServiceBusQueueEventSubscriptionDestination, *ServiceBusTopicEventSubscriptionDestination, *StorageQueueEventSubscriptionDestination, - *WebHookEventSubscriptionDestination
type EventSubscriptionFilter ¶
type EventSubscriptionFilter struct {
// An array of advanced filters that are used for filtering event subscriptions.
AdvancedFilters []AdvancedFilterClassification
// Allows advanced filters to be evaluated against an array of values instead of expecting a singular value.
EnableAdvancedFilteringOnArrays *bool
// A list of applicable event types that need to be part of the event subscription. If it is desired to subscribe to all default
// event types, set the IncludedEventTypes to null.
IncludedEventTypes []*string
// Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive
// manner.
IsSubjectCaseSensitive *bool
// An optional string to filter events for an event subscription based on a resource path prefix. The format of this depends
// on the publisher of the events. Wildcard characters are not supported in this
// path.
SubjectBeginsWith *string
// An optional string to filter events for an event subscription based on a resource path suffix. Wildcard characters are
// not supported in this path.
SubjectEndsWith *string
}
EventSubscriptionFilter - Filter for the Event Subscription.
func (EventSubscriptionFilter) MarshalJSON ¶
func (e EventSubscriptionFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventSubscriptionFilter.
func (*EventSubscriptionFilter) UnmarshalJSON ¶
func (e *EventSubscriptionFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventSubscriptionFilter.
type EventSubscriptionFullURL ¶
type EventSubscriptionFullURL struct {
// The URL that represents the endpoint of the destination of an event subscription.
EndpointURL *string
}
EventSubscriptionFullURL - Full endpoint URL of an event subscription
func (EventSubscriptionFullURL) MarshalJSON ¶
func (e EventSubscriptionFullURL) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventSubscriptionFullURL.
func (*EventSubscriptionFullURL) UnmarshalJSON ¶
func (e *EventSubscriptionFullURL) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventSubscriptionFullURL.
type EventSubscriptionIdentity ¶
type EventSubscriptionIdentity struct {
// The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.
Type *EventSubscriptionIdentityType
// The user identity associated with the resource.
UserAssignedIdentity *string
}
EventSubscriptionIdentity - The identity information with the event subscription.
func (EventSubscriptionIdentity) MarshalJSON ¶
func (e EventSubscriptionIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventSubscriptionIdentity.
func (*EventSubscriptionIdentity) UnmarshalJSON ¶
func (e *EventSubscriptionIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventSubscriptionIdentity.
type EventSubscriptionIdentityType ¶
type EventSubscriptionIdentityType string
EventSubscriptionIdentityType - The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.
const ( EventSubscriptionIdentityTypeSystemAssigned EventSubscriptionIdentityType = "SystemAssigned" EventSubscriptionIdentityTypeUserAssigned EventSubscriptionIdentityType = "UserAssigned" )
func PossibleEventSubscriptionIdentityTypeValues ¶
func PossibleEventSubscriptionIdentityTypeValues() []EventSubscriptionIdentityType
PossibleEventSubscriptionIdentityTypeValues returns the possible values for the EventSubscriptionIdentityType const type.
type EventSubscriptionProperties ¶
type EventSubscriptionProperties struct {
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to
// the dead letter destination. Uses Azure Event Grid's identity to acquire the
// authentication tokens being used during delivery / dead-lettering.
DeadLetterDestination DeadLetterDestinationClassification
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to
// the dead letter destination. Uses the managed identity setup on the parent
// resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterWithResourceIdentity *DeadLetterWithResourceIdentity
// Information about the destination where events have to be delivered for the event subscription. Uses the managed identity
// setup on the parent resource (namely, topic or domain) to acquire the
// authentication tokens being used during delivery / dead-lettering.
DeliveryWithResourceIdentity *DeliveryWithResourceIdentity
// Information about the destination where events have to be delivered for the event subscription. Uses Azure Event Grid's
// identity to acquire the authentication tokens being used during delivery /
// dead-lettering.
Destination EventSubscriptionDestinationClassification
// The event delivery schema for the event subscription.
EventDeliverySchema *EventDeliverySchema
// Expiration time of the event subscription.
ExpirationTimeUTC *time.Time
// Information about the filter for the event subscription.
Filter *EventSubscriptionFilter
// List of user defined labels.
Labels []*string
// The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
RetryPolicy *RetryPolicy
// READ-ONLY; Provisioning state of the event subscription.
ProvisioningState *EventSubscriptionProvisioningState
// READ-ONLY; Name of the topic of the event subscription.
Topic *string
}
EventSubscriptionProperties - Properties of the Event Subscription.
func (EventSubscriptionProperties) MarshalJSON ¶
func (e EventSubscriptionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventSubscriptionProperties.
func (*EventSubscriptionProperties) UnmarshalJSON ¶
func (e *EventSubscriptionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventSubscriptionProperties.
type EventSubscriptionProvisioningState ¶
type EventSubscriptionProvisioningState string
EventSubscriptionProvisioningState - Provisioning state of the event subscription.
const ( EventSubscriptionProvisioningStateAwaitingManualAction EventSubscriptionProvisioningState = "AwaitingManualAction" EventSubscriptionProvisioningStateCanceled EventSubscriptionProvisioningState = "Canceled" EventSubscriptionProvisioningStateCreating EventSubscriptionProvisioningState = "Creating" EventSubscriptionProvisioningStateDeleting EventSubscriptionProvisioningState = "Deleting" EventSubscriptionProvisioningStateFailed EventSubscriptionProvisioningState = "Failed" EventSubscriptionProvisioningStateSucceeded EventSubscriptionProvisioningState = "Succeeded" EventSubscriptionProvisioningStateUpdating EventSubscriptionProvisioningState = "Updating" )
func PossibleEventSubscriptionProvisioningStateValues ¶
func PossibleEventSubscriptionProvisioningStateValues() []EventSubscriptionProvisioningState
PossibleEventSubscriptionProvisioningStateValues returns the possible values for the EventSubscriptionProvisioningState const type.
type EventSubscriptionUpdateParameters ¶
type EventSubscriptionUpdateParameters struct {
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to
// the dead letter destination. Uses Azure Event Grid's identity to acquire the
// authentication tokens being used during delivery / dead-lettering.
DeadLetterDestination DeadLetterDestinationClassification
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to
// the dead letter destination. Uses the managed identity setup on the parent
// resource (topic / domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterWithResourceIdentity *DeadLetterWithResourceIdentity
// Information about the destination where events have to be delivered for the event subscription. Uses the managed identity
// setup on the parent resource (topic / domain) to acquire the authentication
// tokens being used during delivery / dead-lettering.
DeliveryWithResourceIdentity *DeliveryWithResourceIdentity
// Information about the destination where events have to be delivered for the event subscription. Uses Azure Event Grid's
// identity to acquire the authentication tokens being used during delivery /
// dead-lettering.
Destination EventSubscriptionDestinationClassification
// The event delivery schema for the event subscription.
EventDeliverySchema *EventDeliverySchema
// Information about the expiration time for the event subscription.
ExpirationTimeUTC *time.Time
// Information about the filter for the event subscription.
Filter *EventSubscriptionFilter
// List of user defined labels.
Labels []*string
// The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
RetryPolicy *RetryPolicy
}
EventSubscriptionUpdateParameters - Properties of the Event Subscription update.
func (EventSubscriptionUpdateParameters) MarshalJSON ¶
func (e EventSubscriptionUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventSubscriptionUpdateParameters.
func (*EventSubscriptionUpdateParameters) UnmarshalJSON ¶
func (e *EventSubscriptionUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventSubscriptionUpdateParameters.
type EventSubscriptionsClient ¶
type EventSubscriptionsClient struct {
// contains filtered or unexported fields
}
EventSubscriptionsClient contains the methods for the EventSubscriptions group. Don't use this type directly, use NewEventSubscriptionsClient() instead.
func NewEventSubscriptionsClient ¶
func NewEventSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EventSubscriptionsClient, error)
NewEventSubscriptionsClient creates a new instance of EventSubscriptionsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*EventSubscriptionsClient) BeginCreateOrUpdate ¶
func (client *EventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, scope string, eventSubscriptionName string, eventSubscriptionInfo EventSubscription, options *EventSubscriptionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[EventSubscriptionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates a new event subscription or updates an existing event subscription based on the specified scope. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- scope - The identifier of the resource to which the event subscription needs to be created or updated. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
- eventSubscriptionName - Name of the event subscription to be created. Event subscription names must be between 3 and 64 characters in length and should use alphanumeric letters only.
- eventSubscriptionInfo - Event subscription properties containing the destination and filter information.
- options - EventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the EventSubscriptionsClient.BeginCreateOrUpdate method.
Example (EventSubscriptionsCreateOrUpdateForCustomTopic) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.EventHubEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeEventHub),
Properties: &armeventgrid.EventHubEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForCustomTopicAzureFunctionDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_AzureFunctionDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
DeadLetterDestination: &armeventgrid.StorageBlobDeadLetterDestination{
EndpointType: to.Ptr(armeventgrid.DeadLetterEndPointTypeStorageBlob),
Properties: &armeventgrid.StorageBlobDeadLetterDestinationProperties{
BlobContainerName: to.Ptr("contosocontainer"),
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Destination: &armeventgrid.AzureFunctionEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeAzureFunction),
Properties: &armeventgrid.AzureFunctionEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Web/sites/ContosoSite/funtions/ContosoFunc"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForCustomTopicEventHubDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
DeadLetterDestination: &armeventgrid.StorageBlobDeadLetterDestination{
EndpointType: to.Ptr(armeventgrid.DeadLetterEndPointTypeStorageBlob),
Properties: &armeventgrid.StorageBlobDeadLetterDestinationProperties{
BlobContainerName: to.Ptr("contosocontainer"),
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Destination: &armeventgrid.EventHubEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeEventHub),
Properties: &armeventgrid.EventHubEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForCustomTopicHybridConnectionDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
DeadLetterDestination: &armeventgrid.StorageBlobDeadLetterDestination{
EndpointType: to.Ptr(armeventgrid.DeadLetterEndPointTypeStorageBlob),
Properties: &armeventgrid.StorageBlobDeadLetterDestinationProperties{
BlobContainerName: to.Ptr("contosocontainer"),
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Destination: &armeventgrid.HybridConnectionEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeHybridConnection),
Properties: &armeventgrid.HybridConnectionEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForCustomTopicServiceBusQueueDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusQueueDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
DeadLetterDestination: &armeventgrid.StorageBlobDeadLetterDestination{
EndpointType: to.Ptr(armeventgrid.DeadLetterEndPointTypeStorageBlob),
Properties: &armeventgrid.StorageBlobDeadLetterDestinationProperties{
BlobContainerName: to.Ptr("contosocontainer"),
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Destination: &armeventgrid.ServiceBusQueueEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeServiceBusQueue),
Properties: &armeventgrid.ServiceBusQueueEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/queues/SBQ"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForCustomTopicServiceBusTopicDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusTopicDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
DeadLetterDestination: &armeventgrid.StorageBlobDeadLetterDestination{
EndpointType: to.Ptr(armeventgrid.DeadLetterEndPointTypeStorageBlob),
Properties: &armeventgrid.StorageBlobDeadLetterDestinationProperties{
BlobContainerName: to.Ptr("contosocontainer"),
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Destination: &armeventgrid.ServiceBusTopicEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeServiceBusTopic),
Properties: &armeventgrid.ServiceBusTopicEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/topics/SBT"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForCustomTopicStorageQueueDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
DeadLetterDestination: &armeventgrid.StorageBlobDeadLetterDestination{
EndpointType: to.Ptr(armeventgrid.DeadLetterEndPointTypeStorageBlob),
Properties: &armeventgrid.StorageBlobDeadLetterDestinationProperties{
BlobContainerName: to.Ptr("contosocontainer"),
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
QueueMessageTimeToLiveInSeconds: to.Ptr[int64](300),
QueueName: to.Ptr("queue1"),
ResourceID: to.Ptr("/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForCustomTopicWebhookDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.EventHubEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeEventHub),
Properties: &armeventgrid.EventHubEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForResource) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForResource.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription10", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForResourceGroup) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg", "examplesubscription2", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
Example (EventSubscriptionsCreateOrUpdateForSubscription) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForSubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
},
},
}, 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)
}
func (*EventSubscriptionsClient) BeginDelete ¶
func (client *EventSubscriptionsClient) BeginDelete(ctx context.Context, scope string, eventSubscriptionName string, options *EventSubscriptionsClientBeginDeleteOptions) (*runtime.Poller[EventSubscriptionsClientDeleteResponse], error)
BeginDelete - Delete an existing event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- scope - The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
- eventSubscriptionName - Name of the event subscription to be deleted.
- options - EventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the EventSubscriptionsClient.BeginDelete method.
Example (EventSubscriptionsDeleteForCustomTopic) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_DeleteForCustomTopic.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginDelete(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", 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)
}
Example (EventSubscriptionsDeleteForResource) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_DeleteForResource.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginDelete(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription10", 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)
}
Example (EventSubscriptionsDeleteForResourceGroup) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_DeleteForResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginDelete(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg", "examplesubscription2", 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)
}
Example (EventSubscriptionsDeleteForSubscription) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_DeleteForSubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginDelete(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3", 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)
}
func (*EventSubscriptionsClient) BeginUpdate ¶
func (client *EventSubscriptionsClient) BeginUpdate(ctx context.Context, scope string, eventSubscriptionName string, eventSubscriptionUpdateParameters EventSubscriptionUpdateParameters, options *EventSubscriptionsClientBeginUpdateOptions) (*runtime.Poller[EventSubscriptionsClientUpdateResponse], error)
BeginUpdate - Asynchronously updates an existing event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- scope - The scope of existing event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
- eventSubscriptionName - Name of the event subscription to be updated.
- eventSubscriptionUpdateParameters - Updated event subscription information.
- options - EventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the EventSubscriptionsClient.BeginUpdate method.
Example (EventSubscriptionsUpdateForCustomTopic) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
Example (EventSubscriptionsUpdateForCustomTopicAzureFunctionDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_AzureFunctionDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscriptionUpdateParameters{
DeadLetterDestination: &armeventgrid.StorageBlobDeadLetterDestination{
EndpointType: to.Ptr(armeventgrid.DeadLetterEndPointTypeStorageBlob),
Properties: &armeventgrid.StorageBlobDeadLetterDestinationProperties{
BlobContainerName: to.Ptr("contosocontainer"),
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Destination: &armeventgrid.AzureFunctionEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeAzureFunction),
Properties: &armeventgrid.AzureFunctionEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Web/sites/ContosoSite/funtions/ContosoFunc"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
}, 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)
}
Example (EventSubscriptionsUpdateForCustomTopicEventHubDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_EventHubDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.EventHubEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeEventHub),
Properties: &armeventgrid.EventHubEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
Example (EventSubscriptionsUpdateForCustomTopicHybridConnectionDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_HybridConnectionDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.HybridConnectionEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeHybridConnection),
Properties: &armeventgrid.HybridConnectionEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
Example (EventSubscriptionsUpdateForCustomTopicServiceBusQueueDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_ServiceBusQueueDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscriptionUpdateParameters{
DeadLetterDestination: &armeventgrid.StorageBlobDeadLetterDestination{
EndpointType: to.Ptr(armeventgrid.DeadLetterEndPointTypeStorageBlob),
Properties: &armeventgrid.StorageBlobDeadLetterDestinationProperties{
BlobContainerName: to.Ptr("contosocontainer"),
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Destination: &armeventgrid.ServiceBusQueueEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeServiceBusQueue),
Properties: &armeventgrid.ServiceBusQueueEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/queues/SBQ"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
}, 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)
}
Example (EventSubscriptionsUpdateForCustomTopicServiceBusTopicDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_ServiceBusTopicDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.ServiceBusTopicEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeServiceBusTopic),
Properties: &armeventgrid.ServiceBusTopicEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/topics/SBT"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
Example (EventSubscriptionsUpdateForCustomTopicStorageQueueDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_StorageQueueDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", armeventgrid.EventSubscriptionUpdateParameters{
DeadLetterDestination: &armeventgrid.StorageBlobDeadLetterDestination{
EndpointType: to.Ptr(armeventgrid.DeadLetterEndPointTypeStorageBlob),
Properties: &armeventgrid.StorageBlobDeadLetterDestinationProperties{
BlobContainerName: to.Ptr("contosocontainer"),
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
QueueMessageTimeToLiveInSeconds: to.Ptr[int64](300),
QueueName: to.Ptr("queue1"),
ResourceID: to.Ptr("/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
}, 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)
}
Example (EventSubscriptionsUpdateForCustomTopicWebhookDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_WebhookDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
Example (EventSubscriptionsUpdateForResource) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForResource.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
Example (EventSubscriptionsUpdateForResourceGroup) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg", "examplesubscription2", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.EventHubEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeEventHub),
Properties: &armeventgrid.EventHubEventSubscriptionDestinationProperties{
ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
Example (EventSubscriptionsUpdateForSubscription) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForSubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEventSubscriptionsClient().BeginUpdate(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
func (*EventSubscriptionsClient) Get ¶
func (client *EventSubscriptionsClient) Get(ctx context.Context, scope string, eventSubscriptionName string, options *EventSubscriptionsClientGetOptions) (EventSubscriptionsClientGetResponse, error)
Get - Get properties of an event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- scope - The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
- eventSubscriptionName - Name of the event subscription to be found.
- options - EventSubscriptionsClientGetOptions contains the optional parameters for the EventSubscriptionsClient.Get method.
Example (EventSubscriptionsGetForCustomTopic) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// }
Example (EventSubscriptionsGetForCustomTopicAzureFunctionDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_AzureFunctionDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.AzureFunctionEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeAzureFunction),
// Properties: &armeventgrid.AzureFunctionEventSubscriptionDestinationProperties{
// ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Web/sites/ContosoSite/funtions/ContosoFunc"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// }
Example (EventSubscriptionsGetForCustomTopicEventHubDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_EventHubDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.EventHubEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeEventHub),
// Properties: &armeventgrid.EventHubEventSubscriptionDestinationProperties{
// ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// }
Example (EventSubscriptionsGetForCustomTopicHybridConnectionDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_HybridConnectionDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.HybridConnectionEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeHybridConnection),
// Properties: &armeventgrid.HybridConnectionEventSubscriptionDestinationProperties{
// ResourceID: to.Ptr("/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// }
Example (EventSubscriptionsGetForCustomTopicServiceBusQueueDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_ServiceBusQueueDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.ServiceBusQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeServiceBusQueue),
// Properties: &armeventgrid.ServiceBusQueueEventSubscriptionDestinationProperties{
// ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/queues/SBQ"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// }
Example (EventSubscriptionsGetForCustomTopicServiceBusTopicDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_ServiceBusTopicDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.ServiceBusTopicEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeServiceBusTopic),
// Properties: &armeventgrid.ServiceBusTopicEventSubscriptionDestinationProperties{
// ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/topics/SBT"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// }
Example (EventSubscriptionsGetForCustomTopicStorageQueueDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_StorageQueueDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueMessageTimeToLiveInSeconds: to.Ptr[int64](300),
// QueueName: to.Ptr("queue1"),
// ResourceID: to.Ptr("/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// }
Example (EventSubscriptionsGetForCustomTopicWebhookDestination) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_WebhookDestination.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// }
Example (EventSubscriptionsGetForResource) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForResource.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.EventHubEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeEventHub),
// Properties: &armeventgrid.EventHubEventSubscriptionDestinationProperties{
// ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1"),
// },
// }
Example (EventSubscriptionsGetForResourceGroup) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg", "examplesubscription2", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription2"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg"),
// },
// }
Example (EventSubscriptionsGetForSubscription) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForSubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription3"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40"),
// },
// }
func (*EventSubscriptionsClient) GetDeliveryAttributes ¶
func (client *EventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, scope string, eventSubscriptionName string, options *EventSubscriptionsClientGetDeliveryAttributesOptions) (EventSubscriptionsClientGetDeliveryAttributesResponse, error)
GetDeliveryAttributes - Get all delivery attributes for an event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- scope - The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
- eventSubscriptionName - Name of the event subscription.
- options - EventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the EventSubscriptionsClient.GetDeliveryAttributes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetDeliveryAttributes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().GetDeliveryAttributes(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.DeliveryAttributeListResult = armeventgrid.DeliveryAttributeListResult{
// Value: []armeventgrid.DeliveryAttributeMappingClassification{
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header1"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(false),
// Value: to.Ptr("NormalValue"),
// },
// },
// &armeventgrid.DynamicDeliveryAttributeMapping{
// Name: to.Ptr("header2"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeDynamic),
// Properties: &armeventgrid.DynamicDeliveryAttributeMappingProperties{
// SourceField: to.Ptr("data.foo"),
// },
// },
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header3"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(true),
// Value: to.Ptr("mySecretValue"),
// },
// }},
// }
func (*EventSubscriptionsClient) GetFullURL ¶
func (client *EventSubscriptionsClient) GetFullURL(ctx context.Context, scope string, eventSubscriptionName string, options *EventSubscriptionsClientGetFullURLOptions) (EventSubscriptionsClientGetFullURLResponse, error)
GetFullURL - Get the full endpoint URL for an event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- scope - The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
- eventSubscriptionName - Name of the event subscription.
- options - EventSubscriptionsClientGetFullURLOptions contains the optional parameters for the EventSubscriptionsClient.GetFullURL method.
Example (EventSubscriptionsGetFullUrlForCustomTopic) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetFullUrlForCustomTopic.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().GetFullURL(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
Example (EventSubscriptionsGetFullUrlForResource) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetFullUrlForResource.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().GetFullURL(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
Example (EventSubscriptionsGetFullUrlForResourceGroup) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetFullUrlForResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().GetFullURL(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg", "examplesubscription2", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
Example (EventSubscriptionsGetFullUrlForSubscription) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetFullUrlForSubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEventSubscriptionsClient().GetFullURL(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
func (*EventSubscriptionsClient) NewListByDomainTopicPager ¶
func (client *EventSubscriptionsClient) NewListByDomainTopicPager(resourceGroupName string, domainName string, topicName string, options *EventSubscriptionsClientListByDomainTopicOptions) *runtime.Pager[EventSubscriptionsClientListByDomainTopicResponse]
NewListByDomainTopicPager - List all event subscriptions that have been created for a specific domain topic.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- domainName - Name of the top level domain.
- topicName - Name of the domain topic.
- options - EventSubscriptionsClientListByDomainTopicOptions contains the optional parameters for the EventSubscriptionsClient.NewListByDomainTopicPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListByDomainTopic.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListByDomainTopicPager("examplerg", "domain1", "topic1", &armeventgrid.EventSubscriptionsClientListByDomainTopicOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1"),
// },
// },
// {
// Name: to.Ptr("examplesubscription2"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1"),
// },
// },
// {
// Name: to.Ptr("examplesubscription3"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// Labels: []*string{
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1"),
// },
// }},
// }
}
func (*EventSubscriptionsClient) NewListByResourcePager ¶
func (client *EventSubscriptionsClient) NewListByResourcePager(resourceGroupName string, providerNamespace string, resourceTypeName string, resourceName string, options *EventSubscriptionsClientListByResourceOptions) *runtime.Pager[EventSubscriptionsClientListByResourceResponse]
NewListByResourcePager - List all event subscriptions that have been created for a specific resource.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- providerNamespace - Namespace of the provider of the topic.
- resourceTypeName - Name of the resource type.
- resourceName - Name of the resource.
- options - EventSubscriptionsClientListByResourceOptions contains the optional parameters for the EventSubscriptionsClient.NewListByResourcePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListByResource.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListByResourcePager("examplerg", "Microsoft.EventGrid", "topics", "exampletopic2", &armeventgrid.EventSubscriptionsClientListByResourceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// },
// {
// Name: to.Ptr("examplesubscription2"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// },
// {
// Name: to.Ptr("examplesubscription3"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// Labels: []*string{
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"),
// },
// }},
// }
}
func (*EventSubscriptionsClient) NewListGlobalByResourceGroupForTopicTypePager ¶
func (client *EventSubscriptionsClient) NewListGlobalByResourceGroupForTopicTypePager(resourceGroupName string, topicTypeName string, options *EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeOptions) *runtime.Pager[EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeResponse]
NewListGlobalByResourceGroupForTopicTypePager - List all global event subscriptions under a resource group for a specific topic type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicTypeName - Name of the topic type.
- options - EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeOptions contains the optional parameters for the EventSubscriptionsClient.NewListGlobalByResourceGroupForTopicTypePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListGlobalByResourceGroupForTopicTypePager("examplerg", "Microsoft.Resources.ResourceGroups", &armeventgrid.EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription3"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg"),
// },
// }},
// }
}
func (*EventSubscriptionsClient) NewListGlobalByResourceGroupPager ¶
func (client *EventSubscriptionsClient) NewListGlobalByResourceGroupPager(resourceGroupName string, options *EventSubscriptionsClientListGlobalByResourceGroupOptions) *runtime.Pager[EventSubscriptionsClientListGlobalByResourceGroupResponse]
NewListGlobalByResourceGroupPager - List all global event subscriptions under a specific Azure subscription and resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - EventSubscriptionsClientListGlobalByResourceGroupOptions contains the optional parameters for the EventSubscriptionsClient.NewListGlobalByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListGlobalByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListGlobalByResourceGroupPager("examplerg", &armeventgrid.EventSubscriptionsClientListGlobalByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription2"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg"),
// },
// },
// {
// Name: to.Ptr("examplesubscription4"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg"),
// },
// }},
// }
}
func (*EventSubscriptionsClient) NewListGlobalBySubscriptionForTopicTypePager ¶
func (client *EventSubscriptionsClient) NewListGlobalBySubscriptionForTopicTypePager(topicTypeName string, options *EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeOptions) *runtime.Pager[EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeResponse]
NewListGlobalBySubscriptionForTopicTypePager - List all global event subscriptions under an Azure subscription for a topic type.
Generated from API version 2024-06-01-preview
- topicTypeName - Name of the topic type.
- options - EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeOptions contains the optional parameters for the EventSubscriptionsClient.NewListGlobalBySubscriptionForTopicTypePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListGlobalBySubscriptionForTopicTypePager("Microsoft.Resources.Subscriptions", &armeventgrid.EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription3"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40"),
// },
// }},
// }
}
func (*EventSubscriptionsClient) NewListGlobalBySubscriptionPager ¶
func (client *EventSubscriptionsClient) NewListGlobalBySubscriptionPager(options *EventSubscriptionsClientListGlobalBySubscriptionOptions) *runtime.Pager[EventSubscriptionsClientListGlobalBySubscriptionResponse]
NewListGlobalBySubscriptionPager - List all aggregated global event subscriptions under a specific Azure subscription.
Generated from API version 2024-06-01-preview
- options - EventSubscriptionsClientListGlobalBySubscriptionOptions contains the optional parameters for the EventSubscriptionsClient.NewListGlobalBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListGlobalBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListGlobalBySubscriptionPager(&armeventgrid.EventSubscriptionsClientListGlobalBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription2"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg"),
// },
// },
// {
// Name: to.Ptr("examplesubscription4"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg"),
// },
// }},
// }
}
func (*EventSubscriptionsClient) NewListRegionalByResourceGroupForTopicTypePager ¶
func (client *EventSubscriptionsClient) NewListRegionalByResourceGroupForTopicTypePager(resourceGroupName string, location string, topicTypeName string, options *EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeOptions) *runtime.Pager[EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeResponse]
NewListRegionalByResourceGroupForTopicTypePager - List all event subscriptions from the given location under a specific Azure subscription and resource group and topic type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- location - Name of the location.
- topicTypeName - Name of the topic type.
- options - EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeOptions contains the optional parameters for the EventSubscriptionsClient.NewListRegionalByResourceGroupForTopicTypePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListRegionalByResourceGroupForTopicTypePager("examplerg", "westus2", "Microsoft.EventHub.namespaces", &armeventgrid.EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription10"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"),
// },
// },
// {
// Name: to.Ptr("examplesubscription11"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"),
// },
// }},
// }
}
func (*EventSubscriptionsClient) NewListRegionalByResourceGroupPager ¶
func (client *EventSubscriptionsClient) NewListRegionalByResourceGroupPager(resourceGroupName string, location string, options *EventSubscriptionsClientListRegionalByResourceGroupOptions) *runtime.Pager[EventSubscriptionsClientListRegionalByResourceGroupResponse]
NewListRegionalByResourceGroupPager - List all event subscriptions from the given location under a specific Azure subscription and resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- location - Name of the location.
- options - EventSubscriptionsClientListRegionalByResourceGroupOptions contains the optional parameters for the EventSubscriptionsClient.NewListRegionalByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListRegionalByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListRegionalByResourceGroupPager("examplerg", "westus2", &armeventgrid.EventSubscriptionsClientListRegionalByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription10"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"),
// },
// },
// {
// Name: to.Ptr("examplesubscription11"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"),
// },
// }},
// }
}
func (*EventSubscriptionsClient) NewListRegionalBySubscriptionForTopicTypePager ¶
func (client *EventSubscriptionsClient) NewListRegionalBySubscriptionForTopicTypePager(location string, topicTypeName string, options *EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeOptions) *runtime.Pager[EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeResponse]
NewListRegionalBySubscriptionForTopicTypePager - List all event subscriptions from the given location under a specific Azure subscription and topic type.
Generated from API version 2024-06-01-preview
- location - Name of the location.
- topicTypeName - Name of the topic type.
- options - EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeOptions contains the optional parameters for the EventSubscriptionsClient.NewListRegionalBySubscriptionForTopicTypePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListRegionalBySubscriptionForTopicTypePager("westus2", "Microsoft.EventHub.namespaces", &armeventgrid.EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription10"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"),
// },
// },
// {
// Name: to.Ptr("examplesubscription11"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"),
// },
// }},
// }
}
func (*EventSubscriptionsClient) NewListRegionalBySubscriptionPager ¶
func (client *EventSubscriptionsClient) NewListRegionalBySubscriptionPager(location string, options *EventSubscriptionsClientListRegionalBySubscriptionOptions) *runtime.Pager[EventSubscriptionsClientListRegionalBySubscriptionResponse]
NewListRegionalBySubscriptionPager - List all event subscriptions from the given location under a specific Azure subscription.
Generated from API version 2024-06-01-preview
- location - Name of the location.
- options - EventSubscriptionsClientListRegionalBySubscriptionOptions contains the optional parameters for the EventSubscriptionsClient.NewListRegionalBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListRegionalBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEventSubscriptionsClient().NewListRegionalBySubscriptionPager("westus2", &armeventgrid.EventSubscriptionsClientListRegionalBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription10"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.EventHubEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeEventHub),
// Properties: &armeventgrid.EventHubEventSubscriptionDestinationProperties{
// ResourceID: to.Ptr("/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"),
// },
// },
// {
// Name: to.Ptr("examplesubscription11"),
// Type: to.Ptr("Microsoft.EventGrid/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("Finance"),
// to.Ptr("HR")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"),
// },
// }},
// }
}
type EventSubscriptionsClientBeginCreateOrUpdateOptions ¶
type EventSubscriptionsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
EventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the EventSubscriptionsClient.BeginCreateOrUpdate method.
type EventSubscriptionsClientBeginDeleteOptions ¶
type EventSubscriptionsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
EventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the EventSubscriptionsClient.BeginDelete method.
type EventSubscriptionsClientBeginUpdateOptions ¶
type EventSubscriptionsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
EventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the EventSubscriptionsClient.BeginUpdate method.
type EventSubscriptionsClientCreateOrUpdateResponse ¶
type EventSubscriptionsClientCreateOrUpdateResponse struct {
// Event Subscription.
EventSubscription
}
EventSubscriptionsClientCreateOrUpdateResponse contains the response from method EventSubscriptionsClient.BeginCreateOrUpdate.
type EventSubscriptionsClientDeleteResponse ¶
type EventSubscriptionsClientDeleteResponse struct {
}
EventSubscriptionsClientDeleteResponse contains the response from method EventSubscriptionsClient.BeginDelete.
type EventSubscriptionsClientGetDeliveryAttributesOptions ¶
type EventSubscriptionsClientGetDeliveryAttributesOptions struct {
}
EventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the EventSubscriptionsClient.GetDeliveryAttributes method.
type EventSubscriptionsClientGetDeliveryAttributesResponse ¶
type EventSubscriptionsClientGetDeliveryAttributesResponse struct {
// Result of the Get delivery attributes operation.
DeliveryAttributeListResult
}
EventSubscriptionsClientGetDeliveryAttributesResponse contains the response from method EventSubscriptionsClient.GetDeliveryAttributes.
type EventSubscriptionsClientGetFullURLOptions ¶
type EventSubscriptionsClientGetFullURLOptions struct {
}
EventSubscriptionsClientGetFullURLOptions contains the optional parameters for the EventSubscriptionsClient.GetFullURL method.
type EventSubscriptionsClientGetFullURLResponse ¶
type EventSubscriptionsClientGetFullURLResponse struct {
// Full endpoint URL of an event subscription
EventSubscriptionFullURL
}
EventSubscriptionsClientGetFullURLResponse contains the response from method EventSubscriptionsClient.GetFullURL.
type EventSubscriptionsClientGetOptions ¶
type EventSubscriptionsClientGetOptions struct {
}
EventSubscriptionsClientGetOptions contains the optional parameters for the EventSubscriptionsClient.Get method.
type EventSubscriptionsClientGetResponse ¶
type EventSubscriptionsClientGetResponse struct {
// Event Subscription.
EventSubscription
}
EventSubscriptionsClientGetResponse contains the response from method EventSubscriptionsClient.Get.
type EventSubscriptionsClientListByDomainTopicOptions ¶
type EventSubscriptionsClientListByDomainTopicOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListByDomainTopicOptions contains the optional parameters for the EventSubscriptionsClient.NewListByDomainTopicPager method.
type EventSubscriptionsClientListByDomainTopicResponse ¶
type EventSubscriptionsClientListByDomainTopicResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListByDomainTopicResponse contains the response from method EventSubscriptionsClient.NewListByDomainTopicPager.
type EventSubscriptionsClientListByResourceOptions ¶
type EventSubscriptionsClientListByResourceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListByResourceOptions contains the optional parameters for the EventSubscriptionsClient.NewListByResourcePager method.
type EventSubscriptionsClientListByResourceResponse ¶
type EventSubscriptionsClientListByResourceResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListByResourceResponse contains the response from method EventSubscriptionsClient.NewListByResourcePager.
type EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeOptions ¶
type EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeOptions contains the optional parameters for the EventSubscriptionsClient.NewListGlobalByResourceGroupForTopicTypePager method.
type EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeResponse ¶
type EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListGlobalByResourceGroupForTopicTypeResponse contains the response from method EventSubscriptionsClient.NewListGlobalByResourceGroupForTopicTypePager.
type EventSubscriptionsClientListGlobalByResourceGroupOptions ¶
type EventSubscriptionsClientListGlobalByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListGlobalByResourceGroupOptions contains the optional parameters for the EventSubscriptionsClient.NewListGlobalByResourceGroupPager method.
type EventSubscriptionsClientListGlobalByResourceGroupResponse ¶
type EventSubscriptionsClientListGlobalByResourceGroupResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListGlobalByResourceGroupResponse contains the response from method EventSubscriptionsClient.NewListGlobalByResourceGroupPager.
type EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeOptions ¶
type EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeOptions contains the optional parameters for the EventSubscriptionsClient.NewListGlobalBySubscriptionForTopicTypePager method.
type EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeResponse ¶
type EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListGlobalBySubscriptionForTopicTypeResponse contains the response from method EventSubscriptionsClient.NewListGlobalBySubscriptionForTopicTypePager.
type EventSubscriptionsClientListGlobalBySubscriptionOptions ¶
type EventSubscriptionsClientListGlobalBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListGlobalBySubscriptionOptions contains the optional parameters for the EventSubscriptionsClient.NewListGlobalBySubscriptionPager method.
type EventSubscriptionsClientListGlobalBySubscriptionResponse ¶
type EventSubscriptionsClientListGlobalBySubscriptionResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListGlobalBySubscriptionResponse contains the response from method EventSubscriptionsClient.NewListGlobalBySubscriptionPager.
type EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeOptions ¶
type EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeOptions contains the optional parameters for the EventSubscriptionsClient.NewListRegionalByResourceGroupForTopicTypePager method.
type EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeResponse ¶
type EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListRegionalByResourceGroupForTopicTypeResponse contains the response from method EventSubscriptionsClient.NewListRegionalByResourceGroupForTopicTypePager.
type EventSubscriptionsClientListRegionalByResourceGroupOptions ¶
type EventSubscriptionsClientListRegionalByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListRegionalByResourceGroupOptions contains the optional parameters for the EventSubscriptionsClient.NewListRegionalByResourceGroupPager method.
type EventSubscriptionsClientListRegionalByResourceGroupResponse ¶
type EventSubscriptionsClientListRegionalByResourceGroupResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListRegionalByResourceGroupResponse contains the response from method EventSubscriptionsClient.NewListRegionalByResourceGroupPager.
type EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeOptions ¶
type EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeOptions contains the optional parameters for the EventSubscriptionsClient.NewListRegionalBySubscriptionForTopicTypePager method.
type EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeResponse ¶
type EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListRegionalBySubscriptionForTopicTypeResponse contains the response from method EventSubscriptionsClient.NewListRegionalBySubscriptionForTopicTypePager.
type EventSubscriptionsClientListRegionalBySubscriptionOptions ¶
type EventSubscriptionsClientListRegionalBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
EventSubscriptionsClientListRegionalBySubscriptionOptions contains the optional parameters for the EventSubscriptionsClient.NewListRegionalBySubscriptionPager method.
type EventSubscriptionsClientListRegionalBySubscriptionResponse ¶
type EventSubscriptionsClientListRegionalBySubscriptionResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
EventSubscriptionsClientListRegionalBySubscriptionResponse contains the response from method EventSubscriptionsClient.NewListRegionalBySubscriptionPager.
type EventSubscriptionsClientUpdateResponse ¶
type EventSubscriptionsClientUpdateResponse struct {
// Event Subscription.
EventSubscription
}
EventSubscriptionsClientUpdateResponse contains the response from method EventSubscriptionsClient.BeginUpdate.
type EventSubscriptionsListResult ¶
type EventSubscriptionsListResult struct {
// A link for the next page of event subscriptions
NextLink *string
// A collection of EventSubscriptions
Value []*EventSubscription
}
EventSubscriptionsListResult - Result of the List EventSubscriptions operation
func (EventSubscriptionsListResult) MarshalJSON ¶
func (e EventSubscriptionsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventSubscriptionsListResult.
func (*EventSubscriptionsListResult) UnmarshalJSON ¶
func (e *EventSubscriptionsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventSubscriptionsListResult.
type EventType ¶
type EventType struct {
// Properties of the event type.
Properties *EventTypeProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; Type of the resource.
Type *string
}
EventType - Event Type for a subject under a topic
func (EventType) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type EventType.
func (*EventType) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type EventType.
type EventTypeInfo ¶
type EventTypeInfo struct {
// A collection of inline event types for the resource. The inline event type keys are of type string which represents the
// name of the event. An example of a valid inline event name is
// "Contoso.OrderCreated". The inline event type values are of type InlineEventProperties and will contain additional information
// for every inline event type.
InlineEventTypes map[string]*InlineEventProperties
// The kind of event type used.
Kind *EventDefinitionKind
}
EventTypeInfo - The event type information for Channels.
func (EventTypeInfo) MarshalJSON ¶
func (e EventTypeInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventTypeInfo.
func (*EventTypeInfo) UnmarshalJSON ¶
func (e *EventTypeInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventTypeInfo.
type EventTypeProperties ¶
type EventTypeProperties struct {
// Description of the event type.
Description *string
// Display name of the event type.
DisplayName *string
// IsInDefaultSet flag of the event type.
IsInDefaultSet *bool
// Url of the schema for this event type.
SchemaURL *string
}
EventTypeProperties - Properties of the event type
func (EventTypeProperties) MarshalJSON ¶
func (e EventTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventTypeProperties.
func (*EventTypeProperties) UnmarshalJSON ¶
func (e *EventTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventTypeProperties.
type EventTypesListResult ¶
type EventTypesListResult struct {
// A collection of event types
Value []*EventType
}
EventTypesListResult - Result of the List Event Types operation
func (EventTypesListResult) MarshalJSON ¶
func (e EventTypesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventTypesListResult.
func (*EventTypesListResult) UnmarshalJSON ¶
func (e *EventTypesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventTypesListResult.
type ExtendedLocation ¶
type ExtendedLocation struct {
// Fully qualified name of the extended location.
Name *string
// Type of the extended location.
Type *string
}
ExtendedLocation - Definition of an Extended Location
func (ExtendedLocation) MarshalJSON ¶
func (e ExtendedLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExtendedLocation.
func (*ExtendedLocation) UnmarshalJSON ¶
func (e *ExtendedLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedLocation.
type ExtensionTopic ¶
type ExtensionTopic struct {
// Properties of the extension topic.
Properties *ExtensionTopicProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Extension Topic resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
ExtensionTopic - Event grid Extension Topic. This is used for getting Event Grid related metrics for Azure resources.
func (ExtensionTopic) MarshalJSON ¶
func (e ExtensionTopic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExtensionTopic.
func (*ExtensionTopic) UnmarshalJSON ¶
func (e *ExtensionTopic) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ExtensionTopic.
type ExtensionTopicProperties ¶
type ExtensionTopicProperties struct {
// Description of the extension topic.
Description *string
// System topic resource id which is mapped to the source.
SystemTopic *string
}
ExtensionTopicProperties - Properties of the Extension Topic
func (ExtensionTopicProperties) MarshalJSON ¶
func (e ExtensionTopicProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExtensionTopicProperties.
func (*ExtensionTopicProperties) UnmarshalJSON ¶
func (e *ExtensionTopicProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ExtensionTopicProperties.
type ExtensionTopicsClient ¶
type ExtensionTopicsClient struct {
// contains filtered or unexported fields
}
ExtensionTopicsClient contains the methods for the ExtensionTopics group. Don't use this type directly, use NewExtensionTopicsClient() instead.
func NewExtensionTopicsClient ¶
func NewExtensionTopicsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ExtensionTopicsClient, error)
NewExtensionTopicsClient creates a new instance of ExtensionTopicsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ExtensionTopicsClient) Get ¶
func (client *ExtensionTopicsClient) Get(ctx context.Context, scope string, options *ExtensionTopicsClientGetOptions) (ExtensionTopicsClientGetResponse, error)
Get - Get the properties of an extension topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- scope - The identifier of the resource to which extension topic is queried. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for Azure resource.
- options - ExtensionTopicsClientGetOptions contains the optional parameters for the ExtensionTopicsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/ExtensionTopics_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewExtensionTopicsClient().Get(ctx, "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.storage/storageaccounts/exampleResourceName/providers/Microsoft.eventgrid/extensionTopics/default", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ExtensionTopic = armeventgrid.ExtensionTopic{
// Name: to.Ptr("default"),
// Type: to.Ptr("providers/Microsoft.EventGrid/extensionTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.storage/storageaccounts/exampleResourceName/providers/Microsoft.eventgrid/extensionTopics/default"),
// Properties: &armeventgrid.ExtensionTopicProperties{
// Description: to.Ptr("Extension topic for /subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.storage/storageaccounts/exampleResourceName/providers/Microsoft.eventgrid/extensionTopics/default that can be used to obtain metrics"),
// SystemTopic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleResourceName-2a41650f-00dd-4790-b3ab-dabd12d227cb"),
// },
// }
type ExtensionTopicsClientGetOptions ¶
type ExtensionTopicsClientGetOptions struct {
}
ExtensionTopicsClientGetOptions contains the optional parameters for the ExtensionTopicsClient.Get method.
type ExtensionTopicsClientGetResponse ¶
type ExtensionTopicsClientGetResponse struct {
// Event grid Extension Topic. This is used for getting Event Grid related metrics for Azure resources.
ExtensionTopic
}
ExtensionTopicsClientGetResponse contains the response from method ExtensionTopicsClient.Get.
type Filter ¶
type Filter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
}
Filter - This is the base type that represents a filter. To configure a filter, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class such as BoolEqualsFilter, NumberInFilter, StringEqualsFilter etc depending on the type of the key based on which you want to filter.
func (Filter) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Filter.
func (*Filter) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Filter.
type FilterClassification ¶
type FilterClassification interface {
// GetFilter returns the Filter content of the underlying type.
GetFilter() *Filter
}
FilterClassification provides polymorphic access to related types. Call the interface's GetFilter() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *BoolEqualsFilter, *Filter, *IsNotNullFilter, *IsNullOrUndefinedFilter, *NumberGreaterThanFilter, *NumberGreaterThanOrEqualsFilter, - *NumberInFilter, *NumberInRangeFilter, *NumberLessThanFilter, *NumberLessThanOrEqualsFilter, *NumberNotInFilter, *NumberNotInRangeFilter, - *StringBeginsWithFilter, *StringContainsFilter, *StringEndsWithFilter, *StringInFilter, *StringNotBeginsWithFilter, *StringNotContainsFilter, - *StringNotEndsWithFilter, *StringNotInFilter
type FilterOperatorType ¶
type FilterOperatorType string
FilterOperatorType - The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
const ( FilterOperatorTypeBoolEquals FilterOperatorType = "BoolEquals" FilterOperatorTypeIsNotNull FilterOperatorType = "IsNotNull" FilterOperatorTypeIsNullOrUndefined FilterOperatorType = "IsNullOrUndefined" FilterOperatorTypeNumberGreaterThan FilterOperatorType = "NumberGreaterThan" FilterOperatorTypeNumberGreaterThanOrEquals FilterOperatorType = "NumberGreaterThanOrEquals" FilterOperatorTypeNumberIn FilterOperatorType = "NumberIn" FilterOperatorTypeNumberInRange FilterOperatorType = "NumberInRange" FilterOperatorTypeNumberLessThan FilterOperatorType = "NumberLessThan" FilterOperatorTypeNumberLessThanOrEquals FilterOperatorType = "NumberLessThanOrEquals" FilterOperatorTypeNumberNotIn FilterOperatorType = "NumberNotIn" FilterOperatorTypeNumberNotInRange FilterOperatorType = "NumberNotInRange" FilterOperatorTypeStringBeginsWith FilterOperatorType = "StringBeginsWith" FilterOperatorTypeStringContains FilterOperatorType = "StringContains" FilterOperatorTypeStringEndsWith FilterOperatorType = "StringEndsWith" FilterOperatorTypeStringIn FilterOperatorType = "StringIn" FilterOperatorTypeStringNotBeginsWith FilterOperatorType = "StringNotBeginsWith" FilterOperatorTypeStringNotContains FilterOperatorType = "StringNotContains" FilterOperatorTypeStringNotEndsWith FilterOperatorType = "StringNotEndsWith" FilterOperatorTypeStringNotIn FilterOperatorType = "StringNotIn" )
func PossibleFilterOperatorTypeValues ¶
func PossibleFilterOperatorTypeValues() []FilterOperatorType
PossibleFilterOperatorTypeValues returns the possible values for the FilterOperatorType const type.
type FiltersConfiguration ¶
type FiltersConfiguration struct {
// An array of filters that are used for filtering event subscriptions.
Filters []FilterClassification
// A list of applicable event types that need to be part of the event subscription. If it is desired to subscribe to all default
// event types, set the IncludedEventTypes to null.
IncludedEventTypes []*string
}
FiltersConfiguration - Filters configuration for the Event Subscription.
func (FiltersConfiguration) MarshalJSON ¶
func (f FiltersConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FiltersConfiguration.
func (*FiltersConfiguration) UnmarshalJSON ¶
func (f *FiltersConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FiltersConfiguration.
type HybridConnectionEventSubscriptionDestination ¶
type HybridConnectionEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// Hybrid connection Properties of the event subscription destination.
Properties *HybridConnectionEventSubscriptionDestinationProperties
}
HybridConnectionEventSubscriptionDestination - Information about the HybridConnection destination for an event subscription.
func (*HybridConnectionEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (h *HybridConnectionEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type HybridConnectionEventSubscriptionDestination.
func (HybridConnectionEventSubscriptionDestination) MarshalJSON ¶
func (h HybridConnectionEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HybridConnectionEventSubscriptionDestination.
func (*HybridConnectionEventSubscriptionDestination) UnmarshalJSON ¶
func (h *HybridConnectionEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HybridConnectionEventSubscriptionDestination.
type HybridConnectionEventSubscriptionDestinationProperties ¶
type HybridConnectionEventSubscriptionDestinationProperties struct {
// Delivery attribute details.
DeliveryAttributeMappings []DeliveryAttributeMappingClassification
// The Azure Resource ID of an hybrid connection that is the destination of an event subscription.
ResourceID *string
}
HybridConnectionEventSubscriptionDestinationProperties - The properties for a hybrid connection destination.
func (HybridConnectionEventSubscriptionDestinationProperties) MarshalJSON ¶
func (h HybridConnectionEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HybridConnectionEventSubscriptionDestinationProperties.
func (*HybridConnectionEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (h *HybridConnectionEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HybridConnectionEventSubscriptionDestinationProperties.
type IPActionType ¶
type IPActionType string
IPActionType - Action to perform based on the match or no match of the IpMask.
const (
IPActionTypeAllow IPActionType = "Allow"
)
func PossibleIPActionTypeValues ¶
func PossibleIPActionTypeValues() []IPActionType
PossibleIPActionTypeValues returns the possible values for the IPActionType const type.
type IdentityInfo ¶
type IdentityInfo struct {
// The principal ID of resource identity.
PrincipalID *string
// The tenant ID of resource.
TenantID *string
// The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity
// and a set of user-assigned identities. The type 'None' will remove any identity.
Type *IdentityType
// The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource
// ids in the form:
// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
// This property is currently not used and reserved for
// future usage.
UserAssignedIdentities map[string]*UserIdentityProperties
}
IdentityInfo - The identity information for the resource.
func (IdentityInfo) MarshalJSON ¶
func (i IdentityInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IdentityInfo.
func (*IdentityInfo) UnmarshalJSON ¶
func (i *IdentityInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IdentityInfo.
type IdentityType ¶
type IdentityType string
IdentityType - The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.
const ( IdentityTypeNone IdentityType = "None" IdentityTypeSystemAssigned IdentityType = "SystemAssigned" IdentityTypeSystemAssignedUserAssigned IdentityType = "SystemAssigned, UserAssigned" IdentityTypeUserAssigned IdentityType = "UserAssigned" )
func PossibleIdentityTypeValues ¶
func PossibleIdentityTypeValues() []IdentityType
PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
type InboundIPRule ¶
type InboundIPRule struct {
// Action to perform based on the match or no match of the IpMask.
Action *IPActionType
// IP Address in CIDR notation e.g., 10.0.0.0/8.
IPMask *string
}
func (InboundIPRule) MarshalJSON ¶
func (i InboundIPRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InboundIPRule.
func (*InboundIPRule) UnmarshalJSON ¶
func (i *InboundIPRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InboundIPRule.
type InlineEventProperties ¶
type InlineEventProperties struct {
// The dataSchemaUrl for the inline event.
DataSchemaURL *string
// The description for the inline event.
Description *string
// The displayName for the inline event.
DisplayName *string
// The documentationUrl for the inline event.
DocumentationURL *string
}
InlineEventProperties - Additional information about every inline event.
func (InlineEventProperties) MarshalJSON ¶
func (i InlineEventProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InlineEventProperties.
func (*InlineEventProperties) UnmarshalJSON ¶
func (i *InlineEventProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InlineEventProperties.
type InputSchema ¶
type InputSchema string
InputSchema - This determines the format that Event Grid should expect for incoming events published to the Event Grid Domain Resource.
const ( InputSchemaCloudEventSchemaV10 InputSchema = "CloudEventSchemaV1_0" InputSchemaCustomEventSchema InputSchema = "CustomEventSchema" InputSchemaEventGridSchema InputSchema = "EventGridSchema" )
func PossibleInputSchemaValues ¶
func PossibleInputSchemaValues() []InputSchema
PossibleInputSchemaValues returns the possible values for the InputSchema const type.
type InputSchemaMapping ¶
type InputSchemaMapping struct {
// REQUIRED; Type of the custom mapping
InputSchemaMappingType *InputSchemaMappingType
}
InputSchemaMapping - By default, Event Grid expects events to be in the Event Grid event schema. Specifying an input schema mapping enables publishing to Event Grid using a custom input schema. Currently, the only supported type of InputSchemaMapping is 'JsonInputSchemaMapping'.
func (*InputSchemaMapping) GetInputSchemaMapping ¶
func (i *InputSchemaMapping) GetInputSchemaMapping() *InputSchemaMapping
GetInputSchemaMapping implements the InputSchemaMappingClassification interface for type InputSchemaMapping.
func (InputSchemaMapping) MarshalJSON ¶
func (i InputSchemaMapping) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InputSchemaMapping.
func (*InputSchemaMapping) UnmarshalJSON ¶
func (i *InputSchemaMapping) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InputSchemaMapping.
type InputSchemaMappingClassification ¶
type InputSchemaMappingClassification interface {
// GetInputSchemaMapping returns the InputSchemaMapping content of the underlying type.
GetInputSchemaMapping() *InputSchemaMapping
}
InputSchemaMappingClassification provides polymorphic access to related types. Call the interface's GetInputSchemaMapping() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *InputSchemaMapping, *JSONInputSchemaMapping
type InputSchemaMappingType ¶
type InputSchemaMappingType string
InputSchemaMappingType - Type of the custom mapping
const (
InputSchemaMappingTypeJSON InputSchemaMappingType = "Json"
)
func PossibleInputSchemaMappingTypeValues ¶
func PossibleInputSchemaMappingTypeValues() []InputSchemaMappingType
PossibleInputSchemaMappingTypeValues returns the possible values for the InputSchemaMappingType const type.
type IsNotNullAdvancedFilter ¶
type IsNotNullAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
}
IsNotNullAdvancedFilter - IsNotNull Advanced Filter.
func (*IsNotNullAdvancedFilter) GetAdvancedFilter ¶
func (i *IsNotNullAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type IsNotNullAdvancedFilter.
func (IsNotNullAdvancedFilter) MarshalJSON ¶
func (i IsNotNullAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IsNotNullAdvancedFilter.
func (*IsNotNullAdvancedFilter) UnmarshalJSON ¶
func (i *IsNotNullAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IsNotNullAdvancedFilter.
type IsNotNullFilter ¶
type IsNotNullFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
}
IsNotNullFilter - IsNotNull Filter.
func (*IsNotNullFilter) GetFilter ¶
func (i *IsNotNullFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type IsNotNullFilter.
func (IsNotNullFilter) MarshalJSON ¶
func (i IsNotNullFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IsNotNullFilter.
func (*IsNotNullFilter) UnmarshalJSON ¶
func (i *IsNotNullFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IsNotNullFilter.
type IsNullOrUndefinedAdvancedFilter ¶
type IsNullOrUndefinedAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
}
IsNullOrUndefinedAdvancedFilter - IsNullOrUndefined Advanced Filter.
func (*IsNullOrUndefinedAdvancedFilter) GetAdvancedFilter ¶
func (i *IsNullOrUndefinedAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type IsNullOrUndefinedAdvancedFilter.
func (IsNullOrUndefinedAdvancedFilter) MarshalJSON ¶
func (i IsNullOrUndefinedAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IsNullOrUndefinedAdvancedFilter.
func (*IsNullOrUndefinedAdvancedFilter) UnmarshalJSON ¶
func (i *IsNullOrUndefinedAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IsNullOrUndefinedAdvancedFilter.
type IsNullOrUndefinedFilter ¶
type IsNullOrUndefinedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
}
IsNullOrUndefinedFilter - IsNullOrUndefined Filter.
func (*IsNullOrUndefinedFilter) GetFilter ¶
func (i *IsNullOrUndefinedFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type IsNullOrUndefinedFilter.
func (IsNullOrUndefinedFilter) MarshalJSON ¶
func (i IsNullOrUndefinedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IsNullOrUndefinedFilter.
func (*IsNullOrUndefinedFilter) UnmarshalJSON ¶
func (i *IsNullOrUndefinedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IsNullOrUndefinedFilter.
type IssuerCertificateInfo ¶
type IssuerCertificateInfo struct {
// REQUIRED; Keyvault certificate URL in https://keyvaultname.vault.azure.net/certificates/certificateName/certificateVersion
// format.
CertificateURL *string
// The identity that will be used to access the certificate.
Identity *CustomJwtAuthenticationManagedIdentity
}
IssuerCertificateInfo - Information about the certificate that is used for token validation.
func (IssuerCertificateInfo) MarshalJSON ¶
func (i IssuerCertificateInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IssuerCertificateInfo.
func (*IssuerCertificateInfo) UnmarshalJSON ¶
func (i *IssuerCertificateInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IssuerCertificateInfo.
type JSONField ¶
type JSONField struct {
// Name of a field in the input event schema that's to be used as the source of a mapping.
SourceField *string
}
JSONField - This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema. This is currently used in the mappings for the 'id', 'topic' and 'eventtime' properties. This represents a field in the input event schema.
func (JSONField) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type JSONField.
func (*JSONField) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type JSONField.
type JSONFieldWithDefault ¶
type JSONFieldWithDefault struct {
// The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified
// name in the published JSON event payload.
DefaultValue *string
// Name of a field in the input event schema that's to be used as the source of a mapping.
SourceField *string
}
JSONFieldWithDefault - This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema. This is currently used in the mappings for the 'subject', 'eventtype' and 'dataversion' properties. This represents a field in the input event schema along with a default value to be used, and at least one of these two properties should be provided.
func (JSONFieldWithDefault) MarshalJSON ¶
func (j JSONFieldWithDefault) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JSONFieldWithDefault.
func (*JSONFieldWithDefault) UnmarshalJSON ¶
func (j *JSONFieldWithDefault) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JSONFieldWithDefault.
type JSONInputSchemaMapping ¶
type JSONInputSchemaMapping struct {
// REQUIRED; Type of the custom mapping
InputSchemaMappingType *InputSchemaMappingType
// JSON Properties of the input schema mapping
Properties *JSONInputSchemaMappingProperties
}
JSONInputSchemaMapping - This enables publishing to Event Grid using a custom input schema. This can be used to map properties from a custom input JSON schema to the Event Grid event schema.
func (*JSONInputSchemaMapping) GetInputSchemaMapping ¶
func (j *JSONInputSchemaMapping) GetInputSchemaMapping() *InputSchemaMapping
GetInputSchemaMapping implements the InputSchemaMappingClassification interface for type JSONInputSchemaMapping.
func (JSONInputSchemaMapping) MarshalJSON ¶
func (j JSONInputSchemaMapping) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JSONInputSchemaMapping.
func (*JSONInputSchemaMapping) UnmarshalJSON ¶
func (j *JSONInputSchemaMapping) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JSONInputSchemaMapping.
type JSONInputSchemaMappingProperties ¶
type JSONInputSchemaMappingProperties struct {
// The mapping information for the DataVersion property of the Event Grid Event.
DataVersion *JSONFieldWithDefault
// The mapping information for the EventTime property of the Event Grid Event.
EventTime *JSONField
// The mapping information for the EventType property of the Event Grid Event.
EventType *JSONFieldWithDefault
// The mapping information for the Id property of the Event Grid Event.
ID *JSONField
// The mapping information for the Subject property of the Event Grid Event.
Subject *JSONFieldWithDefault
// The mapping information for the Topic property of the Event Grid Event.
Topic *JSONField
}
JSONInputSchemaMappingProperties - This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema.
func (JSONInputSchemaMappingProperties) MarshalJSON ¶
func (j JSONInputSchemaMappingProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JSONInputSchemaMappingProperties.
func (*JSONInputSchemaMappingProperties) UnmarshalJSON ¶
func (j *JSONInputSchemaMappingProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JSONInputSchemaMappingProperties.
type MonitorAlertEventSubscriptionDestination ¶
type MonitorAlertEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// Monitor Alert properties of the event subscription destination.
Properties *MonitorAlertEventSubscriptionDestinationProperties
}
MonitorAlertEventSubscriptionDestination - Information about the Monitor Alert destination for an event subscription.
func (*MonitorAlertEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (m *MonitorAlertEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type MonitorAlertEventSubscriptionDestination.
func (MonitorAlertEventSubscriptionDestination) MarshalJSON ¶
func (m MonitorAlertEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitorAlertEventSubscriptionDestination.
func (*MonitorAlertEventSubscriptionDestination) UnmarshalJSON ¶
func (m *MonitorAlertEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitorAlertEventSubscriptionDestination.
type MonitorAlertEventSubscriptionDestinationProperties ¶
type MonitorAlertEventSubscriptionDestinationProperties struct {
// The list of ARM Ids of Action Groups that will be triggered on every Alert fired through this event subscription. Each
// resource ARM Id should follow this pattern:
// /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Insights/actionGroups/{ActionGroupName}.
ActionGroups []*string
// The description that will be attached to every Alert fired through this event subscription.
Description *string
// The severity that will be attached to every Alert fired through this event subscription. This field must be provided.
Severity *MonitorAlertSeverity
}
MonitorAlertEventSubscriptionDestinationProperties - The properties that represent the Monitor Alert destination of an event subscription.
func (MonitorAlertEventSubscriptionDestinationProperties) MarshalJSON ¶
func (m MonitorAlertEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitorAlertEventSubscriptionDestinationProperties.
func (*MonitorAlertEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (m *MonitorAlertEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitorAlertEventSubscriptionDestinationProperties.
type MonitorAlertSeverity ¶
type MonitorAlertSeverity string
MonitorAlertSeverity - The severity that will be attached to every Alert fired through this event subscription. This field must be provided.
const ( MonitorAlertSeveritySev0 MonitorAlertSeverity = "Sev0" MonitorAlertSeveritySev1 MonitorAlertSeverity = "Sev1" MonitorAlertSeveritySev2 MonitorAlertSeverity = "Sev2" MonitorAlertSeveritySev3 MonitorAlertSeverity = "Sev3" MonitorAlertSeveritySev4 MonitorAlertSeverity = "Sev4" )
func PossibleMonitorAlertSeverityValues ¶
func PossibleMonitorAlertSeverityValues() []MonitorAlertSeverity
PossibleMonitorAlertSeverityValues returns the possible values for the MonitorAlertSeverity const type.
type Namespace ¶
type Namespace struct {
// REQUIRED; Location of the resource.
Location *string
// Identity information for the Namespace resource.
Identity *IdentityInfo
// Properties of the Namespace resource.
Properties *NamespaceProperties
// Represents available Sku pricing tiers.
SKU *NamespaceSKU
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to the namespace resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
Namespace resource.
func (Namespace) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Namespace.
func (*Namespace) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Namespace.
type NamespaceProperties ¶
type NamespaceProperties struct {
// This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess
// is enabled.
InboundIPRules []*InboundIPRule
// This is an optional property and it allows the user to specify if the namespace resource supports zone-redundancy capability
// or not. If this property is not specified explicitly by the user, its
// default value depends on the following conditions: a. For Availability Zones enabled regions - The default property value
// would be true. b. For non-Availability Zones enabled regions - The default
// property value would be false. Once specified, this property cannot be updated.
IsZoneRedundant *bool
// Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
MinimumTLSVersionAllowed *TLSVersion
// List of private endpoint connections.
PrivateEndpointConnections []*PrivateEndpointConnection
// This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific
// IPs by configuring
PublicNetworkAccess *PublicNetworkAccess
// Topic spaces configuration information for the namespace resource
TopicSpacesConfiguration *TopicSpacesConfiguration
// Topics configuration information for the namespace resource
TopicsConfiguration *TopicsConfiguration
// READ-ONLY; Provisioning state of the namespace resource.
ProvisioningState *NamespaceProvisioningState
}
NamespaceProperties - Properties of the namespace resource.
func (NamespaceProperties) MarshalJSON ¶
func (n NamespaceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceProperties.
func (*NamespaceProperties) UnmarshalJSON ¶
func (n *NamespaceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceProperties.
type NamespaceProvisioningState ¶
type NamespaceProvisioningState string
NamespaceProvisioningState - Provisioning state of the namespace resource.
const ( NamespaceProvisioningStateCanceled NamespaceProvisioningState = "Canceled" NamespaceProvisioningStateCreateFailed NamespaceProvisioningState = "CreateFailed" NamespaceProvisioningStateCreating NamespaceProvisioningState = "Creating" NamespaceProvisioningStateDeleteFailed NamespaceProvisioningState = "DeleteFailed" NamespaceProvisioningStateDeleted NamespaceProvisioningState = "Deleted" NamespaceProvisioningStateDeleting NamespaceProvisioningState = "Deleting" NamespaceProvisioningStateFailed NamespaceProvisioningState = "Failed" NamespaceProvisioningStateSucceeded NamespaceProvisioningState = "Succeeded" NamespaceProvisioningStateUpdatedFailed NamespaceProvisioningState = "UpdatedFailed" NamespaceProvisioningStateUpdating NamespaceProvisioningState = "Updating" )
func PossibleNamespaceProvisioningStateValues ¶
func PossibleNamespaceProvisioningStateValues() []NamespaceProvisioningState
PossibleNamespaceProvisioningStateValues returns the possible values for the NamespaceProvisioningState const type.
type NamespaceRegenerateKeyRequest ¶
type NamespaceRegenerateKeyRequest struct {
// REQUIRED; Key name to regenerate key1 or key2.
KeyName *string
}
NamespaceRegenerateKeyRequest - Namespace regenerate share access key request.
func (NamespaceRegenerateKeyRequest) MarshalJSON ¶
func (n NamespaceRegenerateKeyRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceRegenerateKeyRequest.
func (*NamespaceRegenerateKeyRequest) UnmarshalJSON ¶
func (n *NamespaceRegenerateKeyRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceRegenerateKeyRequest.
type NamespaceSKU ¶
type NamespaceSKU struct {
// Specifies the number of Throughput Units that defines the capacity for the namespace. The property default value is 1 which
// signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace.
// Min capacity is 1 and max allowed capacity is 20.
Capacity *int32
// The name of the SKU.
Name *SKUName
}
NamespaceSKU - Represents available Sku pricing tiers.
func (NamespaceSKU) MarshalJSON ¶
func (n NamespaceSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceSKU.
func (*NamespaceSKU) UnmarshalJSON ¶
func (n *NamespaceSKU) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceSKU.
type NamespaceSharedAccessKeys ¶
NamespaceSharedAccessKeys - Shared access keys of the Namespace.
func (NamespaceSharedAccessKeys) MarshalJSON ¶
func (n NamespaceSharedAccessKeys) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceSharedAccessKeys.
func (*NamespaceSharedAccessKeys) UnmarshalJSON ¶
func (n *NamespaceSharedAccessKeys) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceSharedAccessKeys.
type NamespaceTopic ¶
type NamespaceTopic struct {
// Properties of the namespace topic.
Properties *NamespaceTopicProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to namespace topic resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
NamespaceTopic - Namespace topic details.
func (NamespaceTopic) MarshalJSON ¶
func (n NamespaceTopic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceTopic.
func (*NamespaceTopic) UnmarshalJSON ¶
func (n *NamespaceTopic) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceTopic.
type NamespaceTopicEventSubscriptionDestination ¶
type NamespaceTopicEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// Namespace Topic properties of the event subscription destination.
Properties *NamespaceTopicEventSubscriptionDestinationProperties
}
NamespaceTopicEventSubscriptionDestination - Information about the Namespace Topic destination for an event subscription.
func (*NamespaceTopicEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (n *NamespaceTopicEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type NamespaceTopicEventSubscriptionDestination.
func (NamespaceTopicEventSubscriptionDestination) MarshalJSON ¶
func (n NamespaceTopicEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceTopicEventSubscriptionDestination.
func (*NamespaceTopicEventSubscriptionDestination) UnmarshalJSON ¶
func (n *NamespaceTopicEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceTopicEventSubscriptionDestination.
type NamespaceTopicEventSubscriptionDestinationProperties ¶
type NamespaceTopicEventSubscriptionDestinationProperties struct {
// The Azure resource Id that represents the endpoint of the Event Grid Namespace Topic destination of an event subscription.
// This field is required and the Namespace Topic resource listed must already
// exist. The resource ARM Id should follow this pattern:
// /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.EventGrid/namespaces/{NamespaceName}/topics/{TopicName}.
ResourceID *string
}
NamespaceTopicEventSubscriptionDestinationProperties - The properties that represent the Event Grid Namespace Topic destination of an event subscription.
func (NamespaceTopicEventSubscriptionDestinationProperties) MarshalJSON ¶
func (n NamespaceTopicEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceTopicEventSubscriptionDestinationProperties.
func (*NamespaceTopicEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (n *NamespaceTopicEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceTopicEventSubscriptionDestinationProperties.
type NamespaceTopicEventSubscriptionsClient ¶
type NamespaceTopicEventSubscriptionsClient struct {
// contains filtered or unexported fields
}
NamespaceTopicEventSubscriptionsClient contains the methods for the NamespaceTopicEventSubscriptions group. Don't use this type directly, use NewNamespaceTopicEventSubscriptionsClient() instead.
func NewNamespaceTopicEventSubscriptionsClient ¶
func NewNamespaceTopicEventSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NamespaceTopicEventSubscriptionsClient, error)
NewNamespaceTopicEventSubscriptionsClient creates a new instance of NamespaceTopicEventSubscriptionsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*NamespaceTopicEventSubscriptionsClient) BeginCreateOrUpdate ¶
func (client *NamespaceTopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, eventSubscriptionName string, eventSubscriptionInfo Subscription, options *NamespaceTopicEventSubscriptionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[NamespaceTopicEventSubscriptionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates or updates an event subscription of a namespace topic with the specified parameters. Existing event subscriptions will be updated with this API. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- eventSubscriptionName - Name of the event subscription to be created. Event subscription names must be between 3 and 50 characters in length and use alphanumeric letters only.
- eventSubscriptionInfo - Event subscription properties containing the delivery mode, filter information, and others.
- options - NamespaceTopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespaceTopicEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "examplerg", "examplenamespace2", "examplenamespacetopic2", "examplenamespacetopicEventSub2", armeventgrid.Subscription{
Properties: &armeventgrid.SubscriptionProperties{
DeliveryConfiguration: &armeventgrid.DeliveryConfiguration{
DeliveryMode: to.Ptr(armeventgrid.DeliveryModeQueue),
Queue: &armeventgrid.QueueInfo{
EventTimeToLive: to.Ptr("P1D"),
MaxDeliveryCount: to.Ptr[int32](4),
ReceiveLockDurationInSeconds: to.Ptr[int32](60),
},
},
EventDeliverySchema: to.Ptr(armeventgrid.DeliverySchemaCloudEventSchemaV10),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Subscription = armeventgrid.Subscription{
// Name: to.Ptr("examplenamespacetopicEventSub2"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics/eventsubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic2/eventSubscriptions/examplenamespacetopicEventSub2"),
// Properties: &armeventgrid.SubscriptionProperties{
// DeliveryConfiguration: &armeventgrid.DeliveryConfiguration{
// DeliveryMode: to.Ptr(armeventgrid.DeliveryModeQueue),
// Queue: &armeventgrid.QueueInfo{
// EventTimeToLive: to.Ptr("P1D"),
// MaxDeliveryCount: to.Ptr[int32](4),
// ReceiveLockDurationInSeconds: to.Ptr[int32](60),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.DeliverySchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.SubscriptionProvisioningStateSucceeded),
// },
// }
func (*NamespaceTopicEventSubscriptionsClient) BeginDelete ¶
func (client *NamespaceTopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, eventSubscriptionName string, options *NamespaceTopicEventSubscriptionsClientBeginDeleteOptions) (*runtime.Poller[NamespaceTopicEventSubscriptionsClientDeleteResponse], error)
BeginDelete - Delete an existing event subscription of a namespace topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- eventSubscriptionName - Name of the event subscription to be deleted.
- options - NamespaceTopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespaceTopicEventSubscriptionsClient().BeginDelete(ctx, "examplerg", "examplenamespace2", "examplenamespacetopic2", "examplenamespacetopicEventSub2", 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)
}
func (*NamespaceTopicEventSubscriptionsClient) BeginUpdate ¶
func (client *NamespaceTopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, eventSubscriptionName string, eventSubscriptionUpdateParameters SubscriptionUpdateParameters, options *NamespaceTopicEventSubscriptionsClientBeginUpdateOptions) (*runtime.Poller[NamespaceTopicEventSubscriptionsClientUpdateResponse], error)
BeginUpdate - Update an existing event subscription of a namespace topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- eventSubscriptionName - Name of the event subscription to be updated.
- eventSubscriptionUpdateParameters - Updated event subscription information.
- options - NamespaceTopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespaceTopicEventSubscriptionsClient().BeginUpdate(ctx, "examplerg", "exampleNamespaceName1", "exampleNamespaceTopicName1", "exampleNamespaceTopicEventSubscriptionName1", armeventgrid.SubscriptionUpdateParameters{
Properties: &armeventgrid.SubscriptionUpdateParametersProperties{
DeliveryConfiguration: &armeventgrid.DeliveryConfiguration{
DeliveryMode: to.Ptr(armeventgrid.DeliveryModeQueue),
Queue: &armeventgrid.QueueInfo{
EventTimeToLive: to.Ptr("P1D"),
MaxDeliveryCount: to.Ptr[int32](3),
ReceiveLockDurationInSeconds: to.Ptr[int32](60),
},
},
EventDeliverySchema: to.Ptr(armeventgrid.DeliverySchemaCloudEventSchemaV10),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Subscription = armeventgrid.Subscription{
// Name: to.Ptr("exampleNamespaceTopicEventSubscriptionName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics/eventsubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/exampleNamespaceTopicName1/eventSubscriptions/exampleNamespaceTopicEventSubscriptionName1"),
// Properties: &armeventgrid.SubscriptionProperties{
// DeliveryConfiguration: &armeventgrid.DeliveryConfiguration{
// DeliveryMode: to.Ptr(armeventgrid.DeliveryModeQueue),
// Queue: &armeventgrid.QueueInfo{
// EventTimeToLive: to.Ptr("P1D"),
// MaxDeliveryCount: to.Ptr[int32](3),
// ReceiveLockDurationInSeconds: to.Ptr[int32](60),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.DeliverySchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.SubscriptionProvisioningStateSucceeded),
// },
// }
func (*NamespaceTopicEventSubscriptionsClient) Get ¶
func (client *NamespaceTopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, eventSubscriptionName string, options *NamespaceTopicEventSubscriptionsClientGetOptions) (NamespaceTopicEventSubscriptionsClientGetResponse, error)
Get - Get properties of an event subscription of a namespace topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- eventSubscriptionName - Name of the event subscription to be found.
- options - NamespaceTopicEventSubscriptionsClientGetOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewNamespaceTopicEventSubscriptionsClient().Get(ctx, "examplerg", "examplenamespace2", "examplenamespacetopic2", "examplenamespacetopicEventSub1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Subscription = armeventgrid.Subscription{
// Name: to.Ptr("examplenamespacetopicEventSub2"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics/eventsubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic2/eventSubscriptions/examplenamespacetopicEventSub2"),
// Properties: &armeventgrid.SubscriptionProperties{
// DeliveryConfiguration: &armeventgrid.DeliveryConfiguration{
// DeliveryMode: to.Ptr(armeventgrid.DeliveryModeQueue),
// Queue: &armeventgrid.QueueInfo{
// EventTimeToLive: to.Ptr("P1D"),
// MaxDeliveryCount: to.Ptr[int32](4),
// ReceiveLockDurationInSeconds: to.Ptr[int32](60),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.DeliverySchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.SubscriptionProvisioningStateSucceeded),
// },
// }
func (*NamespaceTopicEventSubscriptionsClient) GetDeliveryAttributes ¶
func (client *NamespaceTopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, eventSubscriptionName string, options *NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesOptions) (NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
GetDeliveryAttributes - Get all delivery attributes for an event subscription of a namespace topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- eventSubscriptionName - Name of the event subscription.
- options - NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.GetDeliveryAttributes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_GetDeliveryAttributes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewNamespaceTopicEventSubscriptionsClient().GetDeliveryAttributes(ctx, "examplerg", "exampleNamespace", "exampleNamespaceTopic", "exampleEventSubscriptionName", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.DeliveryAttributeListResult = armeventgrid.DeliveryAttributeListResult{
// Value: []armeventgrid.DeliveryAttributeMappingClassification{
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header1"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(false),
// Value: to.Ptr("NormalValue"),
// },
// },
// &armeventgrid.DynamicDeliveryAttributeMapping{
// Name: to.Ptr("header2"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeDynamic),
// Properties: &armeventgrid.DynamicDeliveryAttributeMappingProperties{
// SourceField: to.Ptr("data.foo"),
// },
// },
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header3"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(true),
// Value: to.Ptr("mySecretValue"),
// },
// }},
// }
func (*NamespaceTopicEventSubscriptionsClient) GetFullURL ¶
func (client *NamespaceTopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, eventSubscriptionName string, options *NamespaceTopicEventSubscriptionsClientGetFullURLOptions) (NamespaceTopicEventSubscriptionsClientGetFullURLResponse, error)
GetFullURL - Get the full endpoint URL for an event subscription of a namespace topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- eventSubscriptionName - Name of the event subscription.
- options - NamespaceTopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.GetFullURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_GetFullUrl.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewNamespaceTopicEventSubscriptionsClient().GetFullURL(ctx, "examplerg", "exampleNamespaceName1", "exampleDomainTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SubscriptionFullURL = armeventgrid.SubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
func (*NamespaceTopicEventSubscriptionsClient) NewListByNamespaceTopicPager ¶
func (client *NamespaceTopicEventSubscriptionsClient) NewListByNamespaceTopicPager(resourceGroupName string, namespaceName string, topicName string, options *NamespaceTopicEventSubscriptionsClientListByNamespaceTopicOptions) *runtime.Pager[NamespaceTopicEventSubscriptionsClientListByNamespaceTopicResponse]
NewListByNamespaceTopicPager - List event subscriptions that belong to a specific namespace topic.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- options - NamespaceTopicEventSubscriptionsClientListByNamespaceTopicOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.NewListByNamespaceTopicPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_ListByNamespaceTopic.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewNamespaceTopicEventSubscriptionsClient().NewListByNamespaceTopicPager("examplerg", "examplenamespace2", "examplenamespacetopic2", &armeventgrid.NamespaceTopicEventSubscriptionsClientListByNamespaceTopicOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.SubscriptionsListResult = armeventgrid.SubscriptionsListResult{
// Value: []*armeventgrid.Subscription{
// {
// Name: to.Ptr("examplenamespacetopicEventSub1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics/eventsubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic2/eventSubscriptions/examplenamespacetopicEventSub1"),
// Properties: &armeventgrid.SubscriptionProperties{
// DeliveryConfiguration: &armeventgrid.DeliveryConfiguration{
// DeliveryMode: to.Ptr(armeventgrid.DeliveryModeQueue),
// Queue: &armeventgrid.QueueInfo{
// EventTimeToLive: to.Ptr("P1D"),
// MaxDeliveryCount: to.Ptr[int32](5),
// ReceiveLockDurationInSeconds: to.Ptr[int32](50),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.DeliverySchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.SubscriptionProvisioningStateSucceeded),
// },
// },
// {
// Name: to.Ptr("examplenamespacetopicEventSub2"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics/eventsubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic2/eventSubscriptions/examplenamespacetopicEventSub2"),
// Properties: &armeventgrid.SubscriptionProperties{
// DeliveryConfiguration: &armeventgrid.DeliveryConfiguration{
// DeliveryMode: to.Ptr(armeventgrid.DeliveryModeQueue),
// Queue: &armeventgrid.QueueInfo{
// EventTimeToLive: to.Ptr("P1D"),
// MaxDeliveryCount: to.Ptr[int32](4),
// ReceiveLockDurationInSeconds: to.Ptr[int32](60),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.DeliverySchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.SubscriptionProvisioningStateSucceeded),
// },
// }},
// }
}
type NamespaceTopicEventSubscriptionsClientBeginCreateOrUpdateOptions ¶
type NamespaceTopicEventSubscriptionsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespaceTopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.BeginCreateOrUpdate method.
type NamespaceTopicEventSubscriptionsClientBeginDeleteOptions ¶
type NamespaceTopicEventSubscriptionsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespaceTopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.BeginDelete method.
type NamespaceTopicEventSubscriptionsClientBeginUpdateOptions ¶
type NamespaceTopicEventSubscriptionsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespaceTopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.BeginUpdate method.
type NamespaceTopicEventSubscriptionsClientCreateOrUpdateResponse ¶
type NamespaceTopicEventSubscriptionsClientCreateOrUpdateResponse struct {
// Event Subscription.
Subscription
}
NamespaceTopicEventSubscriptionsClientCreateOrUpdateResponse contains the response from method NamespaceTopicEventSubscriptionsClient.BeginCreateOrUpdate.
type NamespaceTopicEventSubscriptionsClientDeleteResponse ¶
type NamespaceTopicEventSubscriptionsClientDeleteResponse struct {
}
NamespaceTopicEventSubscriptionsClientDeleteResponse contains the response from method NamespaceTopicEventSubscriptionsClient.BeginDelete.
type NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesOptions ¶
type NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesOptions struct {
}
NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.GetDeliveryAttributes method.
type NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesResponse ¶
type NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesResponse struct {
// Result of the Get delivery attributes operation.
DeliveryAttributeListResult
}
NamespaceTopicEventSubscriptionsClientGetDeliveryAttributesResponse contains the response from method NamespaceTopicEventSubscriptionsClient.GetDeliveryAttributes.
type NamespaceTopicEventSubscriptionsClientGetFullURLOptions ¶
type NamespaceTopicEventSubscriptionsClientGetFullURLOptions struct {
}
NamespaceTopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.GetFullURL method.
type NamespaceTopicEventSubscriptionsClientGetFullURLResponse ¶
type NamespaceTopicEventSubscriptionsClientGetFullURLResponse struct {
// Full endpoint URL of an event subscription
SubscriptionFullURL
}
NamespaceTopicEventSubscriptionsClientGetFullURLResponse contains the response from method NamespaceTopicEventSubscriptionsClient.GetFullURL.
type NamespaceTopicEventSubscriptionsClientGetOptions ¶
type NamespaceTopicEventSubscriptionsClientGetOptions struct {
}
NamespaceTopicEventSubscriptionsClientGetOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.Get method.
type NamespaceTopicEventSubscriptionsClientGetResponse ¶
type NamespaceTopicEventSubscriptionsClientGetResponse struct {
// Event Subscription.
Subscription
}
NamespaceTopicEventSubscriptionsClientGetResponse contains the response from method NamespaceTopicEventSubscriptionsClient.Get.
type NamespaceTopicEventSubscriptionsClientListByNamespaceTopicOptions ¶
type NamespaceTopicEventSubscriptionsClientListByNamespaceTopicOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
NamespaceTopicEventSubscriptionsClientListByNamespaceTopicOptions contains the optional parameters for the NamespaceTopicEventSubscriptionsClient.NewListByNamespaceTopicPager method.
type NamespaceTopicEventSubscriptionsClientListByNamespaceTopicResponse ¶
type NamespaceTopicEventSubscriptionsClientListByNamespaceTopicResponse struct {
// Result of the List event subscriptions operation.
SubscriptionsListResult
}
NamespaceTopicEventSubscriptionsClientListByNamespaceTopicResponse contains the response from method NamespaceTopicEventSubscriptionsClient.NewListByNamespaceTopicPager.
type NamespaceTopicEventSubscriptionsClientUpdateResponse ¶
type NamespaceTopicEventSubscriptionsClientUpdateResponse struct {
// Event Subscription.
Subscription
}
NamespaceTopicEventSubscriptionsClientUpdateResponse contains the response from method NamespaceTopicEventSubscriptionsClient.BeginUpdate.
type NamespaceTopicProperties ¶
type NamespaceTopicProperties struct {
// Event retention for the namespace topic expressed in days. The property default value is 1 day. Min event retention duration
// value is 1 day and max event retention duration value is 1 day.
EventRetentionInDays *int32
// This determines the format that is expected for incoming events published to the topic.
InputSchema *EventInputSchema
// Publisher type of the namespace topic.
PublisherType *PublisherType
// READ-ONLY; Provisioning state of the namespace topic.
ProvisioningState *NamespaceTopicProvisioningState
}
NamespaceTopicProperties - Properties of the namespace topic.
func (NamespaceTopicProperties) MarshalJSON ¶
func (n NamespaceTopicProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceTopicProperties.
func (*NamespaceTopicProperties) UnmarshalJSON ¶
func (n *NamespaceTopicProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceTopicProperties.
type NamespaceTopicProvisioningState ¶
type NamespaceTopicProvisioningState string
NamespaceTopicProvisioningState - Provisioning state of the namespace topic.
const ( NamespaceTopicProvisioningStateCanceled NamespaceTopicProvisioningState = "Canceled" NamespaceTopicProvisioningStateCreateFailed NamespaceTopicProvisioningState = "CreateFailed" NamespaceTopicProvisioningStateCreating NamespaceTopicProvisioningState = "Creating" NamespaceTopicProvisioningStateDeleteFailed NamespaceTopicProvisioningState = "DeleteFailed" NamespaceTopicProvisioningStateDeleted NamespaceTopicProvisioningState = "Deleted" NamespaceTopicProvisioningStateDeleting NamespaceTopicProvisioningState = "Deleting" NamespaceTopicProvisioningStateFailed NamespaceTopicProvisioningState = "Failed" NamespaceTopicProvisioningStateSucceeded NamespaceTopicProvisioningState = "Succeeded" NamespaceTopicProvisioningStateUpdatedFailed NamespaceTopicProvisioningState = "UpdatedFailed" NamespaceTopicProvisioningStateUpdating NamespaceTopicProvisioningState = "Updating" )
func PossibleNamespaceTopicProvisioningStateValues ¶
func PossibleNamespaceTopicProvisioningStateValues() []NamespaceTopicProvisioningState
PossibleNamespaceTopicProvisioningStateValues returns the possible values for the NamespaceTopicProvisioningState const type.
type NamespaceTopicUpdateParameterProperties ¶
type NamespaceTopicUpdateParameterProperties struct {
// Event retention for the namespace topic expressed in days. The property default value is 1 day. Min event retention duration
// value is 1 day and max event retention duration value is 1 day.
EventRetentionInDays *int32
}
NamespaceTopicUpdateParameterProperties - Information of namespace topic update parameter properties.
func (NamespaceTopicUpdateParameterProperties) MarshalJSON ¶
func (n NamespaceTopicUpdateParameterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceTopicUpdateParameterProperties.
func (*NamespaceTopicUpdateParameterProperties) UnmarshalJSON ¶
func (n *NamespaceTopicUpdateParameterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceTopicUpdateParameterProperties.
type NamespaceTopicUpdateParameters ¶
type NamespaceTopicUpdateParameters struct {
// Properties of the namespace topic resource.
Properties *NamespaceTopicUpdateParameterProperties
}
NamespaceTopicUpdateParameters - Properties of the namespace topic update.
func (NamespaceTopicUpdateParameters) MarshalJSON ¶
func (n NamespaceTopicUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceTopicUpdateParameters.
func (*NamespaceTopicUpdateParameters) UnmarshalJSON ¶
func (n *NamespaceTopicUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceTopicUpdateParameters.
type NamespaceTopicsClient ¶
type NamespaceTopicsClient struct {
// contains filtered or unexported fields
}
NamespaceTopicsClient contains the methods for the NamespaceTopics group. Don't use this type directly, use NewNamespaceTopicsClient() instead.
func NewNamespaceTopicsClient ¶
func NewNamespaceTopicsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NamespaceTopicsClient, error)
NewNamespaceTopicsClient creates a new instance of NamespaceTopicsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*NamespaceTopicsClient) BeginCreateOrUpdate ¶
func (client *NamespaceTopicsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, namespaceTopicInfo NamespaceTopic, options *NamespaceTopicsClientBeginCreateOrUpdateOptions) (*runtime.Poller[NamespaceTopicsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates a new namespace topic with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- namespaceTopicInfo - Namespace topic information.
- options - NamespaceTopicsClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespaceTopicsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopics_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespaceTopicsClient().BeginCreateOrUpdate(ctx, "examplerg", "examplenamespace2", "examplenamespacetopic2", armeventgrid.NamespaceTopic{
Properties: &armeventgrid.NamespaceTopicProperties{
EventRetentionInDays: to.Ptr[int32](1),
InputSchema: to.Ptr(armeventgrid.EventInputSchemaCloudEventSchemaV10),
PublisherType: to.Ptr(armeventgrid.PublisherTypeCustom),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.NamespaceTopic = armeventgrid.NamespaceTopic{
// Name: to.Ptr("examplenamespacetopic2"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic2"),
// Properties: &armeventgrid.NamespaceTopicProperties{
// EventRetentionInDays: to.Ptr[int32](1),
// InputSchema: to.Ptr(armeventgrid.EventInputSchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.NamespaceTopicProvisioningStateSucceeded),
// PublisherType: to.Ptr(armeventgrid.PublisherTypeCustom),
// },
// }
func (*NamespaceTopicsClient) BeginDelete ¶
func (client *NamespaceTopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, options *NamespaceTopicsClientBeginDeleteOptions) (*runtime.Poller[NamespaceTopicsClientDeleteResponse], error)
BeginDelete - Delete existing namespace topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the topic.
- options - NamespaceTopicsClientBeginDeleteOptions contains the optional parameters for the NamespaceTopicsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopics_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespaceTopicsClient().BeginDelete(ctx, "examplerg", "examplenamespace2", "examplenamespacetopic2", 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)
}
func (*NamespaceTopicsClient) BeginRegenerateKey ¶
func (client *NamespaceTopicsClient) BeginRegenerateKey(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, regenerateKeyRequest TopicRegenerateKeyRequest, options *NamespaceTopicsClientBeginRegenerateKeyOptions) (*runtime.Poller[NamespaceTopicsClientRegenerateKeyResponse], error)
BeginRegenerateKey - Regenerate a shared access key for a namespace topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the topic.
- regenerateKeyRequest - Request body to regenerate key.
- options - NamespaceTopicsClientBeginRegenerateKeyOptions contains the optional parameters for the NamespaceTopicsClient.BeginRegenerateKey method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopics_RegenerateKey.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespaceTopicsClient().BeginRegenerateKey(ctx, "examplerg", "examplenamespace2", "examplenamespacetopic2", armeventgrid.TopicRegenerateKeyRequest{
KeyName: to.Ptr("key1"),
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.TopicSharedAccessKeys = armeventgrid.TopicSharedAccessKeys{
// Key1: to.Ptr("testKey1Value"),
// Key2: to.Ptr("testKey2Value"),
// }
func (*NamespaceTopicsClient) BeginUpdate ¶
func (client *NamespaceTopicsClient) BeginUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, namespaceTopicUpdateParameters NamespaceTopicUpdateParameters, options *NamespaceTopicsClientBeginUpdateOptions) (*runtime.Poller[NamespaceTopicsClientUpdateResponse], error)
BeginUpdate - Asynchronously updates a namespace topic with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- namespaceTopicUpdateParameters - Namespace topic update information.
- options - NamespaceTopicsClientBeginUpdateOptions contains the optional parameters for the NamespaceTopicsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopics_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespaceTopicsClient().BeginUpdate(ctx, "examplerg", "exampleNamespaceName1", "exampleNamespaceTopicName1", armeventgrid.NamespaceTopicUpdateParameters{
Properties: &armeventgrid.NamespaceTopicUpdateParameterProperties{
EventRetentionInDays: to.Ptr[int32](1),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.NamespaceTopic = armeventgrid.NamespaceTopic{
// Name: to.Ptr("examplenamespacetopic2"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/topics/exampleNamespaceTopicName1"),
// Properties: &armeventgrid.NamespaceTopicProperties{
// EventRetentionInDays: to.Ptr[int32](1),
// InputSchema: to.Ptr(armeventgrid.EventInputSchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.NamespaceTopicProvisioningStateSucceeded),
// PublisherType: to.Ptr(armeventgrid.PublisherTypeCustom),
// },
// }
func (*NamespaceTopicsClient) Get ¶
func (client *NamespaceTopicsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, options *NamespaceTopicsClientGetOptions) (NamespaceTopicsClientGetResponse, error)
Get - Get properties of a namespace topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the namespace topic.
- options - NamespaceTopicsClientGetOptions contains the optional parameters for the NamespaceTopicsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopics_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewNamespaceTopicsClient().Get(ctx, "examplerg", "examplenamespace2", "examplenamespacetopic2", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.NamespaceTopic = armeventgrid.NamespaceTopic{
// Name: to.Ptr("examplenamespacetopic2"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e41/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic2"),
// Properties: &armeventgrid.NamespaceTopicProperties{
// EventRetentionInDays: to.Ptr[int32](1),
// InputSchema: to.Ptr(armeventgrid.EventInputSchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.NamespaceTopicProvisioningStateSucceeded),
// PublisherType: to.Ptr(armeventgrid.PublisherTypeCustom),
// },
// }
func (*NamespaceTopicsClient) ListSharedAccessKeys ¶
func (client *NamespaceTopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, options *NamespaceTopicsClientListSharedAccessKeysOptions) (NamespaceTopicsClientListSharedAccessKeysResponse, error)
ListSharedAccessKeys - List the two keys used to publish to a namespace topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicName - Name of the topic.
- options - NamespaceTopicsClientListSharedAccessKeysOptions contains the optional parameters for the NamespaceTopicsClient.ListSharedAccessKeys method.
func (*NamespaceTopicsClient) NewListByNamespacePager ¶
func (client *NamespaceTopicsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *NamespaceTopicsClientListByNamespaceOptions) *runtime.Pager[NamespaceTopicsClientListByNamespaceResponse]
NewListByNamespacePager - List all the namespace topics under a namespace.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- options - NamespaceTopicsClientListByNamespaceOptions contains the optional parameters for the NamespaceTopicsClient.NewListByNamespacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopics_ListByNamespace.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewNamespaceTopicsClient().NewListByNamespacePager("examplerg", "examplenamespace2", &armeventgrid.NamespaceTopicsClientListByNamespaceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.NamespaceTopicsListResult = armeventgrid.NamespaceTopicsListResult{
// Value: []*armeventgrid.NamespaceTopic{
// {
// Name: to.Ptr("examplenamespacetopic2"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic2"),
// Properties: &armeventgrid.NamespaceTopicProperties{
// EventRetentionInDays: to.Ptr[int32](1),
// InputSchema: to.Ptr(armeventgrid.EventInputSchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.NamespaceTopicProvisioningStateSucceeded),
// PublisherType: to.Ptr(armeventgrid.PublisherTypeCustom),
// },
// },
// {
// Name: to.Ptr("examplenamespacetopic4"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic4"),
// Properties: &armeventgrid.NamespaceTopicProperties{
// EventRetentionInDays: to.Ptr[int32](1),
// InputSchema: to.Ptr(armeventgrid.EventInputSchemaCloudEventSchemaV10),
// ProvisioningState: to.Ptr(armeventgrid.NamespaceTopicProvisioningStateSucceeded),
// PublisherType: to.Ptr(armeventgrid.PublisherTypeCustom),
// },
// }},
// }
}
type NamespaceTopicsClientBeginCreateOrUpdateOptions ¶
type NamespaceTopicsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespaceTopicsClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespaceTopicsClient.BeginCreateOrUpdate method.
type NamespaceTopicsClientBeginDeleteOptions ¶
type NamespaceTopicsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespaceTopicsClientBeginDeleteOptions contains the optional parameters for the NamespaceTopicsClient.BeginDelete method.
type NamespaceTopicsClientBeginRegenerateKeyOptions ¶
type NamespaceTopicsClientBeginRegenerateKeyOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespaceTopicsClientBeginRegenerateKeyOptions contains the optional parameters for the NamespaceTopicsClient.BeginRegenerateKey method.
type NamespaceTopicsClientBeginUpdateOptions ¶
type NamespaceTopicsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespaceTopicsClientBeginUpdateOptions contains the optional parameters for the NamespaceTopicsClient.BeginUpdate method.
type NamespaceTopicsClientCreateOrUpdateResponse ¶
type NamespaceTopicsClientCreateOrUpdateResponse struct {
// Namespace topic details.
NamespaceTopic
}
NamespaceTopicsClientCreateOrUpdateResponse contains the response from method NamespaceTopicsClient.BeginCreateOrUpdate.
type NamespaceTopicsClientDeleteResponse ¶
type NamespaceTopicsClientDeleteResponse struct {
}
NamespaceTopicsClientDeleteResponse contains the response from method NamespaceTopicsClient.BeginDelete.
type NamespaceTopicsClientGetOptions ¶
type NamespaceTopicsClientGetOptions struct {
}
NamespaceTopicsClientGetOptions contains the optional parameters for the NamespaceTopicsClient.Get method.
type NamespaceTopicsClientGetResponse ¶
type NamespaceTopicsClientGetResponse struct {
// Namespace topic details.
NamespaceTopic
}
NamespaceTopicsClientGetResponse contains the response from method NamespaceTopicsClient.Get.
type NamespaceTopicsClientListByNamespaceOptions ¶
type NamespaceTopicsClientListByNamespaceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
NamespaceTopicsClientListByNamespaceOptions contains the optional parameters for the NamespaceTopicsClient.NewListByNamespacePager method.
type NamespaceTopicsClientListByNamespaceResponse ¶
type NamespaceTopicsClientListByNamespaceResponse struct {
// Result of the List namespace topics operation.
NamespaceTopicsListResult
}
NamespaceTopicsClientListByNamespaceResponse contains the response from method NamespaceTopicsClient.NewListByNamespacePager.
type NamespaceTopicsClientListSharedAccessKeysOptions ¶
type NamespaceTopicsClientListSharedAccessKeysOptions struct {
}
NamespaceTopicsClientListSharedAccessKeysOptions contains the optional parameters for the NamespaceTopicsClient.ListSharedAccessKeys method.
type NamespaceTopicsClientListSharedAccessKeysResponse ¶
type NamespaceTopicsClientListSharedAccessKeysResponse struct {
TopicSharedAccessKeys
}
NamespaceTopicsClientListSharedAccessKeysResponse contains the response from method NamespaceTopicsClient.ListSharedAccessKeys.
type NamespaceTopicsClientRegenerateKeyResponse ¶
type NamespaceTopicsClientRegenerateKeyResponse struct {
TopicSharedAccessKeys
}
NamespaceTopicsClientRegenerateKeyResponse contains the response from method NamespaceTopicsClient.BeginRegenerateKey.
type NamespaceTopicsClientUpdateResponse ¶
type NamespaceTopicsClientUpdateResponse struct {
// Namespace topic details.
NamespaceTopic
}
NamespaceTopicsClientUpdateResponse contains the response from method NamespaceTopicsClient.BeginUpdate.
type NamespaceTopicsListResult ¶
type NamespaceTopicsListResult struct {
// A link for the next page of namespace topics.
NextLink *string
// A collection of namespace topics.
Value []*NamespaceTopic
}
NamespaceTopicsListResult - Result of the List namespace topics operation.
func (NamespaceTopicsListResult) MarshalJSON ¶
func (n NamespaceTopicsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceTopicsListResult.
func (*NamespaceTopicsListResult) UnmarshalJSON ¶
func (n *NamespaceTopicsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceTopicsListResult.
type NamespaceUpdateParameterProperties ¶
type NamespaceUpdateParameterProperties struct {
// This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess
// is enabled.
InboundIPRules []*InboundIPRule
// This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific
// IPs by configuring
PublicNetworkAccess *PublicNetworkAccess
// Topic spaces configuration properties that can be updated.
TopicSpacesConfiguration *UpdateTopicSpacesConfigurationInfo
// Topics configuration properties that can be updated.
TopicsConfiguration *UpdateTopicsConfigurationInfo
}
NamespaceUpdateParameterProperties - Information of namespace update parameter properties.
func (NamespaceUpdateParameterProperties) MarshalJSON ¶
func (n NamespaceUpdateParameterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceUpdateParameterProperties.
func (*NamespaceUpdateParameterProperties) UnmarshalJSON ¶
func (n *NamespaceUpdateParameterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceUpdateParameterProperties.
type NamespaceUpdateParameters ¶
type NamespaceUpdateParameters struct {
// Namespace resource identity information.
Identity *IdentityInfo
// Properties of the namespace resource.
Properties *NamespaceUpdateParameterProperties
// Represents available Sku pricing tiers.
SKU *NamespaceSKU
// Tags of the namespace resource.
Tags map[string]*string
}
NamespaceUpdateParameters - Properties to update namespace.
func (NamespaceUpdateParameters) MarshalJSON ¶
func (n NamespaceUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespaceUpdateParameters.
func (*NamespaceUpdateParameters) UnmarshalJSON ¶
func (n *NamespaceUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespaceUpdateParameters.
type NamespacesClient ¶
type NamespacesClient struct {
// contains filtered or unexported fields
}
NamespacesClient contains the methods for the Namespaces group. Don't use this type directly, use NewNamespacesClient() instead.
func NewNamespacesClient ¶
func NewNamespacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NamespacesClient, error)
NewNamespacesClient creates a new instance of NamespacesClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*NamespacesClient) BeginCreateOrUpdate ¶
func (client *NamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, namespaceInfo Namespace, options *NamespacesClientBeginCreateOrUpdateOptions) (*runtime.Poller[NamespacesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates or updates a new namespace with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- namespaceInfo - Namespace information.
- options - NamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespacesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespacesClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleNamespaceName1", armeventgrid.Namespace{
Location: to.Ptr("westus"),
Tags: map[string]*string{
"tag1": to.Ptr("value11"),
"tag2": to.Ptr("value22"),
},
Properties: &armeventgrid.NamespaceProperties{
TopicSpacesConfiguration: &armeventgrid.TopicSpacesConfiguration{
RouteTopicResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
State: to.Ptr(armeventgrid.TopicSpacesConfigurationStateEnabled),
},
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Namespace = armeventgrid.Namespace{
// Name: to.Ptr("exampleNamespaceName1"),
// Type: to.Ptr("Microsoft.EventGrid/Namespaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1"),
// Location: to.Ptr("westus"),
// Tags: map[string]*string{
// "key1": to.Ptr("value11"),
// "key2": to.Ptr("value22"),
// },
// Properties: &armeventgrid.NamespaceProperties{
// ProvisioningState: to.Ptr(armeventgrid.NamespaceProvisioningStateSucceeded),
// TopicSpacesConfiguration: &armeventgrid.TopicSpacesConfiguration{
// RouteTopicResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
// State: to.Ptr(armeventgrid.TopicSpacesConfigurationStateEnabled),
// },
// },
// }
func (*NamespacesClient) BeginDelete ¶
func (client *NamespacesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientBeginDeleteOptions) (*runtime.Poller[NamespacesClientDeleteResponse], error)
BeginDelete - Delete existing namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- options - NamespacesClientBeginDeleteOptions contains the optional parameters for the NamespacesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespacesClient().BeginDelete(ctx, "examplerg", "exampleNamespaceName1", 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)
}
func (*NamespacesClient) BeginRegenerateKey ¶
func (client *NamespacesClient) BeginRegenerateKey(ctx context.Context, resourceGroupName string, namespaceName string, regenerateKeyRequest NamespaceRegenerateKeyRequest, options *NamespacesClientBeginRegenerateKeyOptions) (*runtime.Poller[NamespacesClientRegenerateKeyResponse], error)
BeginRegenerateKey - Regenerate a shared access key for a namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the Namespace.
- regenerateKeyRequest - Request body to regenerate key.
- options - NamespacesClientBeginRegenerateKeyOptions contains the optional parameters for the NamespacesClient.BeginRegenerateKey method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_RegenerateKey.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespacesClient().BeginRegenerateKey(ctx, "examplerg", "exampleNamespaceName1", armeventgrid.NamespaceRegenerateKeyRequest{
KeyName: to.Ptr("key1"),
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.NamespaceSharedAccessKeys = armeventgrid.NamespaceSharedAccessKeys{
// Key1: to.Ptr("testKey1Value"),
// Key2: to.Ptr("testKey2Value"),
// }
func (*NamespacesClient) BeginUpdate ¶
func (client *NamespacesClient) BeginUpdate(ctx context.Context, resourceGroupName string, namespaceName string, namespaceUpdateParameters NamespaceUpdateParameters, options *NamespacesClientBeginUpdateOptions) (*runtime.Poller[NamespacesClientUpdateResponse], error)
BeginUpdate - Asynchronously updates a namespace with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- namespaceUpdateParameters - Namespace update information.
- options - NamespacesClientBeginUpdateOptions contains the optional parameters for the NamespacesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespacesClient().BeginUpdate(ctx, "examplerg", "exampleNamespaceName1", armeventgrid.NamespaceUpdateParameters{
Tags: map[string]*string{
"tag1": to.Ptr("value1Updated"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Namespace = armeventgrid.Namespace{
// Name: to.Ptr("exampleNamespaceName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1"),
// Location: to.Ptr("westus"),
// Properties: &armeventgrid.NamespaceProperties{
// ProvisioningState: to.Ptr(armeventgrid.NamespaceProvisioningStateSucceeded),
// TopicSpacesConfiguration: &armeventgrid.TopicSpacesConfiguration{
// Hostname: to.Ptr("exampleNamespaceName1.westus-1.mqtt.eventgrid-int.azure.net"),
// RouteTopicResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
// State: to.Ptr(armeventgrid.TopicSpacesConfigurationStateEnabled),
// },
// },
// }
func (*NamespacesClient) BeginValidateCustomDomainOwnership ¶
func (client *NamespacesClient) BeginValidateCustomDomainOwnership(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientBeginValidateCustomDomainOwnershipOptions) (*runtime.Poller[NamespacesClientValidateCustomDomainOwnershipResponse], error)
BeginValidateCustomDomainOwnership - Performs ownership validation via checking TXT records for all custom domains in a namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the Namespace.
- options - NamespacesClientBeginValidateCustomDomainOwnershipOptions contains the optional parameters for the NamespacesClient.BeginValidateCustomDomainOwnership method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_ValidateCustomDomainOwnership.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNamespacesClient().BeginValidateCustomDomainOwnership(ctx, "examplerg", "exampleNamespaceName1", 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CustomDomainOwnershipValidationResult = armeventgrid.CustomDomainOwnershipValidationResult{
// CustomDomainsForTopicSpacesConfiguration: []*armeventgrid.CustomDomainConfiguration{
// {
// CertificateURL: to.Ptr("string"),
// ExpectedTxtRecordName: to.Ptr("txt-record-name-2"),
// ExpectedTxtRecordValue: to.Ptr("txt-record-value-2"),
// FullyQualifiedDomainName: to.Ptr("custom-domain-name-2"),
// Identity: &armeventgrid.CustomDomainIdentity{
// Type: to.Ptr(armeventgrid.CustomDomainIdentityTypeSystemAssigned),
// },
// ValidationState: to.Ptr(armeventgrid.CustomDomainValidationStatePending),
// }},
// CustomDomainsForTopicsConfiguration: []*armeventgrid.CustomDomainConfiguration{
// {
// CertificateURL: to.Ptr("string"),
// ExpectedTxtRecordName: to.Ptr("txt-record-name-1"),
// ExpectedTxtRecordValue: to.Ptr("txt-record-value-1"),
// FullyQualifiedDomainName: to.Ptr("custom-domain-name-1"),
// Identity: &armeventgrid.CustomDomainIdentity{
// Type: to.Ptr(armeventgrid.CustomDomainIdentityTypeSystemAssigned),
// },
// ValidationState: to.Ptr(armeventgrid.CustomDomainValidationStatePending),
// }},
// }
func (*NamespacesClient) Get ¶
func (client *NamespacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientGetOptions) (NamespacesClientGetResponse, error)
Get - Get properties of a namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- options - NamespacesClientGetOptions contains the optional parameters for the NamespacesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewNamespacesClient().Get(ctx, "examplerg", "exampleNamespaceName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Namespace = armeventgrid.Namespace{
// Name: to.Ptr("exampleNamespaceName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1"),
// Location: to.Ptr("West US"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// "key3": to.Ptr("value3"),
// },
// Properties: &armeventgrid.NamespaceProperties{
// ProvisioningState: to.Ptr(armeventgrid.NamespaceProvisioningStateSucceeded),
// TopicSpacesConfiguration: &armeventgrid.TopicSpacesConfiguration{
// Hostname: to.Ptr("exampleNamespaceName1.westus-1.mqtt.eventgrid-int.azure.net"),
// RouteTopicResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
// State: to.Ptr(armeventgrid.TopicSpacesConfigurationStateEnabled),
// },
// },
// }
func (*NamespacesClient) ListSharedAccessKeys ¶
func (client *NamespacesClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientListSharedAccessKeysOptions) (NamespacesClientListSharedAccessKeysResponse, error)
ListSharedAccessKeys - List the two keys used to publish to a namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- options - NamespacesClientListSharedAccessKeysOptions contains the optional parameters for the NamespacesClient.ListSharedAccessKeys method.
func (*NamespacesClient) NewListByResourceGroupPager ¶
func (client *NamespacesClient) NewListByResourceGroupPager(resourceGroupName string, options *NamespacesClientListByResourceGroupOptions) *runtime.Pager[NamespacesClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the namespaces under a resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - NamespacesClientListByResourceGroupOptions contains the optional parameters for the NamespacesClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_ListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewNamespacesClient().NewListByResourceGroupPager("examplerg", &armeventgrid.NamespacesClientListByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.NamespacesListResult = armeventgrid.NamespacesListResult{
// Value: []*armeventgrid.Namespace{
// {
// Name: to.Ptr("exampleNamespaceName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1"),
// Location: to.Ptr("West US"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// "key3": to.Ptr("value3"),
// },
// Properties: &armeventgrid.NamespaceProperties{
// ProvisioningState: to.Ptr(armeventgrid.NamespaceProvisioningStateSucceeded),
// TopicSpacesConfiguration: &armeventgrid.TopicSpacesConfiguration{
// Hostname: to.Ptr("exampleNamespaceName1.westus-1.mqtt.eventgrid-int.azure.net"),
// RouteTopicResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
// State: to.Ptr(armeventgrid.TopicSpacesConfigurationStateEnabled),
// },
// },
// }},
// }
}
func (*NamespacesClient) NewListBySubscriptionPager ¶
func (client *NamespacesClient) NewListBySubscriptionPager(options *NamespacesClientListBySubscriptionOptions) *runtime.Pager[NamespacesClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all the namespaces under an Azure subscription.
Generated from API version 2024-06-01-preview
- options - NamespacesClientListBySubscriptionOptions contains the optional parameters for the NamespacesClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_ListBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewNamespacesClient().NewListBySubscriptionPager(&armeventgrid.NamespacesClientListBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.NamespacesListResult = armeventgrid.NamespacesListResult{
// Value: []*armeventgrid.Namespace{
// {
// Name: to.Ptr("exampleNamespaceName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1"),
// Location: to.Ptr("West US"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// "key3": to.Ptr("value3"),
// },
// Properties: &armeventgrid.NamespaceProperties{
// ProvisioningState: to.Ptr(armeventgrid.NamespaceProvisioningStateSucceeded),
// TopicSpacesConfiguration: &armeventgrid.TopicSpacesConfiguration{
// Hostname: to.Ptr("exampleNamespaceName1.westus-1.mqtt.eventgrid-int.azure.net"),
// RouteTopicResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
// State: to.Ptr(armeventgrid.TopicSpacesConfigurationStateEnabled),
// },
// },
// }},
// }
}
type NamespacesClientBeginCreateOrUpdateOptions ¶
type NamespacesClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespacesClient.BeginCreateOrUpdate method.
type NamespacesClientBeginDeleteOptions ¶
type NamespacesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespacesClientBeginDeleteOptions contains the optional parameters for the NamespacesClient.BeginDelete method.
type NamespacesClientBeginRegenerateKeyOptions ¶
type NamespacesClientBeginRegenerateKeyOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespacesClientBeginRegenerateKeyOptions contains the optional parameters for the NamespacesClient.BeginRegenerateKey method.
type NamespacesClientBeginUpdateOptions ¶
type NamespacesClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespacesClientBeginUpdateOptions contains the optional parameters for the NamespacesClient.BeginUpdate method.
type NamespacesClientBeginValidateCustomDomainOwnershipOptions ¶
type NamespacesClientBeginValidateCustomDomainOwnershipOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NamespacesClientBeginValidateCustomDomainOwnershipOptions contains the optional parameters for the NamespacesClient.BeginValidateCustomDomainOwnership method.
type NamespacesClientCreateOrUpdateResponse ¶
type NamespacesClientCreateOrUpdateResponse struct {
// Namespace resource.
Namespace
}
NamespacesClientCreateOrUpdateResponse contains the response from method NamespacesClient.BeginCreateOrUpdate.
type NamespacesClientDeleteResponse ¶
type NamespacesClientDeleteResponse struct {
}
NamespacesClientDeleteResponse contains the response from method NamespacesClient.BeginDelete.
type NamespacesClientGetOptions ¶
type NamespacesClientGetOptions struct {
}
NamespacesClientGetOptions contains the optional parameters for the NamespacesClient.Get method.
type NamespacesClientGetResponse ¶
type NamespacesClientGetResponse struct {
// Namespace resource.
Namespace
}
NamespacesClientGetResponse contains the response from method NamespacesClient.Get.
type NamespacesClientListByResourceGroupOptions ¶
type NamespacesClientListByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
NamespacesClientListByResourceGroupOptions contains the optional parameters for the NamespacesClient.NewListByResourceGroupPager method.
type NamespacesClientListByResourceGroupResponse ¶
type NamespacesClientListByResourceGroupResponse struct {
// Result of the List Namespaces operation.
NamespacesListResult
}
NamespacesClientListByResourceGroupResponse contains the response from method NamespacesClient.NewListByResourceGroupPager.
type NamespacesClientListBySubscriptionOptions ¶
type NamespacesClientListBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
NamespacesClientListBySubscriptionOptions contains the optional parameters for the NamespacesClient.NewListBySubscriptionPager method.
type NamespacesClientListBySubscriptionResponse ¶
type NamespacesClientListBySubscriptionResponse struct {
// Result of the List Namespaces operation.
NamespacesListResult
}
NamespacesClientListBySubscriptionResponse contains the response from method NamespacesClient.NewListBySubscriptionPager.
type NamespacesClientListSharedAccessKeysOptions ¶
type NamespacesClientListSharedAccessKeysOptions struct {
}
NamespacesClientListSharedAccessKeysOptions contains the optional parameters for the NamespacesClient.ListSharedAccessKeys method.
type NamespacesClientListSharedAccessKeysResponse ¶
type NamespacesClientListSharedAccessKeysResponse struct {
NamespaceSharedAccessKeys
}
NamespacesClientListSharedAccessKeysResponse contains the response from method NamespacesClient.ListSharedAccessKeys.
type NamespacesClientRegenerateKeyResponse ¶
type NamespacesClientRegenerateKeyResponse struct {
NamespaceSharedAccessKeys
}
NamespacesClientRegenerateKeyResponse contains the response from method NamespacesClient.BeginRegenerateKey.
type NamespacesClientUpdateResponse ¶
type NamespacesClientUpdateResponse struct {
// Namespace resource.
Namespace
}
NamespacesClientUpdateResponse contains the response from method NamespacesClient.BeginUpdate.
type NamespacesClientValidateCustomDomainOwnershipResponse ¶
type NamespacesClientValidateCustomDomainOwnershipResponse struct {
// Namespace custom domain ownership validation result.
CustomDomainOwnershipValidationResult
}
NamespacesClientValidateCustomDomainOwnershipResponse contains the response from method NamespacesClient.BeginValidateCustomDomainOwnership.
type NamespacesListResult ¶
type NamespacesListResult struct {
// A link for the next page of namespaces.
NextLink *string
// A collection of namespaces.
Value []*Namespace
}
NamespacesListResult - Result of the List Namespaces operation.
func (NamespacesListResult) MarshalJSON ¶
func (n NamespacesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NamespacesListResult.
func (*NamespacesListResult) UnmarshalJSON ¶
func (n *NamespacesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NamespacesListResult.
type NetworkSecurityPerimeterAssociationAccessMode ¶
type NetworkSecurityPerimeterAssociationAccessMode string
NetworkSecurityPerimeterAssociationAccessMode - Network security perimeter access mode.
const ( NetworkSecurityPerimeterAssociationAccessModeAudit NetworkSecurityPerimeterAssociationAccessMode = "Audit" NetworkSecurityPerimeterAssociationAccessModeEnforced NetworkSecurityPerimeterAssociationAccessMode = "Enforced" NetworkSecurityPerimeterAssociationAccessModeLearning NetworkSecurityPerimeterAssociationAccessMode = "Learning" )
func PossibleNetworkSecurityPerimeterAssociationAccessModeValues ¶
func PossibleNetworkSecurityPerimeterAssociationAccessModeValues() []NetworkSecurityPerimeterAssociationAccessMode
PossibleNetworkSecurityPerimeterAssociationAccessModeValues returns the possible values for the NetworkSecurityPerimeterAssociationAccessMode const type.
type NetworkSecurityPerimeterConfigProvisioningState ¶
type NetworkSecurityPerimeterConfigProvisioningState string
NetworkSecurityPerimeterConfigProvisioningState - Provisioning state to reflect configuration state and indicate status of nsp profile configuration retrieval.
const ( NetworkSecurityPerimeterConfigProvisioningStateAccepted NetworkSecurityPerimeterConfigProvisioningState = "Accepted" NetworkSecurityPerimeterConfigProvisioningStateCanceled NetworkSecurityPerimeterConfigProvisioningState = "Canceled" NetworkSecurityPerimeterConfigProvisioningStateCreating NetworkSecurityPerimeterConfigProvisioningState = "Creating" NetworkSecurityPerimeterConfigProvisioningStateDeleted NetworkSecurityPerimeterConfigProvisioningState = "Deleted" NetworkSecurityPerimeterConfigProvisioningStateDeleting NetworkSecurityPerimeterConfigProvisioningState = "Deleting" NetworkSecurityPerimeterConfigProvisioningStateFailed NetworkSecurityPerimeterConfigProvisioningState = "Failed" NetworkSecurityPerimeterConfigProvisioningStateSucceeded NetworkSecurityPerimeterConfigProvisioningState = "Succeeded" NetworkSecurityPerimeterConfigProvisioningStateUpdating NetworkSecurityPerimeterConfigProvisioningState = "Updating" )
func PossibleNetworkSecurityPerimeterConfigProvisioningStateValues ¶
func PossibleNetworkSecurityPerimeterConfigProvisioningStateValues() []NetworkSecurityPerimeterConfigProvisioningState
PossibleNetworkSecurityPerimeterConfigProvisioningStateValues returns the possible values for the NetworkSecurityPerimeterConfigProvisioningState const type.
type NetworkSecurityPerimeterConfiguration ¶
type NetworkSecurityPerimeterConfiguration struct {
// Properties of the network security perimeter configuration.
Properties *NetworkSecurityPerimeterConfigurationProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; Type of the resource.
Type *string
}
NetworkSecurityPerimeterConfiguration - Network security perimeter configuration.
func (NetworkSecurityPerimeterConfiguration) MarshalJSON ¶
func (n NetworkSecurityPerimeterConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfiguration.
func (*NetworkSecurityPerimeterConfiguration) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfiguration.
type NetworkSecurityPerimeterConfigurationIssueSeverity ¶
type NetworkSecurityPerimeterConfigurationIssueSeverity string
NetworkSecurityPerimeterConfigurationIssueSeverity - Provisioning issue severity.
const ( NetworkSecurityPerimeterConfigurationIssueSeverityError NetworkSecurityPerimeterConfigurationIssueSeverity = "Error" NetworkSecurityPerimeterConfigurationIssueSeverityWarning NetworkSecurityPerimeterConfigurationIssueSeverity = "Warning" )
func PossibleNetworkSecurityPerimeterConfigurationIssueSeverityValues ¶
func PossibleNetworkSecurityPerimeterConfigurationIssueSeverityValues() []NetworkSecurityPerimeterConfigurationIssueSeverity
PossibleNetworkSecurityPerimeterConfigurationIssueSeverityValues returns the possible values for the NetworkSecurityPerimeterConfigurationIssueSeverity const type.
type NetworkSecurityPerimeterConfigurationIssueType ¶
type NetworkSecurityPerimeterConfigurationIssueType string
NetworkSecurityPerimeterConfigurationIssueType - Provisioning issue type.
const ( NetworkSecurityPerimeterConfigurationIssueTypeConfigurationPropagationFailure NetworkSecurityPerimeterConfigurationIssueType = "ConfigurationPropagationFailure" NetworkSecurityPerimeterConfigurationIssueTypeMissingIdentityConfiguration NetworkSecurityPerimeterConfigurationIssueType = "MissingIdentityConfiguration" NetworkSecurityPerimeterConfigurationIssueTypeMissingPerimeterConfiguration NetworkSecurityPerimeterConfigurationIssueType = "MissingPerimeterConfiguration" NetworkSecurityPerimeterConfigurationIssueTypeOther NetworkSecurityPerimeterConfigurationIssueType = "Other" )
func PossibleNetworkSecurityPerimeterConfigurationIssueTypeValues ¶
func PossibleNetworkSecurityPerimeterConfigurationIssueTypeValues() []NetworkSecurityPerimeterConfigurationIssueType
PossibleNetworkSecurityPerimeterConfigurationIssueTypeValues returns the possible values for the NetworkSecurityPerimeterConfigurationIssueType const type.
type NetworkSecurityPerimeterConfigurationIssues ¶
type NetworkSecurityPerimeterConfigurationIssues struct {
// Provisioning issue name.
Name *string
// Provisioning issue properties.
Properties *NetworkSecurityPerimeterConfigurationIssuesProperties
}
NetworkSecurityPerimeterConfigurationIssues - Network security perimeter configuration issues.
func (NetworkSecurityPerimeterConfigurationIssues) MarshalJSON ¶
func (n NetworkSecurityPerimeterConfigurationIssues) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfigurationIssues.
func (*NetworkSecurityPerimeterConfigurationIssues) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterConfigurationIssues) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfigurationIssues.
type NetworkSecurityPerimeterConfigurationIssuesProperties ¶
type NetworkSecurityPerimeterConfigurationIssuesProperties struct {
// Provisioning issue description.
Description *string
// Provisioning issue type.
IssueType *NetworkSecurityPerimeterConfigurationIssueType
// Provisioning issue severity.
Severity *NetworkSecurityPerimeterConfigurationIssueSeverity
// Access rules that can be added to the same profile to remediate the issue.
SuggestedAccessRules []*string
// ARM IDs of resources that can be associated to the same perimeter to remediate the issue.
SuggestedResourceIDs []*string
}
NetworkSecurityPerimeterConfigurationIssuesProperties - Network security perimeter configuration issues properties.
func (NetworkSecurityPerimeterConfigurationIssuesProperties) MarshalJSON ¶
func (n NetworkSecurityPerimeterConfigurationIssuesProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfigurationIssuesProperties.
func (*NetworkSecurityPerimeterConfigurationIssuesProperties) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterConfigurationIssuesProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfigurationIssuesProperties.
type NetworkSecurityPerimeterConfigurationList ¶
type NetworkSecurityPerimeterConfigurationList struct {
// A link for the next page of Network Security Perimeter Configuration.
NextLink *string
// List of all network security parameter configurations.
Value []*NetworkSecurityPerimeterConfiguration
}
NetworkSecurityPerimeterConfigurationList - Network security perimeter configuration List.
func (NetworkSecurityPerimeterConfigurationList) MarshalJSON ¶
func (n NetworkSecurityPerimeterConfigurationList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfigurationList.
func (*NetworkSecurityPerimeterConfigurationList) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterConfigurationList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfigurationList.
type NetworkSecurityPerimeterConfigurationProfile ¶
type NetworkSecurityPerimeterConfigurationProfile struct {
// List of inbound or outbound access rule setup on the nsp profile.
AccessRules []*NetworkSecurityPerimeterProfileAccessRule
// Access rules version number for nsp profile.
AccessRulesVersion *string
// Diagnostic settings version number for nsp profile.
DiagnosticSettingsVersion *string
// Enabled log categories for nsp profile.
EnabledLogCategories []*string
// Nsp configuration profile name.
Name *string
}
NetworkSecurityPerimeterConfigurationProfile - Nsp configuration with profile information.
func (NetworkSecurityPerimeterConfigurationProfile) MarshalJSON ¶
func (n NetworkSecurityPerimeterConfigurationProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfigurationProfile.
func (*NetworkSecurityPerimeterConfigurationProfile) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterConfigurationProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfigurationProfile.
type NetworkSecurityPerimeterConfigurationProperties ¶
type NetworkSecurityPerimeterConfigurationProperties struct {
// Perimeter info for nsp association.
NetworkSecurityPerimeter *NetworkSecurityPerimeterInfo
// Nsp profile configuration, access rules and diagnostic settings.
Profile *NetworkSecurityPerimeterConfigurationProfile
// Provisioning issues to reflect status when attempting to retrieve nsp profile configuration.
ProvisioningIssues []*NetworkSecurityPerimeterConfigurationIssues
// Provisioning state to reflect configuration state and indicate status of nsp profile configuration retrieval.
ProvisioningState *NetworkSecurityPerimeterConfigProvisioningState
// Nsp association name and access mode of association.
ResourceAssociation *ResourceAssociation
}
NetworkSecurityPerimeterConfigurationProperties - Network security perimeter configuration information to reflect latest association and nsp profile configuration.
func (NetworkSecurityPerimeterConfigurationProperties) MarshalJSON ¶
func (n NetworkSecurityPerimeterConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfigurationProperties.
func (*NetworkSecurityPerimeterConfigurationProperties) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterConfigurationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfigurationProperties.
type NetworkSecurityPerimeterConfigurationsClient ¶
type NetworkSecurityPerimeterConfigurationsClient struct {
// contains filtered or unexported fields
}
NetworkSecurityPerimeterConfigurationsClient contains the methods for the NetworkSecurityPerimeterConfigurations group. Don't use this type directly, use NewNetworkSecurityPerimeterConfigurationsClient() instead.
func NewNetworkSecurityPerimeterConfigurationsClient ¶
func NewNetworkSecurityPerimeterConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NetworkSecurityPerimeterConfigurationsClient, error)
NewNetworkSecurityPerimeterConfigurationsClient creates a new instance of NetworkSecurityPerimeterConfigurationsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*NetworkSecurityPerimeterConfigurationsClient) BeginReconcile ¶
func (client *NetworkSecurityPerimeterConfigurationsClient) BeginReconcile(ctx context.Context, resourceGroupName string, resourceType NetworkSecurityPerimeterResourceType, resourceName string, perimeterGUID string, associationName string, options *NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions) (*runtime.Poller[NetworkSecurityPerimeterConfigurationsClientReconcileResponse], error)
BeginReconcile - Reconcile a specific network security perimeter configuration for a given network security perimeter association with a topic or domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- resourceType - The type of the resource. This can be either \'topics\' or \'domains\'.
- resourceName - The name of the resource (namely, either, the topic name or domain name).
- perimeterGUID - Unique identifier for perimeter
- associationName - Association name to association network security perimeter resource to profile
- options - NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.BeginReconcile method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NetworkSecurityPerimeterConfigurations_Reconcile.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewNetworkSecurityPerimeterConfigurationsClient().BeginReconcile(ctx, "examplerg", armeventgrid.NetworkSecurityPerimeterResourceTypeTopics, "exampleResourceName", "8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter", "someAssociation", 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.NetworkSecurityPerimeterConfiguration = armeventgrid.NetworkSecurityPerimeterConfiguration{
// Name: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter.someAssociation"),
// Type: to.Ptr("Microsoft.EventGrid/topics/networkSecurityPerimeterConfigurations"),
// ID: to.Ptr("/subscriptions//resourceGroups/paasrg/providers/Microsoft.EventGrid/topics/egtopic/networkSecurityPerimeterConfigurations/8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter.someAssociation"),
// Properties: &armeventgrid.NetworkSecurityPerimeterConfigurationProperties{
// NetworkSecurityPerimeter: &armeventgrid.NetworkSecurityPerimeterInfo{
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/perimeterrg/providers/Microsoft.Network/networkSecurityPerimeters/somePerimeter"),
// Location: to.Ptr("West US"),
// PerimeterGUID: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter"),
// },
// Profile: &armeventgrid.NetworkSecurityPerimeterConfigurationProfile{
// Name: to.Ptr("someProfile"),
// AccessRules: []*armeventgrid.NetworkSecurityPerimeterProfileAccessRule{
// {
// Name: to.Ptr("ipRule"),
// Properties: &armeventgrid.NetworkSecurityPerimeterProfileAccessRuleProperties{
// AddressPrefixes: []*string{
// to.Ptr("148.0.0.0/8")},
// Direction: to.Ptr(armeventgrid.NetworkSecurityPerimeterProfileAccessRuleDirectionInbound),
// },
// }},
// AccessRulesVersion: to.Ptr("1"),
// DiagnosticSettingsVersion: to.Ptr("1"),
// EnabledLogCategories: []*string{
// to.Ptr("NspOutbound")},
// },
// ProvisioningState: to.Ptr(armeventgrid.NetworkSecurityPerimeterConfigProvisioningStateSucceeded),
// ResourceAssociation: &armeventgrid.ResourceAssociation{
// Name: to.Ptr("someAssociation"),
// AccessMode: to.Ptr(armeventgrid.NetworkSecurityPerimeterAssociationAccessModeEnforced),
// },
// },
// }
func (*NetworkSecurityPerimeterConfigurationsClient) Get ¶
func (client *NetworkSecurityPerimeterConfigurationsClient) Get(ctx context.Context, resourceGroupName string, resourceType NetworkSecurityPerimeterResourceType, resourceName string, perimeterGUID string, associationName string, options *NetworkSecurityPerimeterConfigurationsClientGetOptions) (NetworkSecurityPerimeterConfigurationsClientGetResponse, error)
Get - Get a specific network security perimeter configuration with a topic or domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- resourceType - The type of the resource. This can be either \'topics\', or \'domains\'.
- resourceName - The name of the resource (namely, either, the topic name or domain name).
- perimeterGUID - Unique identifier for perimeter
- associationName - Association name to association network security perimeter resource to profile
- options - NetworkSecurityPerimeterConfigurationsClientGetOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NetworkSecurityPerimeterConfigurations_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewNetworkSecurityPerimeterConfigurationsClient().Get(ctx, "examplerg", armeventgrid.NetworkSecurityPerimeterResourceTypeTopics, "exampleResourceName", "8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter", "someAssociation", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.NetworkSecurityPerimeterConfiguration = armeventgrid.NetworkSecurityPerimeterConfiguration{
// Name: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter.someAssociation"),
// Type: to.Ptr("Microsoft.EventGrid/topics/networkSecurityPerimeterConfigurations"),
// ID: to.Ptr("/subscriptions//resourceGroups/paasrg/providers/Microsoft.EventGrid/topics/egtopic/networkSecurityPerimeterConfigurations/8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter.someAssociation"),
// Properties: &armeventgrid.NetworkSecurityPerimeterConfigurationProperties{
// NetworkSecurityPerimeter: &armeventgrid.NetworkSecurityPerimeterInfo{
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/perimeterrg/providers/Microsoft.Network/networkSecurityPerimeters/somePerimeter"),
// Location: to.Ptr("West US"),
// PerimeterGUID: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter"),
// },
// Profile: &armeventgrid.NetworkSecurityPerimeterConfigurationProfile{
// Name: to.Ptr("someProfile"),
// AccessRules: []*armeventgrid.NetworkSecurityPerimeterProfileAccessRule{
// {
// Name: to.Ptr("ipRule"),
// Properties: &armeventgrid.NetworkSecurityPerimeterProfileAccessRuleProperties{
// AddressPrefixes: []*string{
// to.Ptr("148.0.0.0/8")},
// Direction: to.Ptr(armeventgrid.NetworkSecurityPerimeterProfileAccessRuleDirectionInbound),
// },
// }},
// AccessRulesVersion: to.Ptr("1"),
// DiagnosticSettingsVersion: to.Ptr("1"),
// EnabledLogCategories: []*string{
// to.Ptr("NspOutbound")},
// },
// ProvisioningState: to.Ptr(armeventgrid.NetworkSecurityPerimeterConfigProvisioningStateSucceeded),
// ResourceAssociation: &armeventgrid.ResourceAssociation{
// Name: to.Ptr("someAssociation"),
// AccessMode: to.Ptr(armeventgrid.NetworkSecurityPerimeterAssociationAccessModeEnforced),
// },
// },
// }
func (*NetworkSecurityPerimeterConfigurationsClient) NewListPager ¶
func (client *NetworkSecurityPerimeterConfigurationsClient) NewListPager(resourceGroupName string, resourceType NetworkSecurityPerimeterResourceType, resourceName string, options *NetworkSecurityPerimeterConfigurationsClientListOptions) *runtime.Pager[NetworkSecurityPerimeterConfigurationsClientListResponse]
NewListPager - Get all network security perimeter configurations associated with a topic or domain.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- resourceType - The type of the resource. This can be either \'topics\' or \'domains\'.
- resourceName - The name of the resource (namely, either, the topic name or domain name).
- options - NetworkSecurityPerimeterConfigurationsClientListOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NetworkSecurityPerimeterConfigurations_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewNetworkSecurityPerimeterConfigurationsClient().NewListPager("examplerg", armeventgrid.NetworkSecurityPerimeterResourceTypeTopics, "exampleResourceName", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.NetworkSecurityPerimeterConfigurationList = armeventgrid.NetworkSecurityPerimeterConfigurationList{
// Value: []*armeventgrid.NetworkSecurityPerimeterConfiguration{
// {
// Name: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter.someAssociation"),
// Type: to.Ptr("Microsoft.EventGrid/topics/networkSecurityPerimeterConfigurations"),
// ID: to.Ptr("/subscriptions//resourceGroups/paasrg/providers/Microsoft.EventGrid/topics/egtopic/networkSecurityPerimeterConfigurations/8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter.someAssociation"),
// Properties: &armeventgrid.NetworkSecurityPerimeterConfigurationProperties{
// NetworkSecurityPerimeter: &armeventgrid.NetworkSecurityPerimeterInfo{
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/perimeterrg/providers/Microsoft.Network/networkSecurityPerimeters/somePerimeter"),
// Location: to.Ptr("West US"),
// PerimeterGUID: to.Ptr("8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter"),
// },
// Profile: &armeventgrid.NetworkSecurityPerimeterConfigurationProfile{
// Name: to.Ptr("someProfile"),
// AccessRules: []*armeventgrid.NetworkSecurityPerimeterProfileAccessRule{
// {
// Name: to.Ptr("ipRule"),
// Properties: &armeventgrid.NetworkSecurityPerimeterProfileAccessRuleProperties{
// AddressPrefixes: []*string{
// to.Ptr("148.0.0.0/8")},
// Direction: to.Ptr(armeventgrid.NetworkSecurityPerimeterProfileAccessRuleDirectionInbound),
// },
// }},
// AccessRulesVersion: to.Ptr("1"),
// DiagnosticSettingsVersion: to.Ptr("1"),
// EnabledLogCategories: []*string{
// to.Ptr("NspOutbound")},
// },
// ProvisioningState: to.Ptr(armeventgrid.NetworkSecurityPerimeterConfigProvisioningStateSucceeded),
// ResourceAssociation: &armeventgrid.ResourceAssociation{
// Name: to.Ptr("someAssociation"),
// AccessMode: to.Ptr(armeventgrid.NetworkSecurityPerimeterAssociationAccessModeEnforced),
// },
// },
// }},
// }
}
type NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions ¶
type NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.BeginReconcile method.
type NetworkSecurityPerimeterConfigurationsClientGetOptions ¶
type NetworkSecurityPerimeterConfigurationsClientGetOptions struct {
}
NetworkSecurityPerimeterConfigurationsClientGetOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.Get method.
type NetworkSecurityPerimeterConfigurationsClientGetResponse ¶
type NetworkSecurityPerimeterConfigurationsClientGetResponse struct {
// Network security perimeter configuration.
NetworkSecurityPerimeterConfiguration
}
NetworkSecurityPerimeterConfigurationsClientGetResponse contains the response from method NetworkSecurityPerimeterConfigurationsClient.Get.
type NetworkSecurityPerimeterConfigurationsClientListOptions ¶
type NetworkSecurityPerimeterConfigurationsClientListOptions struct {
}
NetworkSecurityPerimeterConfigurationsClientListOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.NewListPager method.
type NetworkSecurityPerimeterConfigurationsClientListResponse ¶
type NetworkSecurityPerimeterConfigurationsClientListResponse struct {
// Network security perimeter configuration List.
NetworkSecurityPerimeterConfigurationList
}
NetworkSecurityPerimeterConfigurationsClientListResponse contains the response from method NetworkSecurityPerimeterConfigurationsClient.NewListPager.
type NetworkSecurityPerimeterConfigurationsClientReconcileResponse ¶
type NetworkSecurityPerimeterConfigurationsClientReconcileResponse struct {
// Network security perimeter configuration.
NetworkSecurityPerimeterConfiguration
}
NetworkSecurityPerimeterConfigurationsClientReconcileResponse contains the response from method NetworkSecurityPerimeterConfigurationsClient.BeginReconcile.
type NetworkSecurityPerimeterInfo ¶
type NetworkSecurityPerimeterInfo struct {
// Arm id for network security perimeter.
ID *string
// Network security perimeter location.
Location *string
// Network security perimeter guid.
PerimeterGUID *string
}
NetworkSecurityPerimeterInfo - Network security perimeter info.
func (NetworkSecurityPerimeterInfo) MarshalJSON ¶
func (n NetworkSecurityPerimeterInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterInfo.
func (*NetworkSecurityPerimeterInfo) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterInfo.
type NetworkSecurityPerimeterProfileAccessRule ¶
type NetworkSecurityPerimeterProfileAccessRule struct {
// Fully Qualified Arm id for network security perimeter profile access rule.
FullyQualifiedArmID *string
// Name for nsp access rule.
Name *string
// NSP access rule properties.
Properties *NetworkSecurityPerimeterProfileAccessRuleProperties
// nsp access rule type.
Type *string
}
NetworkSecurityPerimeterProfileAccessRule - Network security perimeter profile access rule.
func (NetworkSecurityPerimeterProfileAccessRule) MarshalJSON ¶
func (n NetworkSecurityPerimeterProfileAccessRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterProfileAccessRule.
func (*NetworkSecurityPerimeterProfileAccessRule) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterProfileAccessRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterProfileAccessRule.
type NetworkSecurityPerimeterProfileAccessRuleDirection ¶
type NetworkSecurityPerimeterProfileAccessRuleDirection string
NetworkSecurityPerimeterProfileAccessRuleDirection - NSP access rule direction.
const ( NetworkSecurityPerimeterProfileAccessRuleDirectionInbound NetworkSecurityPerimeterProfileAccessRuleDirection = "Inbound" NetworkSecurityPerimeterProfileAccessRuleDirectionOutbound NetworkSecurityPerimeterProfileAccessRuleDirection = "Outbound" )
func PossibleNetworkSecurityPerimeterProfileAccessRuleDirectionValues ¶
func PossibleNetworkSecurityPerimeterProfileAccessRuleDirectionValues() []NetworkSecurityPerimeterProfileAccessRuleDirection
PossibleNetworkSecurityPerimeterProfileAccessRuleDirectionValues returns the possible values for the NetworkSecurityPerimeterProfileAccessRuleDirection const type.
type NetworkSecurityPerimeterProfileAccessRuleProperties ¶
type NetworkSecurityPerimeterProfileAccessRuleProperties struct {
// Address prefixes.
AddressPrefixes []*string
// NSP access rule direction.
Direction *NetworkSecurityPerimeterProfileAccessRuleDirection
// List of email addresses.
EmailAddresses []*string
// Fully qualified domain names.
FullyQualifiedDomainNames []*string
// Network security perimeters.
NetworkSecurityPerimeters []*NetworkSecurityPerimeterInfo
// List of phone numbers.
PhoneNumbers []*string
// List of subscriptions.
Subscriptions []*NetworkSecurityPerimeterSubscription
}
NetworkSecurityPerimeterProfileAccessRuleProperties - Network security perimeter profile access rule properties.
func (NetworkSecurityPerimeterProfileAccessRuleProperties) MarshalJSON ¶
func (n NetworkSecurityPerimeterProfileAccessRuleProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterProfileAccessRuleProperties.
func (*NetworkSecurityPerimeterProfileAccessRuleProperties) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterProfileAccessRuleProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterProfileAccessRuleProperties.
type NetworkSecurityPerimeterResourceType ¶
type NetworkSecurityPerimeterResourceType string
const ( NetworkSecurityPerimeterResourceTypeDomains NetworkSecurityPerimeterResourceType = "domains" NetworkSecurityPerimeterResourceTypeTopics NetworkSecurityPerimeterResourceType = "topics" )
func PossibleNetworkSecurityPerimeterResourceTypeValues ¶
func PossibleNetworkSecurityPerimeterResourceTypeValues() []NetworkSecurityPerimeterResourceType
PossibleNetworkSecurityPerimeterResourceTypeValues returns the possible values for the NetworkSecurityPerimeterResourceType const type.
type NetworkSecurityPerimeterSubscription ¶
type NetworkSecurityPerimeterSubscription struct {
// Subscription id.
ID *string
}
NetworkSecurityPerimeterSubscription - Network security perimeter subscription inbound access rule.
func (NetworkSecurityPerimeterSubscription) MarshalJSON ¶
func (n NetworkSecurityPerimeterSubscription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterSubscription.
func (*NetworkSecurityPerimeterSubscription) UnmarshalJSON ¶
func (n *NetworkSecurityPerimeterSubscription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterSubscription.
type NumberGreaterThanAdvancedFilter ¶
type NumberGreaterThanAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The filter value.
Value *float64
}
NumberGreaterThanAdvancedFilter - NumberGreaterThan Advanced Filter.
func (*NumberGreaterThanAdvancedFilter) GetAdvancedFilter ¶
func (n *NumberGreaterThanAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type NumberGreaterThanAdvancedFilter.
func (NumberGreaterThanAdvancedFilter) MarshalJSON ¶
func (n NumberGreaterThanAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberGreaterThanAdvancedFilter.
func (*NumberGreaterThanAdvancedFilter) UnmarshalJSON ¶
func (n *NumberGreaterThanAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberGreaterThanAdvancedFilter.
type NumberGreaterThanFilter ¶
type NumberGreaterThanFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The filter value.
Value *float64
}
NumberGreaterThanFilter - NumberGreaterThan Filter.
func (*NumberGreaterThanFilter) GetFilter ¶
func (n *NumberGreaterThanFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type NumberGreaterThanFilter.
func (NumberGreaterThanFilter) MarshalJSON ¶
func (n NumberGreaterThanFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberGreaterThanFilter.
func (*NumberGreaterThanFilter) UnmarshalJSON ¶
func (n *NumberGreaterThanFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberGreaterThanFilter.
type NumberGreaterThanOrEqualsAdvancedFilter ¶
type NumberGreaterThanOrEqualsAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The filter value.
Value *float64
}
NumberGreaterThanOrEqualsAdvancedFilter - NumberGreaterThanOrEquals Advanced Filter.
func (*NumberGreaterThanOrEqualsAdvancedFilter) GetAdvancedFilter ¶
func (n *NumberGreaterThanOrEqualsAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type NumberGreaterThanOrEqualsAdvancedFilter.
func (NumberGreaterThanOrEqualsAdvancedFilter) MarshalJSON ¶
func (n NumberGreaterThanOrEqualsAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberGreaterThanOrEqualsAdvancedFilter.
func (*NumberGreaterThanOrEqualsAdvancedFilter) UnmarshalJSON ¶
func (n *NumberGreaterThanOrEqualsAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberGreaterThanOrEqualsAdvancedFilter.
type NumberGreaterThanOrEqualsFilter ¶
type NumberGreaterThanOrEqualsFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The filter value.
Value *float64
}
NumberGreaterThanOrEqualsFilter - NumberGreaterThanOrEquals Filter.
func (*NumberGreaterThanOrEqualsFilter) GetFilter ¶
func (n *NumberGreaterThanOrEqualsFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type NumberGreaterThanOrEqualsFilter.
func (NumberGreaterThanOrEqualsFilter) MarshalJSON ¶
func (n NumberGreaterThanOrEqualsFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberGreaterThanOrEqualsFilter.
func (*NumberGreaterThanOrEqualsFilter) UnmarshalJSON ¶
func (n *NumberGreaterThanOrEqualsFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberGreaterThanOrEqualsFilter.
type NumberInAdvancedFilter ¶
type NumberInAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*float64
}
NumberInAdvancedFilter - NumberIn Advanced Filter.
func (*NumberInAdvancedFilter) GetAdvancedFilter ¶
func (n *NumberInAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type NumberInAdvancedFilter.
func (NumberInAdvancedFilter) MarshalJSON ¶
func (n NumberInAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberInAdvancedFilter.
func (*NumberInAdvancedFilter) UnmarshalJSON ¶
func (n *NumberInAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberInAdvancedFilter.
type NumberInFilter ¶
type NumberInFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*float64
}
NumberInFilter - NumberIn Filter.
func (*NumberInFilter) GetFilter ¶
func (n *NumberInFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type NumberInFilter.
func (NumberInFilter) MarshalJSON ¶
func (n NumberInFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberInFilter.
func (*NumberInFilter) UnmarshalJSON ¶
func (n *NumberInFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberInFilter.
type NumberInRangeAdvancedFilter ¶
type NumberInRangeAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values [][]*float64
}
NumberInRangeAdvancedFilter - NumberInRange Advanced Filter.
func (*NumberInRangeAdvancedFilter) GetAdvancedFilter ¶
func (n *NumberInRangeAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type NumberInRangeAdvancedFilter.
func (NumberInRangeAdvancedFilter) MarshalJSON ¶
func (n NumberInRangeAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberInRangeAdvancedFilter.
func (*NumberInRangeAdvancedFilter) UnmarshalJSON ¶
func (n *NumberInRangeAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberInRangeAdvancedFilter.
type NumberInRangeFilter ¶
type NumberInRangeFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values [][]*float64
}
NumberInRangeFilter - NumberInRange Filter.
func (*NumberInRangeFilter) GetFilter ¶
func (n *NumberInRangeFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type NumberInRangeFilter.
func (NumberInRangeFilter) MarshalJSON ¶
func (n NumberInRangeFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberInRangeFilter.
func (*NumberInRangeFilter) UnmarshalJSON ¶
func (n *NumberInRangeFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberInRangeFilter.
type NumberLessThanAdvancedFilter ¶
type NumberLessThanAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The filter value.
Value *float64
}
NumberLessThanAdvancedFilter - NumberLessThan Advanced Filter.
func (*NumberLessThanAdvancedFilter) GetAdvancedFilter ¶
func (n *NumberLessThanAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type NumberLessThanAdvancedFilter.
func (NumberLessThanAdvancedFilter) MarshalJSON ¶
func (n NumberLessThanAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberLessThanAdvancedFilter.
func (*NumberLessThanAdvancedFilter) UnmarshalJSON ¶
func (n *NumberLessThanAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberLessThanAdvancedFilter.
type NumberLessThanFilter ¶
type NumberLessThanFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The filter value.
Value *float64
}
NumberLessThanFilter - NumberLessThan Filter.
func (*NumberLessThanFilter) GetFilter ¶
func (n *NumberLessThanFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type NumberLessThanFilter.
func (NumberLessThanFilter) MarshalJSON ¶
func (n NumberLessThanFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberLessThanFilter.
func (*NumberLessThanFilter) UnmarshalJSON ¶
func (n *NumberLessThanFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberLessThanFilter.
type NumberLessThanOrEqualsAdvancedFilter ¶
type NumberLessThanOrEqualsAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The filter value.
Value *float64
}
NumberLessThanOrEqualsAdvancedFilter - NumberLessThanOrEquals Advanced Filter.
func (*NumberLessThanOrEqualsAdvancedFilter) GetAdvancedFilter ¶
func (n *NumberLessThanOrEqualsAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type NumberLessThanOrEqualsAdvancedFilter.
func (NumberLessThanOrEqualsAdvancedFilter) MarshalJSON ¶
func (n NumberLessThanOrEqualsAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberLessThanOrEqualsAdvancedFilter.
func (*NumberLessThanOrEqualsAdvancedFilter) UnmarshalJSON ¶
func (n *NumberLessThanOrEqualsAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberLessThanOrEqualsAdvancedFilter.
type NumberLessThanOrEqualsFilter ¶
type NumberLessThanOrEqualsFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The filter value.
Value *float64
}
NumberLessThanOrEqualsFilter - NumberLessThanOrEquals Filter.
func (*NumberLessThanOrEqualsFilter) GetFilter ¶
func (n *NumberLessThanOrEqualsFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type NumberLessThanOrEqualsFilter.
func (NumberLessThanOrEqualsFilter) MarshalJSON ¶
func (n NumberLessThanOrEqualsFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberLessThanOrEqualsFilter.
func (*NumberLessThanOrEqualsFilter) UnmarshalJSON ¶
func (n *NumberLessThanOrEqualsFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberLessThanOrEqualsFilter.
type NumberNotInAdvancedFilter ¶
type NumberNotInAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*float64
}
NumberNotInAdvancedFilter - NumberNotIn Advanced Filter.
func (*NumberNotInAdvancedFilter) GetAdvancedFilter ¶
func (n *NumberNotInAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type NumberNotInAdvancedFilter.
func (NumberNotInAdvancedFilter) MarshalJSON ¶
func (n NumberNotInAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberNotInAdvancedFilter.
func (*NumberNotInAdvancedFilter) UnmarshalJSON ¶
func (n *NumberNotInAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberNotInAdvancedFilter.
type NumberNotInFilter ¶
type NumberNotInFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*float64
}
NumberNotInFilter - NumberNotIn Filter.
func (*NumberNotInFilter) GetFilter ¶
func (n *NumberNotInFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type NumberNotInFilter.
func (NumberNotInFilter) MarshalJSON ¶
func (n NumberNotInFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberNotInFilter.
func (*NumberNotInFilter) UnmarshalJSON ¶
func (n *NumberNotInFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberNotInFilter.
type NumberNotInRangeAdvancedFilter ¶
type NumberNotInRangeAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values [][]*float64
}
NumberNotInRangeAdvancedFilter - NumberNotInRange Advanced Filter.
func (*NumberNotInRangeAdvancedFilter) GetAdvancedFilter ¶
func (n *NumberNotInRangeAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type NumberNotInRangeAdvancedFilter.
func (NumberNotInRangeAdvancedFilter) MarshalJSON ¶
func (n NumberNotInRangeAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberNotInRangeAdvancedFilter.
func (*NumberNotInRangeAdvancedFilter) UnmarshalJSON ¶
func (n *NumberNotInRangeAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberNotInRangeAdvancedFilter.
type NumberNotInRangeFilter ¶
type NumberNotInRangeFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values [][]*float64
}
NumberNotInRangeFilter - NumberNotInRange Filter.
func (*NumberNotInRangeFilter) GetFilter ¶
func (n *NumberNotInRangeFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type NumberNotInRangeFilter.
func (NumberNotInRangeFilter) MarshalJSON ¶
func (n NumberNotInRangeFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NumberNotInRangeFilter.
func (*NumberNotInRangeFilter) UnmarshalJSON ¶
func (n *NumberNotInRangeFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NumberNotInRangeFilter.
type Operation ¶
type Operation struct {
// Display name of the operation.
Display *OperationInfo
// This Boolean is used to determine if the operation is a data plane action or not.
IsDataAction *bool
// Name of the operation.
Name *string
// Origin of the operation.
Origin *string
// Properties of the operation.
Properties any
}
Operation - Represents an operation returned by the GetOperations request.
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationInfo ¶
type OperationInfo struct {
// Description of the operation
Description *string
// Name of the operation
Operation *string
// Name of the provider
Provider *string
// Name of the resource type
Resource *string
}
OperationInfo - Information about an operation
func (OperationInfo) MarshalJSON ¶
func (o OperationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationInfo.
func (*OperationInfo) UnmarshalJSON ¶
func (o *OperationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationInfo.
type 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 ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, 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 ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List the available operations supported by the Microsoft.EventGrid resource provider.
Generated from API version 2024-06-01-preview
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Operations_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.OperationsListResult = armeventgrid.OperationsListResult{
// Value: []*armeventgrid.Operation{
// {
// Name: to.Ptr("Microsoft.EventGrid/register/action"),
// Display: &armeventgrid.OperationInfo{
// Description: to.Ptr("Registers the eventSubscription for the EventGrid resource provider and enables the creation of Event Grid subscriptions."),
// Operation: to.Ptr("Registers the EventGrid Resource Provider"),
// Provider: to.Ptr("Microsoft Event Grid"),
// Resource: to.Ptr("EventGrid Resource Provider"),
// },
// Origin: to.Ptr("UserAndSystem"),
// },
// {
// Name: to.Ptr("Microsoft.EventGrid/eventSubscriptions/write"),
// Display: &armeventgrid.OperationInfo{
// Description: to.Ptr("Create or update a eventSubscription"),
// Operation: to.Ptr("Write EventSubscription"),
// Provider: to.Ptr("Microsoft Event Grid"),
// Resource: to.Ptr("eventSubscriptions"),
// },
// Origin: to.Ptr("UserAndSystem"),
// },
// {
// Name: to.Ptr("Microsoft.EventGrid/eventSubscriptions/read"),
// Display: &armeventgrid.OperationInfo{
// Description: to.Ptr("Read a eventSubscription"),
// Operation: to.Ptr("Read EventSubscription"),
// Provider: to.Ptr("Microsoft Event Grid"),
// Resource: to.Ptr("eventSubscriptions"),
// },
// Origin: to.Ptr("UserAndSystem"),
// },
// {
// Name: to.Ptr("Microsoft.EventGrid/eventSubscriptions/delete"),
// Display: &armeventgrid.OperationInfo{
// Description: to.Ptr("Delete a eventSubscription"),
// Operation: to.Ptr("Delete EventSubscription"),
// Provider: to.Ptr("Microsoft Event Grid"),
// Resource: to.Ptr("eventSubscriptions"),
// },
// Origin: to.Ptr("UserAndSystem"),
// },
// {
// Name: to.Ptr("Microsoft.EventGrid/topics/write"),
// Display: &armeventgrid.OperationInfo{
// Description: to.Ptr("Create or update a topic"),
// Operation: to.Ptr("Write Topic"),
// Provider: to.Ptr("Microsoft Event Grid"),
// Resource: to.Ptr("topics"),
// },
// Origin: to.Ptr("UserAndSystem"),
// },
// {
// Name: to.Ptr("Microsoft.EventGrid/topics/read"),
// Display: &armeventgrid.OperationInfo{
// Description: to.Ptr("Read a topic"),
// Operation: to.Ptr("Read Topic"),
// Provider: to.Ptr("Microsoft Event Grid"),
// Resource: to.Ptr("topics"),
// },
// Origin: to.Ptr("UserAndSystem"),
// },
// {
// Name: to.Ptr("Microsoft.EventGrid/topics/delete"),
// Display: &armeventgrid.OperationInfo{
// Description: to.Ptr("Delete a topic"),
// Operation: to.Ptr("Delete Topic"),
// Provider: to.Ptr("Microsoft Event Grid"),
// Resource: to.Ptr("topics"),
// },
// Origin: to.Ptr("UserAndSystem"),
// }},
// }
}
type OperationsClientListOptions ¶
type OperationsClientListOptions struct {
}
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
// Result of the List Operations operation
OperationsListResult
}
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type OperationsListResult ¶
type OperationsListResult struct {
// A collection of operations
Value []*Operation
}
OperationsListResult - Result of the List Operations operation
func (OperationsListResult) MarshalJSON ¶
func (o OperationsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationsListResult.
func (*OperationsListResult) UnmarshalJSON ¶
func (o *OperationsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationsListResult.
type Partner ¶
type Partner struct {
// Expiration time of the partner authorization. If this timer expires, any request from this partner to create, update or
// delete resources in subscriber's context will fail. If specified, the allowed
// values are between 1 to the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration. If not specified,
// the default value will be the value of defaultMaximumExpirationTimeInDays
// specified in PartnerConfiguration or 7 if this value is not specified.
AuthorizationExpirationTimeInUTC *time.Time
// The partner name.
PartnerName *string
// The immutableId of the corresponding partner registration.
PartnerRegistrationImmutableID *string
}
Partner - Information about the partner.
func (Partner) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Partner.
func (*Partner) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Partner.
type PartnerAuthorization ¶
type PartnerAuthorization struct {
// The list of authorized partners.
AuthorizedPartnersList []*Partner
// Time used to validate the authorization expiration time for each authorized partner. If DefaultMaximumExpirationTimeInDays
// is not specified, the default is 7 days. Otherwise, allowed values are
// between 1 and 365 days.
DefaultMaximumExpirationTimeInDays *int32
}
PartnerAuthorization - The partner authorization details.
func (PartnerAuthorization) MarshalJSON ¶
func (p PartnerAuthorization) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerAuthorization.
func (*PartnerAuthorization) UnmarshalJSON ¶
func (p *PartnerAuthorization) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerAuthorization.
type PartnerClientAuthentication ¶
type PartnerClientAuthentication struct {
// REQUIRED; Type of client authentication
ClientAuthenticationType *PartnerClientAuthenticationType
}
PartnerClientAuthentication - Partner client authentication
func (*PartnerClientAuthentication) GetPartnerClientAuthentication ¶
func (p *PartnerClientAuthentication) GetPartnerClientAuthentication() *PartnerClientAuthentication
GetPartnerClientAuthentication implements the PartnerClientAuthenticationClassification interface for type PartnerClientAuthentication.
func (PartnerClientAuthentication) MarshalJSON ¶
func (p PartnerClientAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerClientAuthentication.
func (*PartnerClientAuthentication) UnmarshalJSON ¶
func (p *PartnerClientAuthentication) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerClientAuthentication.
type PartnerClientAuthenticationClassification ¶
type PartnerClientAuthenticationClassification interface {
// GetPartnerClientAuthentication returns the PartnerClientAuthentication content of the underlying type.
GetPartnerClientAuthentication() *PartnerClientAuthentication
}
PartnerClientAuthenticationClassification provides polymorphic access to related types. Call the interface's GetPartnerClientAuthentication() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureADPartnerClientAuthentication, *PartnerClientAuthentication
type PartnerClientAuthenticationType ¶
type PartnerClientAuthenticationType string
PartnerClientAuthenticationType - Type of client authentication
const (
PartnerClientAuthenticationTypeAzureAD PartnerClientAuthenticationType = "AzureAD"
)
func PossiblePartnerClientAuthenticationTypeValues ¶
func PossiblePartnerClientAuthenticationTypeValues() []PartnerClientAuthenticationType
PossiblePartnerClientAuthenticationTypeValues returns the possible values for the PartnerClientAuthenticationType const type.
type PartnerConfiguration ¶
type PartnerConfiguration struct {
// Location of the resource.
Location *string
// Properties of the partner configuration.
Properties *PartnerConfigurationProperties
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to partner configuration resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
PartnerConfiguration - Partner configuration information
func (PartnerConfiguration) MarshalJSON ¶
func (p PartnerConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerConfiguration.
func (*PartnerConfiguration) UnmarshalJSON ¶
func (p *PartnerConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerConfiguration.
type PartnerConfigurationProperties ¶
type PartnerConfigurationProperties struct {
// The details of authorized partners.
PartnerAuthorization *PartnerAuthorization
// Provisioning state of the partner configuration.
ProvisioningState *PartnerConfigurationProvisioningState
}
PartnerConfigurationProperties - Properties of the partner configuration.
func (PartnerConfigurationProperties) MarshalJSON ¶
func (p PartnerConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerConfigurationProperties.
func (*PartnerConfigurationProperties) UnmarshalJSON ¶
func (p *PartnerConfigurationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerConfigurationProperties.
type PartnerConfigurationProvisioningState ¶
type PartnerConfigurationProvisioningState string
PartnerConfigurationProvisioningState - Provisioning state of the partner configuration.
const ( PartnerConfigurationProvisioningStateCanceled PartnerConfigurationProvisioningState = "Canceled" PartnerConfigurationProvisioningStateCreating PartnerConfigurationProvisioningState = "Creating" PartnerConfigurationProvisioningStateDeleting PartnerConfigurationProvisioningState = "Deleting" PartnerConfigurationProvisioningStateFailed PartnerConfigurationProvisioningState = "Failed" PartnerConfigurationProvisioningStateSucceeded PartnerConfigurationProvisioningState = "Succeeded" PartnerConfigurationProvisioningStateUpdating PartnerConfigurationProvisioningState = "Updating" )
func PossiblePartnerConfigurationProvisioningStateValues ¶
func PossiblePartnerConfigurationProvisioningStateValues() []PartnerConfigurationProvisioningState
PossiblePartnerConfigurationProvisioningStateValues returns the possible values for the PartnerConfigurationProvisioningState const type.
type PartnerConfigurationUpdateParameterProperties ¶
type PartnerConfigurationUpdateParameterProperties struct {
// The default time used to validate the maximum expiration time for each authorized partners in days. Allowed values ar between
// 1 and 365 days.
DefaultMaximumExpirationTimeInDays *int32
}
PartnerConfigurationUpdateParameterProperties - Information of partner configuration update parameter properties.
func (PartnerConfigurationUpdateParameterProperties) MarshalJSON ¶
func (p PartnerConfigurationUpdateParameterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerConfigurationUpdateParameterProperties.
func (*PartnerConfigurationUpdateParameterProperties) UnmarshalJSON ¶
func (p *PartnerConfigurationUpdateParameterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerConfigurationUpdateParameterProperties.
type PartnerConfigurationUpdateParameters ¶
type PartnerConfigurationUpdateParameters struct {
// Properties of the Topic resource.
Properties *PartnerConfigurationUpdateParameterProperties
// Tags of the partner configuration resource.
Tags map[string]*string
}
PartnerConfigurationUpdateParameters - Properties of the partner configuration update.
func (PartnerConfigurationUpdateParameters) MarshalJSON ¶
func (p PartnerConfigurationUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerConfigurationUpdateParameters.
func (*PartnerConfigurationUpdateParameters) UnmarshalJSON ¶
func (p *PartnerConfigurationUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerConfigurationUpdateParameters.
type PartnerConfigurationsClient ¶
type PartnerConfigurationsClient struct {
// contains filtered or unexported fields
}
PartnerConfigurationsClient contains the methods for the PartnerConfigurations group. Don't use this type directly, use NewPartnerConfigurationsClient() instead.
func NewPartnerConfigurationsClient ¶
func NewPartnerConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PartnerConfigurationsClient, error)
NewPartnerConfigurationsClient creates a new instance of PartnerConfigurationsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PartnerConfigurationsClient) AuthorizePartner ¶
func (client *PartnerConfigurationsClient) AuthorizePartner(ctx context.Context, resourceGroupName string, partnerInfo Partner, options *PartnerConfigurationsClientAuthorizePartnerOptions) (PartnerConfigurationsClientAuthorizePartnerResponse, error)
AuthorizePartner - Authorize a single partner either by partner registration immutable Id or by partner name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerInfo - The information of the partner to be authorized.
- options - PartnerConfigurationsClientAuthorizePartnerOptions contains the optional parameters for the PartnerConfigurationsClient.AuthorizePartner method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_AuthorizePartner.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerConfigurationsClient().AuthorizePartner(ctx, "examplerg", armeventgrid.Partner{
AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-28T01:20:55.142Z"); return t }()),
PartnerName: to.Ptr("Contoso.Finance"),
PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerConfiguration = armeventgrid.PartnerConfiguration{
// Name: to.Ptr("default"),
// Type: to.Ptr("Microsoft.EventGrid/partnerConfigurations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerConfigurations/default"),
// Location: to.Ptr("global"),
// Properties: &armeventgrid.PartnerConfigurationProperties{
// PartnerAuthorization: &armeventgrid.PartnerAuthorization{
// AuthorizedPartnersList: []*armeventgrid.Partner{
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-28T01:20:55.142Z"); return t}()),
// PartnerName: to.Ptr("Contoso.Finance"),
// PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
// },
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-20T01:00:00.142Z"); return t}()),
// PartnerName: to.Ptr("fabrikam.HR"),
// PartnerRegistrationImmutableID: to.Ptr("5362bdb6-ce3e-4d0d-9a5b-3eb92c8aab38"),
// }},
// DefaultMaximumExpirationTimeInDays: to.Ptr[int32](10),
// },
// },
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// }
func (*PartnerConfigurationsClient) BeginCreateOrUpdate ¶
func (client *PartnerConfigurationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, partnerConfigurationInfo PartnerConfiguration, options *PartnerConfigurationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PartnerConfigurationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Synchronously creates or updates a partner configuration with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerConfigurationInfo - Partner configuration information.
- options - PartnerConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerConfigurationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerConfigurationsClient().BeginCreateOrUpdate(ctx, "examplerg", armeventgrid.PartnerConfiguration{
Properties: &armeventgrid.PartnerConfigurationProperties{
PartnerAuthorization: &armeventgrid.PartnerAuthorization{
AuthorizedPartnersList: []*armeventgrid.Partner{
{
AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-28T01:20:55.142Z"); return t }()),
PartnerName: to.Ptr("Contoso.Finance"),
PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
},
{
AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-20T01:00:00.142Z"); return t }()),
PartnerName: to.Ptr("fabrikam.HR"),
PartnerRegistrationImmutableID: to.Ptr("5362bdb6-ce3e-4d0d-9a5b-3eb92c8aab38"),
}},
DefaultMaximumExpirationTimeInDays: to.Ptr[int32](10),
},
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerConfiguration = armeventgrid.PartnerConfiguration{
// Name: to.Ptr("default"),
// Type: to.Ptr("Microsoft.EventGrid/partnerConfigurations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerConfigurations/default"),
// Location: to.Ptr("global"),
// Properties: &armeventgrid.PartnerConfigurationProperties{
// PartnerAuthorization: &armeventgrid.PartnerAuthorization{
// AuthorizedPartnersList: []*armeventgrid.Partner{
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-28T01:20:55.142Z"); return t}()),
// PartnerName: to.Ptr("Contoso.Finance"),
// PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
// },
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-20T01:00:00.142Z"); return t}()),
// PartnerName: to.Ptr("fabrikam.HR"),
// PartnerRegistrationImmutableID: to.Ptr("5362bdb6-ce3e-4d0d-9a5b-3eb92c8aab38"),
// }},
// DefaultMaximumExpirationTimeInDays: to.Ptr[int32](10),
// },
// },
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// }
func (*PartnerConfigurationsClient) BeginDelete ¶
func (client *PartnerConfigurationsClient) BeginDelete(ctx context.Context, resourceGroupName string, options *PartnerConfigurationsClientBeginDeleteOptions) (*runtime.Poller[PartnerConfigurationsClientDeleteResponse], error)
BeginDelete - Delete existing partner configuration. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - PartnerConfigurationsClientBeginDeleteOptions contains the optional parameters for the PartnerConfigurationsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerConfigurationsClient().BeginDelete(ctx, "examplerg", 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)
}
func (*PartnerConfigurationsClient) BeginUpdate ¶
func (client *PartnerConfigurationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, partnerConfigurationUpdateParameters PartnerConfigurationUpdateParameters, options *PartnerConfigurationsClientBeginUpdateOptions) (*runtime.Poller[PartnerConfigurationsClientUpdateResponse], error)
BeginUpdate - Synchronously updates a partner configuration with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerConfigurationUpdateParameters - Partner configuration update information.
- options - PartnerConfigurationsClientBeginUpdateOptions contains the optional parameters for the PartnerConfigurationsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerConfigurationsClient().BeginUpdate(ctx, "examplerg", armeventgrid.PartnerConfigurationUpdateParameters{
Properties: &armeventgrid.PartnerConfigurationUpdateParameterProperties{
DefaultMaximumExpirationTimeInDays: to.Ptr[int32](100),
},
Tags: map[string]*string{
"tag1": to.Ptr("value11"),
"tag2": to.Ptr("value22"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerConfiguration = armeventgrid.PartnerConfiguration{
// Name: to.Ptr("default"),
// Type: to.Ptr("Microsoft.EventGrid/partnerConfigurations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerConfigurations/default"),
// Location: to.Ptr("global"),
// Properties: &armeventgrid.PartnerConfigurationProperties{
// PartnerAuthorization: &armeventgrid.PartnerAuthorization{
// AuthorizedPartnersList: []*armeventgrid.Partner{
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-28T01:20:55.142Z"); return t}()),
// PartnerName: to.Ptr("Contoso.Finance"),
// PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
// },
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-20T01:00:00.142Z"); return t}()),
// PartnerName: to.Ptr("fabrikam.HR"),
// PartnerRegistrationImmutableID: to.Ptr("5362bdb6-ce3e-4d0d-9a5b-3eb92c8aab38"),
// }},
// DefaultMaximumExpirationTimeInDays: to.Ptr[int32](100),
// },
// },
// Tags: map[string]*string{
// "tag1": to.Ptr("value11"),
// "tag2": to.Ptr("value22"),
// },
// }
func (*PartnerConfigurationsClient) Get ¶
func (client *PartnerConfigurationsClient) Get(ctx context.Context, resourceGroupName string, options *PartnerConfigurationsClientGetOptions) (PartnerConfigurationsClientGetResponse, error)
Get - Get properties of a partner configuration. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - PartnerConfigurationsClientGetOptions contains the optional parameters for the PartnerConfigurationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerConfigurationsClient().Get(ctx, "examplerg", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerConfiguration = armeventgrid.PartnerConfiguration{
// Name: to.Ptr("default"),
// Type: to.Ptr("Microsoft.EventGrid/partnerConfigurations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerConfigurations/default"),
// Location: to.Ptr("global"),
// Properties: &armeventgrid.PartnerConfigurationProperties{
// PartnerAuthorization: &armeventgrid.PartnerAuthorization{
// AuthorizedPartnersList: []*armeventgrid.Partner{
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-28T01:20:55.142Z"); return t}()),
// PartnerName: to.Ptr("Contoso.Finance"),
// PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
// },
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-20T01:00:00.142Z"); return t}()),
// PartnerName: to.Ptr("fabrikam.HR"),
// PartnerRegistrationImmutableID: to.Ptr("5362bdb6-ce3e-4d0d-9a5b-3eb92c8aab38"),
// }},
// DefaultMaximumExpirationTimeInDays: to.Ptr[int32](10),
// },
// },
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// }
func (*PartnerConfigurationsClient) NewListByResourceGroupPager ¶
func (client *PartnerConfigurationsClient) NewListByResourceGroupPager(resourceGroupName string, options *PartnerConfigurationsClientListByResourceGroupOptions) *runtime.Pager[PartnerConfigurationsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the partner configurations under a resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - PartnerConfigurationsClientListByResourceGroupOptions contains the optional parameters for the PartnerConfigurationsClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_ListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerConfigurationsClient().NewListByResourceGroupPager("examplerg", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerConfigurationsListResult = armeventgrid.PartnerConfigurationsListResult{
// Value: []*armeventgrid.PartnerConfiguration{
// {
// Name: to.Ptr("default"),
// Type: to.Ptr("Microsoft.EventGrid/partnerConfigurations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerConfigurations/default"),
// Location: to.Ptr("global"),
// Properties: &armeventgrid.PartnerConfigurationProperties{
// PartnerAuthorization: &armeventgrid.PartnerAuthorization{
// AuthorizedPartnersList: []*armeventgrid.Partner{
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-28T01:20:55.142Z"); return t}()),
// PartnerName: to.Ptr("Contoso.Finance"),
// PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
// },
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-20T01:00:00.142Z"); return t}()),
// PartnerName: to.Ptr("fabrikam.HR"),
// PartnerRegistrationImmutableID: to.Ptr("5362bdb6-ce3e-4d0d-9a5b-3eb92c8aab38"),
// }},
// DefaultMaximumExpirationTimeInDays: to.Ptr[int32](10),
// },
// },
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// }},
// }
}
func (*PartnerConfigurationsClient) NewListBySubscriptionPager ¶
func (client *PartnerConfigurationsClient) NewListBySubscriptionPager(options *PartnerConfigurationsClientListBySubscriptionOptions) *runtime.Pager[PartnerConfigurationsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all the partner configurations under an Azure subscription.
Generated from API version 2024-06-01-preview
- options - PartnerConfigurationsClientListBySubscriptionOptions contains the optional parameters for the PartnerConfigurationsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_ListBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerConfigurationsClient().NewListBySubscriptionPager(&armeventgrid.PartnerConfigurationsClientListBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerConfigurationsListResult = armeventgrid.PartnerConfigurationsListResult{
// Value: []*armeventgrid.PartnerConfiguration{
// {
// Name: to.Ptr("default"),
// Type: to.Ptr("Microsoft.EventGrid/partnerConfigurations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerConfigurations/default"),
// Location: to.Ptr("global"),
// Properties: &armeventgrid.PartnerConfigurationProperties{
// PartnerAuthorization: &armeventgrid.PartnerAuthorization{
// AuthorizedPartnersList: []*armeventgrid.Partner{
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-28T01:20:55.142Z"); return t}()),
// PartnerName: to.Ptr("Contoso.Finance"),
// PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
// },
// {
// AuthorizationExpirationTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-20T01:00:00.142Z"); return t}()),
// PartnerName: to.Ptr("fabrikam.HR"),
// PartnerRegistrationImmutableID: to.Ptr("5362bdb6-ce3e-4d0d-9a5b-3eb92c8aab38"),
// }},
// DefaultMaximumExpirationTimeInDays: to.Ptr[int32](10),
// },
// },
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// }},
// }
}
func (*PartnerConfigurationsClient) UnauthorizePartner ¶
func (client *PartnerConfigurationsClient) UnauthorizePartner(ctx context.Context, resourceGroupName string, partnerInfo Partner, options *PartnerConfigurationsClientUnauthorizePartnerOptions) (PartnerConfigurationsClientUnauthorizePartnerResponse, error)
UnauthorizePartner - Unauthorize a single partner either by partner registration immutable Id or by partner name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerInfo - The information of the partner to be unauthorized.
- options - PartnerConfigurationsClientUnauthorizePartnerOptions contains the optional parameters for the PartnerConfigurationsClient.UnauthorizePartner method.
type PartnerConfigurationsClientAuthorizePartnerOptions ¶
type PartnerConfigurationsClientAuthorizePartnerOptions struct {
}
PartnerConfigurationsClientAuthorizePartnerOptions contains the optional parameters for the PartnerConfigurationsClient.AuthorizePartner method.
type PartnerConfigurationsClientAuthorizePartnerResponse ¶
type PartnerConfigurationsClientAuthorizePartnerResponse struct {
// Partner configuration information
PartnerConfiguration
}
PartnerConfigurationsClientAuthorizePartnerResponse contains the response from method PartnerConfigurationsClient.AuthorizePartner.
type PartnerConfigurationsClientBeginCreateOrUpdateOptions ¶
type PartnerConfigurationsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerConfigurationsClient.BeginCreateOrUpdate method.
type PartnerConfigurationsClientBeginDeleteOptions ¶
type PartnerConfigurationsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerConfigurationsClientBeginDeleteOptions contains the optional parameters for the PartnerConfigurationsClient.BeginDelete method.
type PartnerConfigurationsClientBeginUpdateOptions ¶
type PartnerConfigurationsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerConfigurationsClientBeginUpdateOptions contains the optional parameters for the PartnerConfigurationsClient.BeginUpdate method.
type PartnerConfigurationsClientCreateOrUpdateResponse ¶
type PartnerConfigurationsClientCreateOrUpdateResponse struct {
// Partner configuration information
PartnerConfiguration
}
PartnerConfigurationsClientCreateOrUpdateResponse contains the response from method PartnerConfigurationsClient.BeginCreateOrUpdate.
type PartnerConfigurationsClientDeleteResponse ¶
type PartnerConfigurationsClientDeleteResponse struct {
}
PartnerConfigurationsClientDeleteResponse contains the response from method PartnerConfigurationsClient.BeginDelete.
type PartnerConfigurationsClientGetOptions ¶
type PartnerConfigurationsClientGetOptions struct {
}
PartnerConfigurationsClientGetOptions contains the optional parameters for the PartnerConfigurationsClient.Get method.
type PartnerConfigurationsClientGetResponse ¶
type PartnerConfigurationsClientGetResponse struct {
// Partner configuration information
PartnerConfiguration
}
PartnerConfigurationsClientGetResponse contains the response from method PartnerConfigurationsClient.Get.
type PartnerConfigurationsClientListByResourceGroupOptions ¶
type PartnerConfigurationsClientListByResourceGroupOptions struct {
}
PartnerConfigurationsClientListByResourceGroupOptions contains the optional parameters for the PartnerConfigurationsClient.NewListByResourceGroupPager method.
type PartnerConfigurationsClientListByResourceGroupResponse ¶
type PartnerConfigurationsClientListByResourceGroupResponse struct {
// Result of the List partner configurations operation
PartnerConfigurationsListResult
}
PartnerConfigurationsClientListByResourceGroupResponse contains the response from method PartnerConfigurationsClient.NewListByResourceGroupPager.
type PartnerConfigurationsClientListBySubscriptionOptions ¶
type PartnerConfigurationsClientListBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerConfigurationsClientListBySubscriptionOptions contains the optional parameters for the PartnerConfigurationsClient.NewListBySubscriptionPager method.
type PartnerConfigurationsClientListBySubscriptionResponse ¶
type PartnerConfigurationsClientListBySubscriptionResponse struct {
// Result of the List partner configurations operation
PartnerConfigurationsListResult
}
PartnerConfigurationsClientListBySubscriptionResponse contains the response from method PartnerConfigurationsClient.NewListBySubscriptionPager.
type PartnerConfigurationsClientUnauthorizePartnerOptions ¶
type PartnerConfigurationsClientUnauthorizePartnerOptions struct {
}
PartnerConfigurationsClientUnauthorizePartnerOptions contains the optional parameters for the PartnerConfigurationsClient.UnauthorizePartner method.
type PartnerConfigurationsClientUnauthorizePartnerResponse ¶
type PartnerConfigurationsClientUnauthorizePartnerResponse struct {
PartnerConfiguration
}
PartnerConfigurationsClientUnauthorizePartnerResponse contains the response from method PartnerConfigurationsClient.UnauthorizePartner.
type PartnerConfigurationsClientUpdateResponse ¶
type PartnerConfigurationsClientUpdateResponse struct {
// Partner configuration information
PartnerConfiguration
}
PartnerConfigurationsClientUpdateResponse contains the response from method PartnerConfigurationsClient.BeginUpdate.
type PartnerConfigurationsListResult ¶
type PartnerConfigurationsListResult struct {
// A link for the next page of partner configurations.
NextLink *string
// A collection of partner configurations.
Value []*PartnerConfiguration
}
PartnerConfigurationsListResult - Result of the List partner configurations operation
func (PartnerConfigurationsListResult) MarshalJSON ¶
func (p PartnerConfigurationsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerConfigurationsListResult.
func (*PartnerConfigurationsListResult) UnmarshalJSON ¶
func (p *PartnerConfigurationsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerConfigurationsListResult.
type PartnerDestination ¶
type PartnerDestination struct {
// REQUIRED; Location of the resource.
Location *string
// Properties of the Partner Destination.
Properties *PartnerDestinationProperties
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Partner Destination resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
PartnerDestination - Event Grid Partner Destination.
func (PartnerDestination) MarshalJSON ¶
func (p PartnerDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerDestination.
func (*PartnerDestination) UnmarshalJSON ¶
func (p *PartnerDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerDestination.
type PartnerDestinationActivationState ¶
type PartnerDestinationActivationState string
PartnerDestinationActivationState - Activation state of the partner destination.
const ( PartnerDestinationActivationStateActivated PartnerDestinationActivationState = "Activated" PartnerDestinationActivationStateNeverActivated PartnerDestinationActivationState = "NeverActivated" )
func PossiblePartnerDestinationActivationStateValues ¶
func PossiblePartnerDestinationActivationStateValues() []PartnerDestinationActivationState
PossiblePartnerDestinationActivationStateValues returns the possible values for the PartnerDestinationActivationState const type.
type PartnerDestinationInfo ¶
type PartnerDestinationInfo struct {
// REQUIRED; Type of the endpoint for the partner destination
EndpointType *PartnerEndpointType
// Azure subscription ID of the subscriber. The partner destination associated with the channel will be created under this
// Azure subscription.
AzureSubscriptionID *string
// Additional context of the partner destination endpoint.
EndpointServiceContext *string
// Name of the partner destination associated with the channel.
Name *string
// Azure Resource Group of the subscriber. The partner destination associated with the channel will be created under this
// resource group.
ResourceGroupName *string
// Change history of the resource move.
ResourceMoveChangeHistory []*ResourceMoveChangeHistory
}
PartnerDestinationInfo - Properties of the corresponding partner destination of a Channel.
func (*PartnerDestinationInfo) GetPartnerDestinationInfo ¶
func (p *PartnerDestinationInfo) GetPartnerDestinationInfo() *PartnerDestinationInfo
GetPartnerDestinationInfo implements the PartnerDestinationInfoClassification interface for type PartnerDestinationInfo.
func (PartnerDestinationInfo) MarshalJSON ¶
func (p PartnerDestinationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerDestinationInfo.
func (*PartnerDestinationInfo) UnmarshalJSON ¶
func (p *PartnerDestinationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerDestinationInfo.
type PartnerDestinationInfoClassification ¶
type PartnerDestinationInfoClassification interface {
// GetPartnerDestinationInfo returns the PartnerDestinationInfo content of the underlying type.
GetPartnerDestinationInfo() *PartnerDestinationInfo
}
PartnerDestinationInfoClassification provides polymorphic access to related types. Call the interface's GetPartnerDestinationInfo() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *PartnerDestinationInfo, *WebhookPartnerDestinationInfo
type PartnerDestinationProperties ¶
type PartnerDestinationProperties struct {
// Activation state of the partner destination.
ActivationState *PartnerDestinationActivationState
// Endpoint Base URL of the partner destination
EndpointBaseURL *string
// Endpoint context associated with this partner destination.
EndpointServiceContext *string
// Expiration time of the partner destination. If this timer expires and the partner destination was never activated, the
// partner destination and corresponding channel are deleted.
ExpirationTimeIfNotActivatedUTC *time.Time
// Context or helpful message that can be used during the approval process.
MessageForActivation *string
// The immutable Id of the corresponding partner registration.
PartnerRegistrationImmutableID *string
// READ-ONLY; Provisioning state of the partner destination.
ProvisioningState *PartnerDestinationProvisioningState
}
PartnerDestinationProperties - Properties of the Partner Destination.
func (PartnerDestinationProperties) MarshalJSON ¶
func (p PartnerDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerDestinationProperties.
func (*PartnerDestinationProperties) UnmarshalJSON ¶
func (p *PartnerDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerDestinationProperties.
type PartnerDestinationProvisioningState ¶
type PartnerDestinationProvisioningState string
PartnerDestinationProvisioningState - Provisioning state of the partner destination.
const ( PartnerDestinationProvisioningStateCanceled PartnerDestinationProvisioningState = "Canceled" PartnerDestinationProvisioningStateCreating PartnerDestinationProvisioningState = "Creating" PartnerDestinationProvisioningStateDeleting PartnerDestinationProvisioningState = "Deleting" PartnerDestinationProvisioningStateFailed PartnerDestinationProvisioningState = "Failed" PartnerDestinationProvisioningStateIdleDueToMirroredChannelResourceDeletion PartnerDestinationProvisioningState = "IdleDueToMirroredChannelResourceDeletion" PartnerDestinationProvisioningStateSucceeded PartnerDestinationProvisioningState = "Succeeded" PartnerDestinationProvisioningStateUpdating PartnerDestinationProvisioningState = "Updating" )
func PossiblePartnerDestinationProvisioningStateValues ¶
func PossiblePartnerDestinationProvisioningStateValues() []PartnerDestinationProvisioningState
PossiblePartnerDestinationProvisioningStateValues returns the possible values for the PartnerDestinationProvisioningState const type.
type PartnerDestinationUpdateParameters ¶
type PartnerDestinationUpdateParameters struct {
// Tags of the Partner Destination resource.
Tags map[string]*string
}
PartnerDestinationUpdateParameters - Properties of the Partner Destination that can be updated.
func (PartnerDestinationUpdateParameters) MarshalJSON ¶
func (p PartnerDestinationUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerDestinationUpdateParameters.
func (*PartnerDestinationUpdateParameters) UnmarshalJSON ¶
func (p *PartnerDestinationUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerDestinationUpdateParameters.
type PartnerDestinationsClient ¶
type PartnerDestinationsClient struct {
// contains filtered or unexported fields
}
PartnerDestinationsClient contains the methods for the PartnerDestinations group. Don't use this type directly, use NewPartnerDestinationsClient() instead.
func NewPartnerDestinationsClient ¶
func NewPartnerDestinationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PartnerDestinationsClient, error)
NewPartnerDestinationsClient creates a new instance of PartnerDestinationsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PartnerDestinationsClient) Activate ¶
func (client *PartnerDestinationsClient) Activate(ctx context.Context, resourceGroupName string, partnerDestinationName string, options *PartnerDestinationsClientActivateOptions) (PartnerDestinationsClientActivateResponse, error)
Activate - Activate a newly created partner destination. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerDestinationName - Name of the partner destination.
- options - PartnerDestinationsClientActivateOptions contains the optional parameters for the PartnerDestinationsClient.Activate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_Activate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerDestinationsClient().Activate(ctx, "examplerg", "examplePartnerDestination1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerDestination = armeventgrid.PartnerDestination{
// Name: to.Ptr("examplePartnerDestinationName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerDestinations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerDestinations/examplePartnerDestinationName1"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.PartnerDestinationProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerDestinationActivationStateActivated),
// EndpointBaseURL: to.Ptr("https://somepartnerhostname"),
// EndpointServiceContext: to.Ptr("ContosoCorp.Accounts.User1"),
// MessageForActivation: to.Ptr("Some message to the approver"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerDestinationProvisioningStateSucceeded),
// },
// }
func (*PartnerDestinationsClient) BeginCreateOrUpdate ¶
func (client *PartnerDestinationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, partnerDestinationName string, partnerDestination PartnerDestination, options *PartnerDestinationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PartnerDestinationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates a new partner destination with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerDestinationName - Name of the partner destination.
- partnerDestination - Partner destination create information.
- options - PartnerDestinationsClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerDestinationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerDestinationsClient().BeginCreateOrUpdate(ctx, "examplerg", "examplePartnerDestinationName1", armeventgrid.PartnerDestination{
Location: to.Ptr("westus2"),
Properties: &armeventgrid.PartnerDestinationProperties{
EndpointBaseURL: to.Ptr("https://www.example/endpoint"),
EndpointServiceContext: to.Ptr("This is an example"),
ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-14T19:33:43.430Z"); return t }()),
MessageForActivation: to.Ptr("Sample Activation message"),
PartnerRegistrationImmutableID: to.Ptr("0bd70ee2-7d95-447e-ab1f-c4f320019404"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerDestination = armeventgrid.PartnerDestination{
// Name: to.Ptr("examplePartnerDestinationName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerDestinations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerDestinations/examplePartnerDestinationName1"),
// Location: to.Ptr("westus2"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.PartnerDestinationProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerDestinationActivationStateNeverActivated),
// EndpointBaseURL: to.Ptr("https://www.example/endpoint"),
// EndpointServiceContext: to.Ptr("string"),
// ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-14T19:33:43.430Z"); return t}()),
// MessageForActivation: to.Ptr("Sample Activation message"),
// PartnerRegistrationImmutableID: to.Ptr("0bd70ee2-7d95-447e-ab1f-c4f320019404"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerDestinationProvisioningStateSucceeded),
// },
// }
func (*PartnerDestinationsClient) BeginDelete ¶
func (client *PartnerDestinationsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerDestinationName string, options *PartnerDestinationsClientBeginDeleteOptions) (*runtime.Poller[PartnerDestinationsClientDeleteResponse], error)
BeginDelete - Delete existing partner destination. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerDestinationName - Name of the partner destination.
- options - PartnerDestinationsClientBeginDeleteOptions contains the optional parameters for the PartnerDestinationsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerDestinationsClient().BeginDelete(ctx, "examplerg", "examplePartnerDestinationName1", 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)
}
func (*PartnerDestinationsClient) BeginUpdate ¶
func (client *PartnerDestinationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, partnerDestinationName string, partnerDestinationUpdateParameters PartnerDestinationUpdateParameters, options *PartnerDestinationsClientBeginUpdateOptions) (*runtime.Poller[PartnerDestinationsClientUpdateResponse], error)
BeginUpdate - Asynchronously updates a partner destination with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerDestinationName - Name of the partner destination.
- partnerDestinationUpdateParameters - Partner destination update information.
- options - PartnerDestinationsClientBeginUpdateOptions contains the optional parameters for the PartnerDestinationsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerDestinationsClient().BeginUpdate(ctx, "examplerg", "examplePartnerDestinationName1", armeventgrid.PartnerDestinationUpdateParameters{
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerDestination = armeventgrid.PartnerDestination{
// Name: to.Ptr("examplePartnerDestinationName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerDestinations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerDestinations/examplePartnerDestinationName1"),
// Location: to.Ptr("centraluseuap"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.PartnerDestinationProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerDestinationActivationStateNeverActivated),
// EndpointBaseURL: to.Ptr("https://somepartnerhostname"),
// EndpointServiceContext: to.Ptr("ContosoCorp.Accounts.User1"),
// ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-10-21T22:50:25.410Z"); return t}()),
// MessageForActivation: to.Ptr("Some message to the approver"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerDestinationProvisioningStateSucceeded),
// },
// }
func (*PartnerDestinationsClient) Get ¶
func (client *PartnerDestinationsClient) Get(ctx context.Context, resourceGroupName string, partnerDestinationName string, options *PartnerDestinationsClientGetOptions) (PartnerDestinationsClientGetResponse, error)
Get - Get properties of a partner destination. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerDestinationName - Name of the partner destination.
- options - PartnerDestinationsClientGetOptions contains the optional parameters for the PartnerDestinationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerDestinationsClient().Get(ctx, "examplerg", "examplePartnerDestinationName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerDestination = armeventgrid.PartnerDestination{
// Name: to.Ptr("examplePartnerDestinationName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerDestinations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerDestinations/examplePartnerDestinationName1"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.PartnerDestinationProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerDestinationActivationStateNeverActivated),
// EndpointBaseURL: to.Ptr("https://somepartnerhostname"),
// EndpointServiceContext: to.Ptr("ContosoCorp.Accounts.User1"),
// ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-10-21T22:50:25.410Z"); return t}()),
// MessageForActivation: to.Ptr("Some message to the approver"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerDestinationProvisioningStateSucceeded),
// },
// }
func (*PartnerDestinationsClient) NewListByResourceGroupPager ¶
func (client *PartnerDestinationsClient) NewListByResourceGroupPager(resourceGroupName string, options *PartnerDestinationsClientListByResourceGroupOptions) *runtime.Pager[PartnerDestinationsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the partner destinations under a resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - PartnerDestinationsClientListByResourceGroupOptions contains the optional parameters for the PartnerDestinationsClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_ListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerDestinationsClient().NewListByResourceGroupPager("examplerg", &armeventgrid.PartnerDestinationsClientListByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerDestinationsListResult = armeventgrid.PartnerDestinationsListResult{
// Value: []*armeventgrid.PartnerDestination{
// {
// Name: to.Ptr("examplePartnerDestinationName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerDestinations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerDestinations/examplePartnerDestinationName1"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.PartnerDestinationProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerDestinationActivationStateNeverActivated),
// EndpointBaseURL: to.Ptr("https://somepartnerhostname"),
// EndpointServiceContext: to.Ptr("ContosoCorp.Accounts.User1"),
// ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-10-21T22:50:25.410Z"); return t}()),
// MessageForActivation: to.Ptr("Some message to the approver"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerDestinationProvisioningStateSucceeded),
// },
// }},
// }
}
func (*PartnerDestinationsClient) NewListBySubscriptionPager ¶
func (client *PartnerDestinationsClient) NewListBySubscriptionPager(options *PartnerDestinationsClientListBySubscriptionOptions) *runtime.Pager[PartnerDestinationsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all the partner destinations under an Azure subscription.
Generated from API version 2024-06-01-preview
- options - PartnerDestinationsClientListBySubscriptionOptions contains the optional parameters for the PartnerDestinationsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_ListBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerDestinationsClient().NewListBySubscriptionPager(&armeventgrid.PartnerDestinationsClientListBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerDestinationsListResult = armeventgrid.PartnerDestinationsListResult{
// Value: []*armeventgrid.PartnerDestination{
// {
// Name: to.Ptr("examplePartnerDestinationName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerDestinations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerDestinations/examplePartnerDestinationName1"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.PartnerDestinationProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerDestinationActivationStateNeverActivated),
// EndpointBaseURL: to.Ptr("https://somepartnerhostname"),
// EndpointServiceContext: to.Ptr("ContosoCorp.Accounts.User1"),
// ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-10-21T22:50:25.410Z"); return t}()),
// MessageForActivation: to.Ptr("Some message to the approver"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerDestinationProvisioningStateSucceeded),
// },
// }},
// }
}
type PartnerDestinationsClientActivateOptions ¶
type PartnerDestinationsClientActivateOptions struct {
}
PartnerDestinationsClientActivateOptions contains the optional parameters for the PartnerDestinationsClient.Activate method.
type PartnerDestinationsClientActivateResponse ¶
type PartnerDestinationsClientActivateResponse struct {
// Event Grid Partner Destination.
PartnerDestination
}
PartnerDestinationsClientActivateResponse contains the response from method PartnerDestinationsClient.Activate.
type PartnerDestinationsClientBeginCreateOrUpdateOptions ¶
type PartnerDestinationsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerDestinationsClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerDestinationsClient.BeginCreateOrUpdate method.
type PartnerDestinationsClientBeginDeleteOptions ¶
type PartnerDestinationsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerDestinationsClientBeginDeleteOptions contains the optional parameters for the PartnerDestinationsClient.BeginDelete method.
type PartnerDestinationsClientBeginUpdateOptions ¶
type PartnerDestinationsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerDestinationsClientBeginUpdateOptions contains the optional parameters for the PartnerDestinationsClient.BeginUpdate method.
type PartnerDestinationsClientCreateOrUpdateResponse ¶
type PartnerDestinationsClientCreateOrUpdateResponse struct {
// Event Grid Partner Destination.
PartnerDestination
}
PartnerDestinationsClientCreateOrUpdateResponse contains the response from method PartnerDestinationsClient.BeginCreateOrUpdate.
type PartnerDestinationsClientDeleteResponse ¶
type PartnerDestinationsClientDeleteResponse struct {
}
PartnerDestinationsClientDeleteResponse contains the response from method PartnerDestinationsClient.BeginDelete.
type PartnerDestinationsClientGetOptions ¶
type PartnerDestinationsClientGetOptions struct {
}
PartnerDestinationsClientGetOptions contains the optional parameters for the PartnerDestinationsClient.Get method.
type PartnerDestinationsClientGetResponse ¶
type PartnerDestinationsClientGetResponse struct {
// Event Grid Partner Destination.
PartnerDestination
}
PartnerDestinationsClientGetResponse contains the response from method PartnerDestinationsClient.Get.
type PartnerDestinationsClientListByResourceGroupOptions ¶
type PartnerDestinationsClientListByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerDestinationsClientListByResourceGroupOptions contains the optional parameters for the PartnerDestinationsClient.NewListByResourceGroupPager method.
type PartnerDestinationsClientListByResourceGroupResponse ¶
type PartnerDestinationsClientListByResourceGroupResponse struct {
// Result of the List Partner Destinations operation.
PartnerDestinationsListResult
}
PartnerDestinationsClientListByResourceGroupResponse contains the response from method PartnerDestinationsClient.NewListByResourceGroupPager.
type PartnerDestinationsClientListBySubscriptionOptions ¶
type PartnerDestinationsClientListBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerDestinationsClientListBySubscriptionOptions contains the optional parameters for the PartnerDestinationsClient.NewListBySubscriptionPager method.
type PartnerDestinationsClientListBySubscriptionResponse ¶
type PartnerDestinationsClientListBySubscriptionResponse struct {
// Result of the List Partner Destinations operation.
PartnerDestinationsListResult
}
PartnerDestinationsClientListBySubscriptionResponse contains the response from method PartnerDestinationsClient.NewListBySubscriptionPager.
type PartnerDestinationsClientUpdateResponse ¶
type PartnerDestinationsClientUpdateResponse struct {
// Event Grid Partner Destination.
PartnerDestination
}
PartnerDestinationsClientUpdateResponse contains the response from method PartnerDestinationsClient.BeginUpdate.
type PartnerDestinationsListResult ¶
type PartnerDestinationsListResult struct {
// A link for the next page of partner destinations.
NextLink *string
// A collection of partner destinations.
Value []*PartnerDestination
}
PartnerDestinationsListResult - Result of the List Partner Destinations operation.
func (PartnerDestinationsListResult) MarshalJSON ¶
func (p PartnerDestinationsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerDestinationsListResult.
func (*PartnerDestinationsListResult) UnmarshalJSON ¶
func (p *PartnerDestinationsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerDestinationsListResult.
type PartnerDetails ¶
type PartnerDetails struct {
// This is short description about the partner. The length of this description should not exceed 256 characters.
Description *string
// Long description for the partner's scenarios and integration.Length of this description should not exceed 2048 characters.
LongDescription *string
// URI of the partner website that can be used by Azure customers to setup Event Grid integration on an event source.
SetupURI *string
}
PartnerDetails - Information about the partner.
func (PartnerDetails) MarshalJSON ¶
func (p PartnerDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerDetails.
func (*PartnerDetails) UnmarshalJSON ¶
func (p *PartnerDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerDetails.
type PartnerEndpointType ¶
type PartnerEndpointType string
PartnerEndpointType - Type of the endpoint for the partner destination
const (
PartnerEndpointTypeWebHook PartnerEndpointType = "WebHook"
)
func PossiblePartnerEndpointTypeValues ¶
func PossiblePartnerEndpointTypeValues() []PartnerEndpointType
PossiblePartnerEndpointTypeValues returns the possible values for the PartnerEndpointType const type.
type PartnerEventSubscriptionDestination ¶
type PartnerEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// Partner Destination Properties of the event subscription destination.
Properties *PartnerEventSubscriptionDestinationProperties
}
func (*PartnerEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (p *PartnerEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type PartnerEventSubscriptionDestination.
func (PartnerEventSubscriptionDestination) MarshalJSON ¶
func (p PartnerEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerEventSubscriptionDestination.
func (*PartnerEventSubscriptionDestination) UnmarshalJSON ¶
func (p *PartnerEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerEventSubscriptionDestination.
type PartnerEventSubscriptionDestinationProperties ¶
type PartnerEventSubscriptionDestinationProperties struct {
// The Azure Resource Id that represents the endpoint of a Partner Destination of an event subscription.
ResourceID *string
}
func (PartnerEventSubscriptionDestinationProperties) MarshalJSON ¶
func (p PartnerEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerEventSubscriptionDestinationProperties.
func (*PartnerEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (p *PartnerEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerEventSubscriptionDestinationProperties.
type PartnerNamespace ¶
type PartnerNamespace struct {
// REQUIRED; Location of the resource.
Location *string
// Properties of the Partner Namespace.
Properties *PartnerNamespaceProperties
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Partner Namespace resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
PartnerNamespace - EventGrid Partner Namespace.
func (PartnerNamespace) MarshalJSON ¶
func (p PartnerNamespace) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerNamespace.
func (*PartnerNamespace) UnmarshalJSON ¶
func (p *PartnerNamespace) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerNamespace.
type PartnerNamespaceProperties ¶
type PartnerNamespaceProperties struct {
// This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD
// token will be used to authenticate if user is allowed to publish to the partner
// namespace.
DisableLocalAuth *bool
// This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess
// is enabled.
InboundIPRules []*InboundIPRule
// Minimum TLS version of the publisher allowed to publish to this partner namespace
MinimumTLSVersionAllowed *TLSVersion
// The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes
// the following format:
// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.
PartnerRegistrationFullyQualifiedID *string
// This determines if events published to this partner namespace should use the source attribute in the event payload or use
// the channel name in the header when matching to the partner topic. If none is
// specified, source attribute routing will be used to match the partner topic.
PartnerTopicRoutingMode *PartnerTopicRoutingMode
// This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific
// IPs by configuring
PublicNetworkAccess *PublicNetworkAccess
// READ-ONLY; Endpoint for the partner namespace.
Endpoint *string
// READ-ONLY; List of private endpoint connections.
PrivateEndpointConnections []*PrivateEndpointConnection
// READ-ONLY; Provisioning state of the partner namespace.
ProvisioningState *PartnerNamespaceProvisioningState
}
PartnerNamespaceProperties - Properties of the partner namespace.
func (PartnerNamespaceProperties) MarshalJSON ¶
func (p PartnerNamespaceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerNamespaceProperties.
func (*PartnerNamespaceProperties) UnmarshalJSON ¶
func (p *PartnerNamespaceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerNamespaceProperties.
type PartnerNamespaceProvisioningState ¶
type PartnerNamespaceProvisioningState string
PartnerNamespaceProvisioningState - Provisioning state of the partner namespace.
const ( PartnerNamespaceProvisioningStateCanceled PartnerNamespaceProvisioningState = "Canceled" PartnerNamespaceProvisioningStateCreating PartnerNamespaceProvisioningState = "Creating" PartnerNamespaceProvisioningStateDeleting PartnerNamespaceProvisioningState = "Deleting" PartnerNamespaceProvisioningStateFailed PartnerNamespaceProvisioningState = "Failed" PartnerNamespaceProvisioningStateSucceeded PartnerNamespaceProvisioningState = "Succeeded" PartnerNamespaceProvisioningStateUpdating PartnerNamespaceProvisioningState = "Updating" )
func PossiblePartnerNamespaceProvisioningStateValues ¶
func PossiblePartnerNamespaceProvisioningStateValues() []PartnerNamespaceProvisioningState
PossiblePartnerNamespaceProvisioningStateValues returns the possible values for the PartnerNamespaceProvisioningState const type.
type PartnerNamespaceRegenerateKeyRequest ¶
type PartnerNamespaceRegenerateKeyRequest struct {
// REQUIRED; Key name to regenerate (key1 or key2).
KeyName *string
}
PartnerNamespaceRegenerateKeyRequest - PartnerNamespace regenerate shared access key request.
func (PartnerNamespaceRegenerateKeyRequest) MarshalJSON ¶
func (p PartnerNamespaceRegenerateKeyRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerNamespaceRegenerateKeyRequest.
func (*PartnerNamespaceRegenerateKeyRequest) UnmarshalJSON ¶
func (p *PartnerNamespaceRegenerateKeyRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerNamespaceRegenerateKeyRequest.
type PartnerNamespaceSharedAccessKeys ¶
PartnerNamespaceSharedAccessKeys - Shared access keys of the partner namespace.
func (PartnerNamespaceSharedAccessKeys) MarshalJSON ¶
func (p PartnerNamespaceSharedAccessKeys) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerNamespaceSharedAccessKeys.
func (*PartnerNamespaceSharedAccessKeys) UnmarshalJSON ¶
func (p *PartnerNamespaceSharedAccessKeys) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerNamespaceSharedAccessKeys.
type PartnerNamespaceUpdateParameterProperties ¶
type PartnerNamespaceUpdateParameterProperties struct {
// This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD
// token will be used to authenticate if user is allowed to publish to the partner
// namespace.
DisableLocalAuth *bool
// This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess
// is enabled.
InboundIPRules []*InboundIPRule
// Minimum TLS version of the publisher allowed to publish to this domain
MinimumTLSVersionAllowed *TLSVersion
// This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific
// IPs by configuring
PublicNetworkAccess *PublicNetworkAccess
}
PartnerNamespaceUpdateParameterProperties - Information of Partner Namespace update parameter properties.
func (PartnerNamespaceUpdateParameterProperties) MarshalJSON ¶
func (p PartnerNamespaceUpdateParameterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerNamespaceUpdateParameterProperties.
func (*PartnerNamespaceUpdateParameterProperties) UnmarshalJSON ¶
func (p *PartnerNamespaceUpdateParameterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerNamespaceUpdateParameterProperties.
type PartnerNamespaceUpdateParameters ¶
type PartnerNamespaceUpdateParameters struct {
// Properties of the Partner Namespace.
Properties *PartnerNamespaceUpdateParameterProperties
// Tags of the Partner Namespace.
Tags map[string]*string
}
PartnerNamespaceUpdateParameters - Properties of the Partner Namespace update.
func (PartnerNamespaceUpdateParameters) MarshalJSON ¶
func (p PartnerNamespaceUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerNamespaceUpdateParameters.
func (*PartnerNamespaceUpdateParameters) UnmarshalJSON ¶
func (p *PartnerNamespaceUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerNamespaceUpdateParameters.
type PartnerNamespacesClient ¶
type PartnerNamespacesClient struct {
// contains filtered or unexported fields
}
PartnerNamespacesClient contains the methods for the PartnerNamespaces group. Don't use this type directly, use NewPartnerNamespacesClient() instead.
func NewPartnerNamespacesClient ¶
func NewPartnerNamespacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PartnerNamespacesClient, error)
NewPartnerNamespacesClient creates a new instance of PartnerNamespacesClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PartnerNamespacesClient) BeginCreateOrUpdate ¶
func (client *PartnerNamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, partnerNamespaceName string, partnerNamespaceInfo PartnerNamespace, options *PartnerNamespacesClientBeginCreateOrUpdateOptions) (*runtime.Poller[PartnerNamespacesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates a new partner namespace with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerNamespaceName - Name of the partner namespace.
- partnerNamespaceInfo - PartnerNamespace information.
- options - PartnerNamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerNamespacesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerNamespacesClient().BeginCreateOrUpdate(ctx, "examplerg", "examplePartnerNamespaceName1", armeventgrid.PartnerNamespace{
Location: to.Ptr("westus"),
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
Properties: &armeventgrid.PartnerNamespaceProperties{
PartnerRegistrationFullyQualifiedID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1"),
},
}, 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)
}
func (*PartnerNamespacesClient) BeginDelete ¶
func (client *PartnerNamespacesClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerNamespaceName string, options *PartnerNamespacesClientBeginDeleteOptions) (*runtime.Poller[PartnerNamespacesClientDeleteResponse], error)
BeginDelete - Delete existing partner namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerNamespaceName - Name of the partner namespace.
- options - PartnerNamespacesClientBeginDeleteOptions contains the optional parameters for the PartnerNamespacesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerNamespacesClient().BeginDelete(ctx, "examplerg", "examplePartnerNamespaceName1", 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)
}
func (*PartnerNamespacesClient) BeginUpdate ¶
func (client *PartnerNamespacesClient) BeginUpdate(ctx context.Context, resourceGroupName string, partnerNamespaceName string, partnerNamespaceUpdateParameters PartnerNamespaceUpdateParameters, options *PartnerNamespacesClientBeginUpdateOptions) (*runtime.Poller[PartnerNamespacesClientUpdateResponse], error)
BeginUpdate - Asynchronously updates a partner namespace with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerNamespaceName - Name of the partner namespace.
- partnerNamespaceUpdateParameters - Partner namespace update information.
- options - PartnerNamespacesClientBeginUpdateOptions contains the optional parameters for the PartnerNamespacesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerNamespacesClient().BeginUpdate(ctx, "examplerg", "examplePartnerNamespaceName1", armeventgrid.PartnerNamespaceUpdateParameters{
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
},
}, 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)
}
func (*PartnerNamespacesClient) Get ¶
func (client *PartnerNamespacesClient) Get(ctx context.Context, resourceGroupName string, partnerNamespaceName string, options *PartnerNamespacesClientGetOptions) (PartnerNamespacesClientGetResponse, error)
Get - Get properties of a partner namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerNamespaceName - Name of the partner namespace.
- options - PartnerNamespacesClientGetOptions contains the optional parameters for the PartnerNamespacesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerNamespacesClient().Get(ctx, "examplerg", "examplePartnerNamespaceName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerNamespace = armeventgrid.PartnerNamespace{
// Name: to.Ptr("examplePartnerNamespaceName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerNamespaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1"),
// Location: to.Ptr("Central US EUAP"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// "key3": to.Ptr("value3"),
// },
// Properties: &armeventgrid.PartnerNamespaceProperties{
// Endpoint: to.Ptr("https://examplePartnerNamespaceName1.centraluseuap-1.eventgrid.azure.net/api/events"),
// PartnerRegistrationFullyQualifiedID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerNamespaceProvisioningStateSucceeded),
// },
// }
func (*PartnerNamespacesClient) ListSharedAccessKeys ¶
func (client *PartnerNamespacesClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, partnerNamespaceName string, options *PartnerNamespacesClientListSharedAccessKeysOptions) (PartnerNamespacesClientListSharedAccessKeysResponse, error)
ListSharedAccessKeys - List the two keys used to publish to a partner namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerNamespaceName - Name of the partner namespace.
- options - PartnerNamespacesClientListSharedAccessKeysOptions contains the optional parameters for the PartnerNamespacesClient.ListSharedAccessKeys method.
func (*PartnerNamespacesClient) NewListByResourceGroupPager ¶
func (client *PartnerNamespacesClient) NewListByResourceGroupPager(resourceGroupName string, options *PartnerNamespacesClientListByResourceGroupOptions) *runtime.Pager[PartnerNamespacesClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the partner namespaces under a resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - PartnerNamespacesClientListByResourceGroupOptions contains the optional parameters for the PartnerNamespacesClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_ListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerNamespacesClient().NewListByResourceGroupPager("examplerg", &armeventgrid.PartnerNamespacesClientListByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerNamespacesListResult = armeventgrid.PartnerNamespacesListResult{
// Value: []*armeventgrid.PartnerNamespace{
// {
// Name: to.Ptr("partnerNamespace123"),
// Type: to.Ptr("Microsoft.EventGrid/partnerNamespaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/partnerNamespace123"),
// Location: to.Ptr("Central US EUAP"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// "key3": to.Ptr("value3"),
// },
// Properties: &armeventgrid.PartnerNamespaceProperties{
// Endpoint: to.Ptr("https://partnernamespace123.centraluseuap-1.eventgrid.azure.net/api/events"),
// PartnerRegistrationFullyQualifiedID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerNamespaceProvisioningStateSucceeded),
// },
// }},
// }
}
func (*PartnerNamespacesClient) NewListBySubscriptionPager ¶
func (client *PartnerNamespacesClient) NewListBySubscriptionPager(options *PartnerNamespacesClientListBySubscriptionOptions) *runtime.Pager[PartnerNamespacesClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all the partner namespaces under an Azure subscription.
Generated from API version 2024-06-01-preview
- options - PartnerNamespacesClientListBySubscriptionOptions contains the optional parameters for the PartnerNamespacesClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_ListBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerNamespacesClient().NewListBySubscriptionPager(&armeventgrid.PartnerNamespacesClientListBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerNamespacesListResult = armeventgrid.PartnerNamespacesListResult{
// Value: []*armeventgrid.PartnerNamespace{
// {
// Name: to.Ptr("partnerNamespace123"),
// Type: to.Ptr("Microsoft.EventGrid/partnerNamespaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/amh/providers/Microsoft.EventGrid/partnerNamespaces/partnerNamespace123"),
// Location: to.Ptr("Central US EUAP"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("value2"),
// "key3": to.Ptr("value3"),
// },
// Properties: &armeventgrid.PartnerNamespaceProperties{
// Endpoint: to.Ptr("https://partnernamespace123.centraluseuap-1.eventgrid.azure.net/api/events"),
// PartnerRegistrationFullyQualifiedID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/amh/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerNamespaceProvisioningStateSucceeded),
// },
// }},
// }
}
func (*PartnerNamespacesClient) RegenerateKey ¶
func (client *PartnerNamespacesClient) RegenerateKey(ctx context.Context, resourceGroupName string, partnerNamespaceName string, regenerateKeyRequest PartnerNamespaceRegenerateKeyRequest, options *PartnerNamespacesClientRegenerateKeyOptions) (PartnerNamespacesClientRegenerateKeyResponse, error)
RegenerateKey - Regenerate a shared access key for a partner namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerNamespaceName - Name of the partner namespace.
- regenerateKeyRequest - Request body to regenerate key.
- options - PartnerNamespacesClientRegenerateKeyOptions contains the optional parameters for the PartnerNamespacesClient.RegenerateKey method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_RegenerateKey.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerNamespacesClient().RegenerateKey(ctx, "examplerg", "examplePartnerNamespaceName1", armeventgrid.PartnerNamespaceRegenerateKeyRequest{
KeyName: to.Ptr("key1"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerNamespaceSharedAccessKeys = armeventgrid.PartnerNamespaceSharedAccessKeys{
// Key1: to.Ptr("testKey1Value"),
// Key2: to.Ptr("testKey2Value"),
// }
type PartnerNamespacesClientBeginCreateOrUpdateOptions ¶
type PartnerNamespacesClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerNamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerNamespacesClient.BeginCreateOrUpdate method.
type PartnerNamespacesClientBeginDeleteOptions ¶
type PartnerNamespacesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerNamespacesClientBeginDeleteOptions contains the optional parameters for the PartnerNamespacesClient.BeginDelete method.
type PartnerNamespacesClientBeginUpdateOptions ¶
type PartnerNamespacesClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerNamespacesClientBeginUpdateOptions contains the optional parameters for the PartnerNamespacesClient.BeginUpdate method.
type PartnerNamespacesClientCreateOrUpdateResponse ¶
type PartnerNamespacesClientCreateOrUpdateResponse struct {
// EventGrid Partner Namespace.
PartnerNamespace
}
PartnerNamespacesClientCreateOrUpdateResponse contains the response from method PartnerNamespacesClient.BeginCreateOrUpdate.
type PartnerNamespacesClientDeleteResponse ¶
type PartnerNamespacesClientDeleteResponse struct {
}
PartnerNamespacesClientDeleteResponse contains the response from method PartnerNamespacesClient.BeginDelete.
type PartnerNamespacesClientGetOptions ¶
type PartnerNamespacesClientGetOptions struct {
}
PartnerNamespacesClientGetOptions contains the optional parameters for the PartnerNamespacesClient.Get method.
type PartnerNamespacesClientGetResponse ¶
type PartnerNamespacesClientGetResponse struct {
// EventGrid Partner Namespace.
PartnerNamespace
}
PartnerNamespacesClientGetResponse contains the response from method PartnerNamespacesClient.Get.
type PartnerNamespacesClientListByResourceGroupOptions ¶
type PartnerNamespacesClientListByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerNamespacesClientListByResourceGroupOptions contains the optional parameters for the PartnerNamespacesClient.NewListByResourceGroupPager method.
type PartnerNamespacesClientListByResourceGroupResponse ¶
type PartnerNamespacesClientListByResourceGroupResponse struct {
// Result of the List Partner Namespaces operation
PartnerNamespacesListResult
}
PartnerNamespacesClientListByResourceGroupResponse contains the response from method PartnerNamespacesClient.NewListByResourceGroupPager.
type PartnerNamespacesClientListBySubscriptionOptions ¶
type PartnerNamespacesClientListBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerNamespacesClientListBySubscriptionOptions contains the optional parameters for the PartnerNamespacesClient.NewListBySubscriptionPager method.
type PartnerNamespacesClientListBySubscriptionResponse ¶
type PartnerNamespacesClientListBySubscriptionResponse struct {
// Result of the List Partner Namespaces operation
PartnerNamespacesListResult
}
PartnerNamespacesClientListBySubscriptionResponse contains the response from method PartnerNamespacesClient.NewListBySubscriptionPager.
type PartnerNamespacesClientListSharedAccessKeysOptions ¶
type PartnerNamespacesClientListSharedAccessKeysOptions struct {
}
PartnerNamespacesClientListSharedAccessKeysOptions contains the optional parameters for the PartnerNamespacesClient.ListSharedAccessKeys method.
type PartnerNamespacesClientListSharedAccessKeysResponse ¶
type PartnerNamespacesClientListSharedAccessKeysResponse struct {
PartnerNamespaceSharedAccessKeys
}
PartnerNamespacesClientListSharedAccessKeysResponse contains the response from method PartnerNamespacesClient.ListSharedAccessKeys.
type PartnerNamespacesClientRegenerateKeyOptions ¶
type PartnerNamespacesClientRegenerateKeyOptions struct {
}
PartnerNamespacesClientRegenerateKeyOptions contains the optional parameters for the PartnerNamespacesClient.RegenerateKey method.
type PartnerNamespacesClientRegenerateKeyResponse ¶
type PartnerNamespacesClientRegenerateKeyResponse struct {
PartnerNamespaceSharedAccessKeys
}
PartnerNamespacesClientRegenerateKeyResponse contains the response from method PartnerNamespacesClient.RegenerateKey.
type PartnerNamespacesClientUpdateResponse ¶
type PartnerNamespacesClientUpdateResponse struct {
// EventGrid Partner Namespace.
PartnerNamespace
}
PartnerNamespacesClientUpdateResponse contains the response from method PartnerNamespacesClient.BeginUpdate.
type PartnerNamespacesListResult ¶
type PartnerNamespacesListResult struct {
// A link for the next page of partner namespaces.
NextLink *string
// A collection of partner namespaces.
Value []*PartnerNamespace
}
PartnerNamespacesListResult - Result of the List Partner Namespaces operation
func (PartnerNamespacesListResult) MarshalJSON ¶
func (p PartnerNamespacesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerNamespacesListResult.
func (*PartnerNamespacesListResult) UnmarshalJSON ¶
func (p *PartnerNamespacesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerNamespacesListResult.
type PartnerRegistration ¶
type PartnerRegistration struct {
// REQUIRED; Location of the resource.
Location *string
// Properties of the partner registration.
Properties *PartnerRegistrationProperties
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Partner Registration resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
PartnerRegistration - Information about a partner registration.
func (PartnerRegistration) MarshalJSON ¶
func (p PartnerRegistration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerRegistration.
func (*PartnerRegistration) UnmarshalJSON ¶
func (p *PartnerRegistration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerRegistration.
type PartnerRegistrationProperties ¶
type PartnerRegistrationProperties struct {
// The immutableId of the corresponding partner registration. Note: This property is marked for deprecation and is not supported
// in any future GA API version
PartnerRegistrationImmutableID *string
// READ-ONLY; Provisioning state of the partner registration.
ProvisioningState *PartnerRegistrationProvisioningState
}
PartnerRegistrationProperties - Properties of the partner registration.
func (PartnerRegistrationProperties) MarshalJSON ¶
func (p PartnerRegistrationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerRegistrationProperties.
func (*PartnerRegistrationProperties) UnmarshalJSON ¶
func (p *PartnerRegistrationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerRegistrationProperties.
type PartnerRegistrationProvisioningState ¶
type PartnerRegistrationProvisioningState string
PartnerRegistrationProvisioningState - Provisioning state of the partner registration.
const ( PartnerRegistrationProvisioningStateCanceled PartnerRegistrationProvisioningState = "Canceled" PartnerRegistrationProvisioningStateCreating PartnerRegistrationProvisioningState = "Creating" PartnerRegistrationProvisioningStateDeleting PartnerRegistrationProvisioningState = "Deleting" PartnerRegistrationProvisioningStateFailed PartnerRegistrationProvisioningState = "Failed" PartnerRegistrationProvisioningStateSucceeded PartnerRegistrationProvisioningState = "Succeeded" PartnerRegistrationProvisioningStateUpdating PartnerRegistrationProvisioningState = "Updating" )
func PossiblePartnerRegistrationProvisioningStateValues ¶
func PossiblePartnerRegistrationProvisioningStateValues() []PartnerRegistrationProvisioningState
PossiblePartnerRegistrationProvisioningStateValues returns the possible values for the PartnerRegistrationProvisioningState const type.
type PartnerRegistrationUpdateParameters ¶
type PartnerRegistrationUpdateParameters struct {
// Tags of the partner registration resource.
Tags map[string]*string
}
PartnerRegistrationUpdateParameters - Properties of the Partner Registration update.
func (PartnerRegistrationUpdateParameters) MarshalJSON ¶
func (p PartnerRegistrationUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerRegistrationUpdateParameters.
func (*PartnerRegistrationUpdateParameters) UnmarshalJSON ¶
func (p *PartnerRegistrationUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerRegistrationUpdateParameters.
type PartnerRegistrationsClient ¶
type PartnerRegistrationsClient struct {
// contains filtered or unexported fields
}
PartnerRegistrationsClient contains the methods for the PartnerRegistrations group. Don't use this type directly, use NewPartnerRegistrationsClient() instead.
func NewPartnerRegistrationsClient ¶
func NewPartnerRegistrationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PartnerRegistrationsClient, error)
NewPartnerRegistrationsClient creates a new instance of PartnerRegistrationsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PartnerRegistrationsClient) BeginCreateOrUpdate ¶
func (client *PartnerRegistrationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, partnerRegistrationName string, partnerRegistrationInfo PartnerRegistration, options *PartnerRegistrationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PartnerRegistrationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a new partner registration with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerRegistrationName - Name of the partner registration.
- partnerRegistrationInfo - PartnerRegistration information.
- options - PartnerRegistrationsClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerRegistrationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerRegistrationsClient().BeginCreateOrUpdate(ctx, "examplerg", "examplePartnerRegistrationName1", armeventgrid.PartnerRegistration{
Location: to.Ptr("global"),
Tags: map[string]*string{
"key1": to.Ptr("value1"),
"key2": to.Ptr("Value2"),
"key3": to.Ptr("Value3"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerRegistration = armeventgrid.PartnerRegistration{
// Name: to.Ptr("examplePartnerRegistrationName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerRegistrations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/examplePartnerRegistrationName1"),
// Location: to.Ptr("global"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("Value2"),
// "key3": to.Ptr("Value3"),
// },
// Properties: &armeventgrid.PartnerRegistrationProperties{
// PartnerRegistrationImmutableID: to.Ptr("cda82399-79fe-4d5a-bc6d-b05a437204d9"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerRegistrationProvisioningStateSucceeded),
// },
// }
func (*PartnerRegistrationsClient) BeginDelete ¶
func (client *PartnerRegistrationsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerRegistrationName string, options *PartnerRegistrationsClientBeginDeleteOptions) (*runtime.Poller[PartnerRegistrationsClientDeleteResponse], error)
BeginDelete - Deletes a partner registration with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerRegistrationName - Name of the partner registration.
- options - PartnerRegistrationsClientBeginDeleteOptions contains the optional parameters for the PartnerRegistrationsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerRegistrationsClient().BeginDelete(ctx, "examplerg", "examplePartnerRegistrationName1", 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)
}
func (*PartnerRegistrationsClient) BeginUpdate ¶
func (client *PartnerRegistrationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, partnerRegistrationName string, partnerRegistrationUpdateParameters PartnerRegistrationUpdateParameters, options *PartnerRegistrationsClientBeginUpdateOptions) (*runtime.Poller[PartnerRegistrationsClientUpdateResponse], error)
BeginUpdate - Updates a partner registration with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerRegistrationName - Name of the partner registration.
- partnerRegistrationUpdateParameters - Partner registration update information.
- options - PartnerRegistrationsClientBeginUpdateOptions contains the optional parameters for the PartnerRegistrationsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerRegistrationsClient().BeginUpdate(ctx, "examplerg", "examplePartnerRegistrationName1", armeventgrid.PartnerRegistrationUpdateParameters{
Tags: map[string]*string{
"NewKey": to.Ptr("NewValue"),
},
}, 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)
}
func (*PartnerRegistrationsClient) Get ¶
func (client *PartnerRegistrationsClient) Get(ctx context.Context, resourceGroupName string, partnerRegistrationName string, options *PartnerRegistrationsClientGetOptions) (PartnerRegistrationsClientGetResponse, error)
Get - Gets a partner registration with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerRegistrationName - Name of the partner registration.
- options - PartnerRegistrationsClientGetOptions contains the optional parameters for the PartnerRegistrationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerRegistrationsClient().Get(ctx, "examplerg", "examplePartnerRegistrationName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerRegistration = armeventgrid.PartnerRegistration{
// Name: to.Ptr("examplePartnerRegistrationName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerRegistrations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/examplePartnerRegistrationName1"),
// Location: to.Ptr("global"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("Value2"),
// "key3": to.Ptr("Value3"),
// },
// Properties: &armeventgrid.PartnerRegistrationProperties{
// PartnerRegistrationImmutableID: to.Ptr("cda82399-79fe-4d5a-bc6d-b05a437204d9"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerRegistrationProvisioningStateSucceeded),
// },
// }
func (*PartnerRegistrationsClient) NewListByResourceGroupPager ¶
func (client *PartnerRegistrationsClient) NewListByResourceGroupPager(resourceGroupName string, options *PartnerRegistrationsClientListByResourceGroupOptions) *runtime.Pager[PartnerRegistrationsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the partner registrations under a resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - PartnerRegistrationsClientListByResourceGroupOptions contains the optional parameters for the PartnerRegistrationsClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_ListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerRegistrationsClient().NewListByResourceGroupPager("examplerg", &armeventgrid.PartnerRegistrationsClientListByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerRegistrationsListResult = armeventgrid.PartnerRegistrationsListResult{
// Value: []*armeventgrid.PartnerRegistration{
// {
// Name: to.Ptr("ContosoCorpAccount1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerRegistrations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/amh/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1"),
// Location: to.Ptr("global"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("Value2"),
// "key3": to.Ptr("Value3"),
// },
// Properties: &armeventgrid.PartnerRegistrationProperties{
// PartnerRegistrationImmutableID: to.Ptr("cda82399-79fe-4d5a-bc6d-b05a437204d9"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerRegistrationProvisioningStateSucceeded),
// },
// }},
// }
}
func (*PartnerRegistrationsClient) NewListBySubscriptionPager ¶
func (client *PartnerRegistrationsClient) NewListBySubscriptionPager(options *PartnerRegistrationsClientListBySubscriptionOptions) *runtime.Pager[PartnerRegistrationsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all the partner registrations under an Azure subscription.
Generated from API version 2024-06-01-preview
- options - PartnerRegistrationsClientListBySubscriptionOptions contains the optional parameters for the PartnerRegistrationsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_ListBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerRegistrationsClient().NewListBySubscriptionPager(&armeventgrid.PartnerRegistrationsClientListBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerRegistrationsListResult = armeventgrid.PartnerRegistrationsListResult{
// Value: []*armeventgrid.PartnerRegistration{
// {
// Name: to.Ptr("ContosoCorpAccount1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerRegistrations"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/amh/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1"),
// Location: to.Ptr("global"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// "key2": to.Ptr("Value2"),
// "key3": to.Ptr("Value3"),
// },
// Properties: &armeventgrid.PartnerRegistrationProperties{
// PartnerRegistrationImmutableID: to.Ptr("cda82399-79fe-4d5a-bc6d-b05a437204d9"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerRegistrationProvisioningStateSucceeded),
// },
// }},
// }
}
type PartnerRegistrationsClientBeginCreateOrUpdateOptions ¶
type PartnerRegistrationsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerRegistrationsClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerRegistrationsClient.BeginCreateOrUpdate method.
type PartnerRegistrationsClientBeginDeleteOptions ¶
type PartnerRegistrationsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerRegistrationsClientBeginDeleteOptions contains the optional parameters for the PartnerRegistrationsClient.BeginDelete method.
type PartnerRegistrationsClientBeginUpdateOptions ¶
type PartnerRegistrationsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerRegistrationsClientBeginUpdateOptions contains the optional parameters for the PartnerRegistrationsClient.BeginUpdate method.
type PartnerRegistrationsClientCreateOrUpdateResponse ¶
type PartnerRegistrationsClientCreateOrUpdateResponse struct {
// Information about a partner registration.
PartnerRegistration
}
PartnerRegistrationsClientCreateOrUpdateResponse contains the response from method PartnerRegistrationsClient.BeginCreateOrUpdate.
type PartnerRegistrationsClientDeleteResponse ¶
type PartnerRegistrationsClientDeleteResponse struct {
}
PartnerRegistrationsClientDeleteResponse contains the response from method PartnerRegistrationsClient.BeginDelete.
type PartnerRegistrationsClientGetOptions ¶
type PartnerRegistrationsClientGetOptions struct {
}
PartnerRegistrationsClientGetOptions contains the optional parameters for the PartnerRegistrationsClient.Get method.
type PartnerRegistrationsClientGetResponse ¶
type PartnerRegistrationsClientGetResponse struct {
// Information about a partner registration.
PartnerRegistration
}
PartnerRegistrationsClientGetResponse contains the response from method PartnerRegistrationsClient.Get.
type PartnerRegistrationsClientListByResourceGroupOptions ¶
type PartnerRegistrationsClientListByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerRegistrationsClientListByResourceGroupOptions contains the optional parameters for the PartnerRegistrationsClient.NewListByResourceGroupPager method.
type PartnerRegistrationsClientListByResourceGroupResponse ¶
type PartnerRegistrationsClientListByResourceGroupResponse struct {
// Result of the List Partner Registrations operation.
PartnerRegistrationsListResult
}
PartnerRegistrationsClientListByResourceGroupResponse contains the response from method PartnerRegistrationsClient.NewListByResourceGroupPager.
type PartnerRegistrationsClientListBySubscriptionOptions ¶
type PartnerRegistrationsClientListBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerRegistrationsClientListBySubscriptionOptions contains the optional parameters for the PartnerRegistrationsClient.NewListBySubscriptionPager method.
type PartnerRegistrationsClientListBySubscriptionResponse ¶
type PartnerRegistrationsClientListBySubscriptionResponse struct {
// Result of the List Partner Registrations operation.
PartnerRegistrationsListResult
}
PartnerRegistrationsClientListBySubscriptionResponse contains the response from method PartnerRegistrationsClient.NewListBySubscriptionPager.
type PartnerRegistrationsClientUpdateResponse ¶
type PartnerRegistrationsClientUpdateResponse struct {
// Information about a partner registration.
PartnerRegistration
}
PartnerRegistrationsClientUpdateResponse contains the response from method PartnerRegistrationsClient.BeginUpdate.
type PartnerRegistrationsListResult ¶
type PartnerRegistrationsListResult struct {
// A link for the next page of partner registrations.
NextLink *string
// A collection of partner registrations.
Value []*PartnerRegistration
}
PartnerRegistrationsListResult - Result of the List Partner Registrations operation.
func (PartnerRegistrationsListResult) MarshalJSON ¶
func (p PartnerRegistrationsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerRegistrationsListResult.
func (*PartnerRegistrationsListResult) UnmarshalJSON ¶
func (p *PartnerRegistrationsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerRegistrationsListResult.
type PartnerTopic ¶
type PartnerTopic struct {
// REQUIRED; Location of the resource.
Location *string
// Identity information for the Partner Topic resource.
Identity *IdentityInfo
// Properties of the Partner Topic.
Properties *PartnerTopicProperties
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Partner Topic resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
PartnerTopic - Event Grid Partner Topic.
func (PartnerTopic) MarshalJSON ¶
func (p PartnerTopic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerTopic.
func (*PartnerTopic) UnmarshalJSON ¶
func (p *PartnerTopic) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerTopic.
type PartnerTopicActivationState ¶
type PartnerTopicActivationState string
PartnerTopicActivationState - Activation state of the partner topic.
const ( PartnerTopicActivationStateActivated PartnerTopicActivationState = "Activated" PartnerTopicActivationStateDeactivated PartnerTopicActivationState = "Deactivated" PartnerTopicActivationStateNeverActivated PartnerTopicActivationState = "NeverActivated" )
func PossiblePartnerTopicActivationStateValues ¶
func PossiblePartnerTopicActivationStateValues() []PartnerTopicActivationState
PossiblePartnerTopicActivationStateValues returns the possible values for the PartnerTopicActivationState const type.
type PartnerTopicEventSubscriptionsClient ¶
type PartnerTopicEventSubscriptionsClient struct {
// contains filtered or unexported fields
}
PartnerTopicEventSubscriptionsClient contains the methods for the PartnerTopicEventSubscriptions group. Don't use this type directly, use NewPartnerTopicEventSubscriptionsClient() instead.
func NewPartnerTopicEventSubscriptionsClient ¶
func NewPartnerTopicEventSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PartnerTopicEventSubscriptionsClient, error)
NewPartnerTopicEventSubscriptionsClient creates a new instance of PartnerTopicEventSubscriptionsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PartnerTopicEventSubscriptionsClient) BeginCreateOrUpdate ¶
func (client *PartnerTopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, partnerTopicName string, eventSubscriptionName string, eventSubscriptionInfo EventSubscription, options *PartnerTopicEventSubscriptionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PartnerTopicEventSubscriptionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. Existing event subscriptions will be updated with this API. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- eventSubscriptionName - Name of the event subscription to be created. Event subscription names must be between 3 and 64 characters in length and use alphanumeric letters only.
- eventSubscriptionInfo - Event subscription properties containing the destination and filter information.
- options - PartnerTopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerTopicEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "examplerg", "examplePartnerTopic1", "exampleEventSubscriptionName1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("exampleEventSubscriptionName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1/eventSubscriptions/exampleEventSubscriptionName1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1"),
// },
// }
func (*PartnerTopicEventSubscriptionsClient) BeginDelete ¶
func (client *PartnerTopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerTopicName string, eventSubscriptionName string, options *PartnerTopicEventSubscriptionsClientBeginDeleteOptions) (*runtime.Poller[PartnerTopicEventSubscriptionsClientDeleteResponse], error)
BeginDelete - Delete an existing event subscription of a partner topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- eventSubscriptionName - Name of the event subscription to be deleted.
- options - PartnerTopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerTopicEventSubscriptionsClient().BeginDelete(ctx, "examplerg", "examplePartnerTopic1", "examplesubscription1", 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)
}
func (*PartnerTopicEventSubscriptionsClient) BeginUpdate ¶
func (client *PartnerTopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, partnerTopicName string, eventSubscriptionName string, eventSubscriptionUpdateParameters EventSubscriptionUpdateParameters, options *PartnerTopicEventSubscriptionsClientBeginUpdateOptions) (*runtime.Poller[PartnerTopicEventSubscriptionsClientUpdateResponse], error)
BeginUpdate - Update an existing event subscription of a partner topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- eventSubscriptionName - Name of the event subscription to be updated.
- eventSubscriptionUpdateParameters - Updated event subscription information.
- options - PartnerTopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerTopicEventSubscriptionsClient().BeginUpdate(ctx, "examplerg", "examplePartnerTopic1", "exampleEventSubscriptionName1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
func (*PartnerTopicEventSubscriptionsClient) Get ¶
func (client *PartnerTopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, partnerTopicName string, eventSubscriptionName string, options *PartnerTopicEventSubscriptionsClientGetOptions) (PartnerTopicEventSubscriptionsClientGetResponse, error)
Get - Get properties of an event subscription of a partner topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- eventSubscriptionName - Name of the event subscription to be found.
- options - PartnerTopicEventSubscriptionsClientGetOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerTopicEventSubscriptionsClient().Get(ctx, "examplerg", "examplePartnerTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1"),
// },
// }
func (*PartnerTopicEventSubscriptionsClient) GetDeliveryAttributes ¶
func (client *PartnerTopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, partnerTopicName string, eventSubscriptionName string, options *PartnerTopicEventSubscriptionsClientGetDeliveryAttributesOptions) (PartnerTopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
GetDeliveryAttributes - Get all delivery attributes for an event subscription of a partner topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- eventSubscriptionName - Name of the event subscription.
- options - PartnerTopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.GetDeliveryAttributes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_GetDeliveryAttributes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerTopicEventSubscriptionsClient().GetDeliveryAttributes(ctx, "examplerg", "examplePartnerTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.DeliveryAttributeListResult = armeventgrid.DeliveryAttributeListResult{
// Value: []armeventgrid.DeliveryAttributeMappingClassification{
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header1"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(false),
// Value: to.Ptr("NormalValue"),
// },
// },
// &armeventgrid.DynamicDeliveryAttributeMapping{
// Name: to.Ptr("header2"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeDynamic),
// Properties: &armeventgrid.DynamicDeliveryAttributeMappingProperties{
// SourceField: to.Ptr("data.foo"),
// },
// },
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header3"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(true),
// Value: to.Ptr("mySecretValue"),
// },
// }},
// }
func (*PartnerTopicEventSubscriptionsClient) GetFullURL ¶
func (client *PartnerTopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, partnerTopicName string, eventSubscriptionName string, options *PartnerTopicEventSubscriptionsClientGetFullURLOptions) (PartnerTopicEventSubscriptionsClientGetFullURLResponse, error)
GetFullURL - Get the full endpoint URL for an event subscription of a partner topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- eventSubscriptionName - Name of the event subscription.
- options - PartnerTopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.GetFullURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_GetFullUrl.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerTopicEventSubscriptionsClient().GetFullURL(ctx, "examplerg", "examplePartnerTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
func (*PartnerTopicEventSubscriptionsClient) NewListByPartnerTopicPager ¶
func (client *PartnerTopicEventSubscriptionsClient) NewListByPartnerTopicPager(resourceGroupName string, partnerTopicName string, options *PartnerTopicEventSubscriptionsClientListByPartnerTopicOptions) *runtime.Pager[PartnerTopicEventSubscriptionsClientListByPartnerTopicResponse]
NewListByPartnerTopicPager - List event subscriptions that belong to a specific partner topic.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- options - PartnerTopicEventSubscriptionsClientListByPartnerTopicOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.NewListByPartnerTopicPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_ListByPartnerTopic.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerTopicEventSubscriptionsClient().NewListByPartnerTopicPager("examplerg", "examplePartnerTopic1", &armeventgrid.PartnerTopicEventSubscriptionsClientListByPartnerTopicOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// Labels: []*string{
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](10),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1"),
// },
// },
// {
// Name: to.Ptr("examplesubscription2"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1/eventSubscriptions/examplesubscription2"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1"),
// },
// }},
// }
}
type PartnerTopicEventSubscriptionsClientBeginCreateOrUpdateOptions ¶
type PartnerTopicEventSubscriptionsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerTopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.BeginCreateOrUpdate method.
type PartnerTopicEventSubscriptionsClientBeginDeleteOptions ¶
type PartnerTopicEventSubscriptionsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerTopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.BeginDelete method.
type PartnerTopicEventSubscriptionsClientBeginUpdateOptions ¶
type PartnerTopicEventSubscriptionsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerTopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.BeginUpdate method.
type PartnerTopicEventSubscriptionsClientCreateOrUpdateResponse ¶
type PartnerTopicEventSubscriptionsClientCreateOrUpdateResponse struct {
// Event Subscription.
EventSubscription
}
PartnerTopicEventSubscriptionsClientCreateOrUpdateResponse contains the response from method PartnerTopicEventSubscriptionsClient.BeginCreateOrUpdate.
type PartnerTopicEventSubscriptionsClientDeleteResponse ¶
type PartnerTopicEventSubscriptionsClientDeleteResponse struct {
}
PartnerTopicEventSubscriptionsClientDeleteResponse contains the response from method PartnerTopicEventSubscriptionsClient.BeginDelete.
type PartnerTopicEventSubscriptionsClientGetDeliveryAttributesOptions ¶
type PartnerTopicEventSubscriptionsClientGetDeliveryAttributesOptions struct {
}
PartnerTopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.GetDeliveryAttributes method.
type PartnerTopicEventSubscriptionsClientGetDeliveryAttributesResponse ¶
type PartnerTopicEventSubscriptionsClientGetDeliveryAttributesResponse struct {
// Result of the Get delivery attributes operation.
DeliveryAttributeListResult
}
PartnerTopicEventSubscriptionsClientGetDeliveryAttributesResponse contains the response from method PartnerTopicEventSubscriptionsClient.GetDeliveryAttributes.
type PartnerTopicEventSubscriptionsClientGetFullURLOptions ¶
type PartnerTopicEventSubscriptionsClientGetFullURLOptions struct {
}
PartnerTopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.GetFullURL method.
type PartnerTopicEventSubscriptionsClientGetFullURLResponse ¶
type PartnerTopicEventSubscriptionsClientGetFullURLResponse struct {
// Full endpoint URL of an event subscription
EventSubscriptionFullURL
}
PartnerTopicEventSubscriptionsClientGetFullURLResponse contains the response from method PartnerTopicEventSubscriptionsClient.GetFullURL.
type PartnerTopicEventSubscriptionsClientGetOptions ¶
type PartnerTopicEventSubscriptionsClientGetOptions struct {
}
PartnerTopicEventSubscriptionsClientGetOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.Get method.
type PartnerTopicEventSubscriptionsClientGetResponse ¶
type PartnerTopicEventSubscriptionsClientGetResponse struct {
// Event Subscription.
EventSubscription
}
PartnerTopicEventSubscriptionsClientGetResponse contains the response from method PartnerTopicEventSubscriptionsClient.Get.
type PartnerTopicEventSubscriptionsClientListByPartnerTopicOptions ¶
type PartnerTopicEventSubscriptionsClientListByPartnerTopicOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerTopicEventSubscriptionsClientListByPartnerTopicOptions contains the optional parameters for the PartnerTopicEventSubscriptionsClient.NewListByPartnerTopicPager method.
type PartnerTopicEventSubscriptionsClientListByPartnerTopicResponse ¶
type PartnerTopicEventSubscriptionsClientListByPartnerTopicResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
PartnerTopicEventSubscriptionsClientListByPartnerTopicResponse contains the response from method PartnerTopicEventSubscriptionsClient.NewListByPartnerTopicPager.
type PartnerTopicEventSubscriptionsClientUpdateResponse ¶
type PartnerTopicEventSubscriptionsClientUpdateResponse struct {
// Event Subscription.
EventSubscription
}
PartnerTopicEventSubscriptionsClientUpdateResponse contains the response from method PartnerTopicEventSubscriptionsClient.BeginUpdate.
type PartnerTopicInfo ¶
type PartnerTopicInfo struct {
// Azure subscription ID of the subscriber. The partner topic associated with the channel will be created under this Azure
// subscription.
AzureSubscriptionID *string
// Event Type Information for the partner topic. This information is provided by the publisher and can be used by the subscriber
// to view different types of events that are published.
EventTypeInfo *EventTypeInfo
// Name of the partner topic associated with the channel.
Name *string
// Azure Resource Group of the subscriber. The partner topic associated with the channel will be created under this resource
// group.
ResourceGroupName *string
// The source information is provided by the publisher to determine the scope or context from which the events are originating.
// This information can be used by the subscriber during the approval process
// of the created partner topic.
Source *string
}
PartnerTopicInfo - Properties of the corresponding partner topic of a Channel.
func (PartnerTopicInfo) MarshalJSON ¶
func (p PartnerTopicInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerTopicInfo.
func (*PartnerTopicInfo) UnmarshalJSON ¶
func (p *PartnerTopicInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerTopicInfo.
type PartnerTopicProperties ¶
type PartnerTopicProperties struct {
// Activation state of the partner topic.
ActivationState *PartnerTopicActivationState
// Event Type information from the corresponding event channel.
EventTypeInfo *EventTypeInfo
// Expiration time of the partner topic. If this timer expires while the partner topic is still never activated, the partner
// topic and corresponding event channel are deleted.
ExpirationTimeIfNotActivatedUTC *time.Time
// Context or helpful message that can be used during the approval process by the subscriber.
MessageForActivation *string
// The immutableId of the corresponding partner registration.
PartnerRegistrationImmutableID *string
// Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer
// partner topic. This will be helpful to remove any ambiguity of the origin of
// creation of the partner topic for the customer.
PartnerTopicFriendlyDescription *string
// Source associated with this partner topic. This represents a unique partner resource.
Source *string
// READ-ONLY; Provisioning state of the partner topic.
ProvisioningState *PartnerTopicProvisioningState
}
PartnerTopicProperties - Properties of the Partner Topic.
func (PartnerTopicProperties) MarshalJSON ¶
func (p PartnerTopicProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerTopicProperties.
func (*PartnerTopicProperties) UnmarshalJSON ¶
func (p *PartnerTopicProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerTopicProperties.
type PartnerTopicProvisioningState ¶
type PartnerTopicProvisioningState string
PartnerTopicProvisioningState - Provisioning state of the partner topic.
const ( PartnerTopicProvisioningStateCanceled PartnerTopicProvisioningState = "Canceled" PartnerTopicProvisioningStateCreating PartnerTopicProvisioningState = "Creating" PartnerTopicProvisioningStateDeleting PartnerTopicProvisioningState = "Deleting" PartnerTopicProvisioningStateFailed PartnerTopicProvisioningState = "Failed" PartnerTopicProvisioningStateIdleDueToMirroredChannelResourceDeletion PartnerTopicProvisioningState = "IdleDueToMirroredChannelResourceDeletion" PartnerTopicProvisioningStateSucceeded PartnerTopicProvisioningState = "Succeeded" PartnerTopicProvisioningStateUpdating PartnerTopicProvisioningState = "Updating" )
func PossiblePartnerTopicProvisioningStateValues ¶
func PossiblePartnerTopicProvisioningStateValues() []PartnerTopicProvisioningState
PossiblePartnerTopicProvisioningStateValues returns the possible values for the PartnerTopicProvisioningState const type.
type PartnerTopicRoutingMode ¶
type PartnerTopicRoutingMode string
PartnerTopicRoutingMode - This determines if events published to this partner namespace should use the source attribute in the event payload or use the channel name in the header when matching to the partner topic. If none is specified, source attribute routing will be used to match the partner topic.
const ( PartnerTopicRoutingModeChannelNameHeader PartnerTopicRoutingMode = "ChannelNameHeader" PartnerTopicRoutingModeSourceEventAttribute PartnerTopicRoutingMode = "SourceEventAttribute" )
func PossiblePartnerTopicRoutingModeValues ¶
func PossiblePartnerTopicRoutingModeValues() []PartnerTopicRoutingMode
PossiblePartnerTopicRoutingModeValues returns the possible values for the PartnerTopicRoutingMode const type.
type PartnerTopicUpdateParameters ¶
type PartnerTopicUpdateParameters struct {
// Identity information for the Partner Topic resource.
Identity *IdentityInfo
// Tags of the Partner Topic resource.
Tags map[string]*string
}
PartnerTopicUpdateParameters - Properties of the Partner Topic update.
func (PartnerTopicUpdateParameters) MarshalJSON ¶
func (p PartnerTopicUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerTopicUpdateParameters.
func (*PartnerTopicUpdateParameters) UnmarshalJSON ¶
func (p *PartnerTopicUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerTopicUpdateParameters.
type PartnerTopicsClient ¶
type PartnerTopicsClient struct {
// contains filtered or unexported fields
}
PartnerTopicsClient contains the methods for the PartnerTopics group. Don't use this type directly, use NewPartnerTopicsClient() instead.
func NewPartnerTopicsClient ¶
func NewPartnerTopicsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PartnerTopicsClient, error)
NewPartnerTopicsClient creates a new instance of PartnerTopicsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PartnerTopicsClient) Activate ¶
func (client *PartnerTopicsClient) Activate(ctx context.Context, resourceGroupName string, partnerTopicName string, options *PartnerTopicsClientActivateOptions) (PartnerTopicsClientActivateResponse, error)
Activate - Activate a newly created partner topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- options - PartnerTopicsClientActivateOptions contains the optional parameters for the PartnerTopicsClient.Activate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_Activate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerTopicsClient().Activate(ctx, "examplerg", "examplePartnerTopic1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerTopic = armeventgrid.PartnerTopic{
// Name: to.Ptr("examplePartnerTopic1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.PartnerTopicProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerTopicActivationStateActivated),
// ProvisioningState: to.Ptr(armeventgrid.PartnerTopicProvisioningStateSucceeded),
// Source: to.Ptr("ContosoCorp.Accounts.User1"),
// },
// }
func (*PartnerTopicsClient) BeginDelete ¶
func (client *PartnerTopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, partnerTopicName string, options *PartnerTopicsClientBeginDeleteOptions) (*runtime.Poller[PartnerTopicsClientDeleteResponse], error)
BeginDelete - Delete existing partner topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- options - PartnerTopicsClientBeginDeleteOptions contains the optional parameters for the PartnerTopicsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPartnerTopicsClient().BeginDelete(ctx, "examplerg", "examplePartnerTopicName1", 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)
}
func (*PartnerTopicsClient) CreateOrUpdate ¶
func (client *PartnerTopicsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, partnerTopicName string, partnerTopicInfo PartnerTopic, options *PartnerTopicsClientCreateOrUpdateOptions) (PartnerTopicsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Asynchronously creates a new partner topic with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- partnerTopicInfo - Partner Topic information.
- options - PartnerTopicsClientCreateOrUpdateOptions contains the optional parameters for the PartnerTopicsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerTopicsClient().CreateOrUpdate(ctx, "examplerg", "examplePartnerTopicName1", armeventgrid.PartnerTopic{
Location: to.Ptr("westus2"),
Properties: &armeventgrid.PartnerTopicProperties{
ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-23T23:06:13.109Z"); return t }()),
MessageForActivation: to.Ptr("Example message for activation"),
PartnerRegistrationImmutableID: to.Ptr("6f541064-031d-4cc8-9ec3-a3b4fc0f7185"),
PartnerTopicFriendlyDescription: to.Ptr("Example description"),
Source: to.Ptr("ContosoCorp.Accounts.User1"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerTopic = armeventgrid.PartnerTopic{
// Name: to.Ptr("examplePartnerTopicName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopicName1"),
// Location: to.Ptr("centraluseuap"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.PartnerTopicProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerTopicActivationStateNeverActivated),
// ExpirationTimeIfNotActivatedUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-23T23:06:13.109Z"); return t}()),
// MessageForActivation: to.Ptr("Example message for activation"),
// PartnerRegistrationImmutableID: to.Ptr("6f541064-031d-4cc8-9ec3-a3b4fc0f7185"),
// PartnerTopicFriendlyDescription: to.Ptr("Example description"),
// ProvisioningState: to.Ptr(armeventgrid.PartnerTopicProvisioningStateSucceeded),
// Source: to.Ptr("ContosoCorp.Accounts.User1"),
// },
// }
func (*PartnerTopicsClient) Deactivate ¶
func (client *PartnerTopicsClient) Deactivate(ctx context.Context, resourceGroupName string, partnerTopicName string, options *PartnerTopicsClientDeactivateOptions) (PartnerTopicsClientDeactivateResponse, error)
Deactivate - Deactivate specific partner topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- options - PartnerTopicsClientDeactivateOptions contains the optional parameters for the PartnerTopicsClient.Deactivate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_Deactivate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerTopicsClient().Deactivate(ctx, "examplerg", "examplePartnerTopic1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerTopic = armeventgrid.PartnerTopic{
// Name: to.Ptr("examplePartnerTopic1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.PartnerTopicProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerTopicActivationStateDeactivated),
// ProvisioningState: to.Ptr(armeventgrid.PartnerTopicProvisioningStateSucceeded),
// Source: to.Ptr("ContosoCorp.Accounts.User1"),
// },
// }
func (*PartnerTopicsClient) Get ¶
func (client *PartnerTopicsClient) Get(ctx context.Context, resourceGroupName string, partnerTopicName string, options *PartnerTopicsClientGetOptions) (PartnerTopicsClientGetResponse, error)
Get - Get properties of a partner topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- options - PartnerTopicsClientGetOptions contains the optional parameters for the PartnerTopicsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPartnerTopicsClient().Get(ctx, "examplerg", "examplePartnerTopicName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PartnerTopic = armeventgrid.PartnerTopic{
// Name: to.Ptr("examplePartnerTopicName1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopicName1"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.PartnerTopicProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerTopicActivationStateNeverActivated),
// ProvisioningState: to.Ptr(armeventgrid.PartnerTopicProvisioningStateSucceeded),
// Source: to.Ptr("ContosoCorp.Accounts.User1"),
// },
// }
func (*PartnerTopicsClient) NewListByResourceGroupPager ¶
func (client *PartnerTopicsClient) NewListByResourceGroupPager(resourceGroupName string, options *PartnerTopicsClientListByResourceGroupOptions) *runtime.Pager[PartnerTopicsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the partner topics under a resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - PartnerTopicsClientListByResourceGroupOptions contains the optional parameters for the PartnerTopicsClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_ListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerTopicsClient().NewListByResourceGroupPager("examplerg", &armeventgrid.PartnerTopicsClientListByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerTopicsListResult = armeventgrid.PartnerTopicsListResult{
// Value: []*armeventgrid.PartnerTopic{
// {
// Name: to.Ptr("examplePartnerTopic1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/amh/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.PartnerTopicProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerTopicActivationStateNeverActivated),
// ProvisioningState: to.Ptr(armeventgrid.PartnerTopicProvisioningStateSucceeded),
// Source: to.Ptr("ContosoCorp.Accounts.User1"),
// },
// }},
// }
}
func (*PartnerTopicsClient) NewListBySubscriptionPager ¶
func (client *PartnerTopicsClient) NewListBySubscriptionPager(options *PartnerTopicsClientListBySubscriptionOptions) *runtime.Pager[PartnerTopicsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all the partner topics under an Azure subscription.
Generated from API version 2024-06-01-preview
- options - PartnerTopicsClientListBySubscriptionOptions contains the optional parameters for the PartnerTopicsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_ListBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPartnerTopicsClient().NewListBySubscriptionPager(&armeventgrid.PartnerTopicsClientListBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PartnerTopicsListResult = armeventgrid.PartnerTopicsListResult{
// Value: []*armeventgrid.PartnerTopic{
// {
// Name: to.Ptr("examplePartnerTopic1"),
// Type: to.Ptr("Microsoft.EventGrid/partnerTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/amh/providers/Microsoft.EventGrid/partnerTopics/examplePartnerTopic1"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.PartnerTopicProperties{
// ActivationState: to.Ptr(armeventgrid.PartnerTopicActivationStateNeverActivated),
// ProvisioningState: to.Ptr(armeventgrid.PartnerTopicProvisioningStateSucceeded),
// Source: to.Ptr("ContosoCorp.Accounts.User1"),
// },
// }},
// }
}
func (*PartnerTopicsClient) Update ¶
func (client *PartnerTopicsClient) Update(ctx context.Context, resourceGroupName string, partnerTopicName string, partnerTopicUpdateParameters PartnerTopicUpdateParameters, options *PartnerTopicsClientUpdateOptions) (PartnerTopicsClientUpdateResponse, error)
Update - Asynchronously updates a partner topic with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- partnerTopicName - Name of the partner topic.
- partnerTopicUpdateParameters - PartnerTopic update information.
- options - PartnerTopicsClientUpdateOptions contains the optional parameters for the PartnerTopicsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
_, err = clientFactory.NewPartnerTopicsClient().Update(ctx, "examplerg", "examplePartnerTopicName1", armeventgrid.PartnerTopicUpdateParameters{
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
type PartnerTopicsClientActivateOptions ¶
type PartnerTopicsClientActivateOptions struct {
}
PartnerTopicsClientActivateOptions contains the optional parameters for the PartnerTopicsClient.Activate method.
type PartnerTopicsClientActivateResponse ¶
type PartnerTopicsClientActivateResponse struct {
// Event Grid Partner Topic.
PartnerTopic
}
PartnerTopicsClientActivateResponse contains the response from method PartnerTopicsClient.Activate.
type PartnerTopicsClientBeginDeleteOptions ¶
type PartnerTopicsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PartnerTopicsClientBeginDeleteOptions contains the optional parameters for the PartnerTopicsClient.BeginDelete method.
type PartnerTopicsClientCreateOrUpdateOptions ¶
type PartnerTopicsClientCreateOrUpdateOptions struct {
}
PartnerTopicsClientCreateOrUpdateOptions contains the optional parameters for the PartnerTopicsClient.CreateOrUpdate method.
type PartnerTopicsClientCreateOrUpdateResponse ¶
type PartnerTopicsClientCreateOrUpdateResponse struct {
// Event Grid Partner Topic.
PartnerTopic
}
PartnerTopicsClientCreateOrUpdateResponse contains the response from method PartnerTopicsClient.CreateOrUpdate.
type PartnerTopicsClientDeactivateOptions ¶
type PartnerTopicsClientDeactivateOptions struct {
}
PartnerTopicsClientDeactivateOptions contains the optional parameters for the PartnerTopicsClient.Deactivate method.
type PartnerTopicsClientDeactivateResponse ¶
type PartnerTopicsClientDeactivateResponse struct {
// Event Grid Partner Topic.
PartnerTopic
}
PartnerTopicsClientDeactivateResponse contains the response from method PartnerTopicsClient.Deactivate.
type PartnerTopicsClientDeleteResponse ¶
type PartnerTopicsClientDeleteResponse struct {
}
PartnerTopicsClientDeleteResponse contains the response from method PartnerTopicsClient.BeginDelete.
type PartnerTopicsClientGetOptions ¶
type PartnerTopicsClientGetOptions struct {
}
PartnerTopicsClientGetOptions contains the optional parameters for the PartnerTopicsClient.Get method.
type PartnerTopicsClientGetResponse ¶
type PartnerTopicsClientGetResponse struct {
// Event Grid Partner Topic.
PartnerTopic
}
PartnerTopicsClientGetResponse contains the response from method PartnerTopicsClient.Get.
type PartnerTopicsClientListByResourceGroupOptions ¶
type PartnerTopicsClientListByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerTopicsClientListByResourceGroupOptions contains the optional parameters for the PartnerTopicsClient.NewListByResourceGroupPager method.
type PartnerTopicsClientListByResourceGroupResponse ¶
type PartnerTopicsClientListByResourceGroupResponse struct {
// Result of the List Partner Topics operation.
PartnerTopicsListResult
}
PartnerTopicsClientListByResourceGroupResponse contains the response from method PartnerTopicsClient.NewListByResourceGroupPager.
type PartnerTopicsClientListBySubscriptionOptions ¶
type PartnerTopicsClientListBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PartnerTopicsClientListBySubscriptionOptions contains the optional parameters for the PartnerTopicsClient.NewListBySubscriptionPager method.
type PartnerTopicsClientListBySubscriptionResponse ¶
type PartnerTopicsClientListBySubscriptionResponse struct {
// Result of the List Partner Topics operation.
PartnerTopicsListResult
}
PartnerTopicsClientListBySubscriptionResponse contains the response from method PartnerTopicsClient.NewListBySubscriptionPager.
type PartnerTopicsClientUpdateOptions ¶
type PartnerTopicsClientUpdateOptions struct {
}
PartnerTopicsClientUpdateOptions contains the optional parameters for the PartnerTopicsClient.Update method.
type PartnerTopicsClientUpdateResponse ¶
type PartnerTopicsClientUpdateResponse struct {
// Event Grid Partner Topic.
PartnerTopic
}
PartnerTopicsClientUpdateResponse contains the response from method PartnerTopicsClient.Update.
type PartnerTopicsListResult ¶
type PartnerTopicsListResult struct {
// A link for the next page of partner topics.
NextLink *string
// A collection of partner topics.
Value []*PartnerTopic
}
PartnerTopicsListResult - Result of the List Partner Topics operation.
func (PartnerTopicsListResult) MarshalJSON ¶
func (p PartnerTopicsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerTopicsListResult.
func (*PartnerTopicsListResult) UnmarshalJSON ¶
func (p *PartnerTopicsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerTopicsListResult.
type PartnerUpdateDestinationInfo ¶
type PartnerUpdateDestinationInfo struct {
// REQUIRED; Type of the endpoint for the partner destination
EndpointType *PartnerEndpointType
}
PartnerUpdateDestinationInfo - Properties of the corresponding partner destination of a Channel.
func (*PartnerUpdateDestinationInfo) GetPartnerUpdateDestinationInfo ¶
func (p *PartnerUpdateDestinationInfo) GetPartnerUpdateDestinationInfo() *PartnerUpdateDestinationInfo
GetPartnerUpdateDestinationInfo implements the PartnerUpdateDestinationInfoClassification interface for type PartnerUpdateDestinationInfo.
func (PartnerUpdateDestinationInfo) MarshalJSON ¶
func (p PartnerUpdateDestinationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerUpdateDestinationInfo.
func (*PartnerUpdateDestinationInfo) UnmarshalJSON ¶
func (p *PartnerUpdateDestinationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerUpdateDestinationInfo.
type PartnerUpdateDestinationInfoClassification ¶
type PartnerUpdateDestinationInfoClassification interface {
// GetPartnerUpdateDestinationInfo returns the PartnerUpdateDestinationInfo content of the underlying type.
GetPartnerUpdateDestinationInfo() *PartnerUpdateDestinationInfo
}
PartnerUpdateDestinationInfoClassification provides polymorphic access to related types. Call the interface's GetPartnerUpdateDestinationInfo() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *PartnerUpdateDestinationInfo, *WebhookUpdatePartnerDestinationInfo
type PartnerUpdateTopicInfo ¶
type PartnerUpdateTopicInfo struct {
// Event type info for the partner topic
EventTypeInfo *EventTypeInfo
}
PartnerUpdateTopicInfo - Update properties for the corresponding partner topic of a channel.
func (PartnerUpdateTopicInfo) MarshalJSON ¶
func (p PartnerUpdateTopicInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PartnerUpdateTopicInfo.
func (*PartnerUpdateTopicInfo) UnmarshalJSON ¶
func (p *PartnerUpdateTopicInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PartnerUpdateTopicInfo.
type PermissionBinding ¶
type PermissionBinding struct {
// The properties of permission binding.
Properties *PermissionBindingProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to the PermissionBinding resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
PermissionBinding - The Permission binding resource.
func (PermissionBinding) MarshalJSON ¶
func (p PermissionBinding) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PermissionBinding.
func (*PermissionBinding) UnmarshalJSON ¶
func (p *PermissionBinding) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PermissionBinding.
type PermissionBindingProperties ¶
type PermissionBindingProperties struct {
// The name of the client group resource that the permission is bound to. The client group needs to be a resource under the
// same namespace the permission binding is a part of.
ClientGroupName *string
// Description for the Permission Binding resource.
Description *string
// The allowed permission.
Permission *PermissionType
// The name of the Topic Space resource that the permission is bound to. The Topic space needs to be a resource under the
// same namespace the permission binding is a part of.
TopicSpaceName *string
// READ-ONLY; Provisioning state of the PermissionBinding resource.
ProvisioningState *PermissionBindingProvisioningState
}
PermissionBindingProperties - The properties of permission binding.
func (PermissionBindingProperties) MarshalJSON ¶
func (p PermissionBindingProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PermissionBindingProperties.
func (*PermissionBindingProperties) UnmarshalJSON ¶
func (p *PermissionBindingProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PermissionBindingProperties.
type PermissionBindingProvisioningState ¶
type PermissionBindingProvisioningState string
PermissionBindingProvisioningState - Provisioning state of the PermissionBinding resource.
const ( PermissionBindingProvisioningStateCanceled PermissionBindingProvisioningState = "Canceled" PermissionBindingProvisioningStateCreating PermissionBindingProvisioningState = "Creating" PermissionBindingProvisioningStateDeleted PermissionBindingProvisioningState = "Deleted" PermissionBindingProvisioningStateDeleting PermissionBindingProvisioningState = "Deleting" PermissionBindingProvisioningStateFailed PermissionBindingProvisioningState = "Failed" PermissionBindingProvisioningStateSucceeded PermissionBindingProvisioningState = "Succeeded" PermissionBindingProvisioningStateUpdating PermissionBindingProvisioningState = "Updating" )
func PossiblePermissionBindingProvisioningStateValues ¶
func PossiblePermissionBindingProvisioningStateValues() []PermissionBindingProvisioningState
PossiblePermissionBindingProvisioningStateValues returns the possible values for the PermissionBindingProvisioningState const type.
type PermissionBindingsClient ¶
type PermissionBindingsClient struct {
// contains filtered or unexported fields
}
PermissionBindingsClient contains the methods for the PermissionBindings group. Don't use this type directly, use NewPermissionBindingsClient() instead.
func NewPermissionBindingsClient ¶
func NewPermissionBindingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PermissionBindingsClient, error)
NewPermissionBindingsClient creates a new instance of PermissionBindingsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PermissionBindingsClient) BeginCreateOrUpdate ¶
func (client *PermissionBindingsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, permissionBindingName string, permissionBindingInfo PermissionBinding, options *PermissionBindingsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PermissionBindingsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a permission binding with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- permissionBindingName - The permission binding name.
- permissionBindingInfo - Permission binding information.
- options - PermissionBindingsClientBeginCreateOrUpdateOptions contains the optional parameters for the PermissionBindingsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PermissionBindings_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPermissionBindingsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleNamespaceName1", "examplePermissionBindingName1", armeventgrid.PermissionBinding{
Properties: &armeventgrid.PermissionBindingProperties{
ClientGroupName: to.Ptr("exampleClientGroupName1"),
Permission: to.Ptr(armeventgrid.PermissionTypePublisher),
TopicSpaceName: to.Ptr("exampleTopicSpaceName1"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PermissionBinding = armeventgrid.PermissionBinding{
// Name: to.Ptr("examplePermissionBindingName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/permissionBindings"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/permissionBindings/examplePermissionBindingName1"),
// Properties: &armeventgrid.PermissionBindingProperties{
// ClientGroupName: to.Ptr("exampleClientGroupName1"),
// Permission: to.Ptr(armeventgrid.PermissionTypePublisher),
// ProvisioningState: to.Ptr(armeventgrid.PermissionBindingProvisioningStateSucceeded),
// TopicSpaceName: to.Ptr("exampleTopicSpaceName1"),
// },
// }
func (*PermissionBindingsClient) BeginDelete ¶
func (client *PermissionBindingsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, permissionBindingName string, options *PermissionBindingsClientBeginDeleteOptions) (*runtime.Poller[PermissionBindingsClientDeleteResponse], error)
BeginDelete - Delete an existing permission binding. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- permissionBindingName - Name of the permission binding.
- options - PermissionBindingsClientBeginDeleteOptions contains the optional parameters for the PermissionBindingsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PermissionBindings_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPermissionBindingsClient().BeginDelete(ctx, "examplerg", "exampleNamespaceName1", "examplePermissionBindingName1", 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)
}
func (*PermissionBindingsClient) Get ¶
func (client *PermissionBindingsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, permissionBindingName string, options *PermissionBindingsClientGetOptions) (PermissionBindingsClientGetResponse, error)
Get - Get properties of a permission binding. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- permissionBindingName - Name of the permission binding.
- options - PermissionBindingsClientGetOptions contains the optional parameters for the PermissionBindingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PermissionBindings_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPermissionBindingsClient().Get(ctx, "examplerg", "exampleNamespaceName1", "examplePermissionBindingName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PermissionBinding = armeventgrid.PermissionBinding{
// Name: to.Ptr("examplePermissionBindingName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/permissionBindings"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/permissionBindings/examplePermissionBindingName1"),
// Properties: &armeventgrid.PermissionBindingProperties{
// ClientGroupName: to.Ptr("exampleClientGroupName1"),
// Permission: to.Ptr(armeventgrid.PermissionTypePublisher),
// ProvisioningState: to.Ptr(armeventgrid.PermissionBindingProvisioningStateSucceeded),
// TopicSpaceName: to.Ptr("exampleTopicSpaceName1"),
// },
// }
func (*PermissionBindingsClient) NewListByNamespacePager ¶
func (client *PermissionBindingsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *PermissionBindingsClientListByNamespaceOptions) *runtime.Pager[PermissionBindingsClientListByNamespaceResponse]
NewListByNamespacePager - Get all the permission bindings under a namespace.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- options - PermissionBindingsClientListByNamespaceOptions contains the optional parameters for the PermissionBindingsClient.NewListByNamespacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PermissionBindings_ListByNamespace.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPermissionBindingsClient().NewListByNamespacePager("examplerg", "namespace123", &armeventgrid.PermissionBindingsClientListByNamespaceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PermissionBindingsListResult = armeventgrid.PermissionBindingsListResult{
// Value: []*armeventgrid.PermissionBinding{
// {
// Name: to.Ptr("examplePermissionBindingName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/permissionBindings"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/permissionBindings/examplePermissionBindingName1"),
// Properties: &armeventgrid.PermissionBindingProperties{
// ClientGroupName: to.Ptr("exampleClientGroupName1"),
// Permission: to.Ptr(armeventgrid.PermissionTypePublisher),
// ProvisioningState: to.Ptr(armeventgrid.PermissionBindingProvisioningStateSucceeded),
// TopicSpaceName: to.Ptr("exampleTopicSpaceName1"),
// },
// }},
// }
}
type PermissionBindingsClientBeginCreateOrUpdateOptions ¶
type PermissionBindingsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PermissionBindingsClientBeginCreateOrUpdateOptions contains the optional parameters for the PermissionBindingsClient.BeginCreateOrUpdate method.
type PermissionBindingsClientBeginDeleteOptions ¶
type PermissionBindingsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PermissionBindingsClientBeginDeleteOptions contains the optional parameters for the PermissionBindingsClient.BeginDelete method.
type PermissionBindingsClientCreateOrUpdateResponse ¶
type PermissionBindingsClientCreateOrUpdateResponse struct {
// The Permission binding resource.
PermissionBinding
}
PermissionBindingsClientCreateOrUpdateResponse contains the response from method PermissionBindingsClient.BeginCreateOrUpdate.
type PermissionBindingsClientDeleteResponse ¶
type PermissionBindingsClientDeleteResponse struct {
}
PermissionBindingsClientDeleteResponse contains the response from method PermissionBindingsClient.BeginDelete.
type PermissionBindingsClientGetOptions ¶
type PermissionBindingsClientGetOptions struct {
}
PermissionBindingsClientGetOptions contains the optional parameters for the PermissionBindingsClient.Get method.
type PermissionBindingsClientGetResponse ¶
type PermissionBindingsClientGetResponse struct {
// The Permission binding resource.
PermissionBinding
}
PermissionBindingsClientGetResponse contains the response from method PermissionBindingsClient.Get.
type PermissionBindingsClientListByNamespaceOptions ¶
type PermissionBindingsClientListByNamespaceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PermissionBindingsClientListByNamespaceOptions contains the optional parameters for the PermissionBindingsClient.NewListByNamespacePager method.
type PermissionBindingsClientListByNamespaceResponse ¶
type PermissionBindingsClientListByNamespaceResponse struct {
// Result of the List Permission Binding operation.
PermissionBindingsListResult
}
PermissionBindingsClientListByNamespaceResponse contains the response from method PermissionBindingsClient.NewListByNamespacePager.
type PermissionBindingsListResult ¶
type PermissionBindingsListResult struct {
// A link for the next page of Permission Binding.
NextLink *string
// A collection of Permission Binding.
Value []*PermissionBinding
}
PermissionBindingsListResult - Result of the List Permission Binding operation.
func (PermissionBindingsListResult) MarshalJSON ¶
func (p PermissionBindingsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PermissionBindingsListResult.
func (*PermissionBindingsListResult) UnmarshalJSON ¶
func (p *PermissionBindingsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PermissionBindingsListResult.
type PermissionType ¶
type PermissionType string
PermissionType - The allowed permission.
const ( PermissionTypePublisher PermissionType = "Publisher" PermissionTypeSubscriber PermissionType = "Subscriber" )
func PossiblePermissionTypeValues ¶
func PossiblePermissionTypeValues() []PermissionType
PossiblePermissionTypeValues returns the possible values for the PermissionType const type.
type PersistedConnectionStatus ¶
type PersistedConnectionStatus string
PersistedConnectionStatus - Status of the connection.
const ( PersistedConnectionStatusApproved PersistedConnectionStatus = "Approved" PersistedConnectionStatusDisconnected PersistedConnectionStatus = "Disconnected" PersistedConnectionStatusPending PersistedConnectionStatus = "Pending" PersistedConnectionStatusRejected PersistedConnectionStatus = "Rejected" )
func PossiblePersistedConnectionStatusValues ¶
func PossiblePersistedConnectionStatusValues() []PersistedConnectionStatus
PossiblePersistedConnectionStatusValues returns the possible values for the PersistedConnectionStatus const type.
type PrivateEndpoint ¶
type PrivateEndpoint struct {
// The ARM identifier for Private Endpoint.
ID *string
}
PrivateEndpoint information.
func (PrivateEndpoint) MarshalJSON ¶
func (p PrivateEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint.
func (*PrivateEndpoint) UnmarshalJSON ¶
func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct {
// Properties of the PrivateEndpointConnection.
Properties *PrivateEndpointConnectionProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; Type of the resource.
Type *string
}
func (PrivateEndpointConnection) MarshalJSON ¶
func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.
func (*PrivateEndpointConnection) UnmarshalJSON ¶
func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection.
type PrivateEndpointConnectionListResult ¶
type PrivateEndpointConnectionListResult struct {
// A link for the next page of private endpoint connection resources.
NextLink *string
// A collection of private endpoint connection resources.
Value []*PrivateEndpointConnection
}
PrivateEndpointConnectionListResult - Result of the list of all private endpoint connections operation.
func (PrivateEndpointConnectionListResult) MarshalJSON ¶
func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.
func (*PrivateEndpointConnectionListResult) UnmarshalJSON ¶
func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult.
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct {
// GroupIds from the private link service resource.
GroupIDs []*string
// The Private Endpoint resource for this Connection.
PrivateEndpoint *PrivateEndpoint
// Details about the state of the connection.
PrivateLinkServiceConnectionState *ConnectionState
// Provisioning state of the Private Endpoint Connection.
ProvisioningState *ResourceProvisioningState
}
PrivateEndpointConnectionProperties - Properties of the private endpoint connection resource.
func (PrivateEndpointConnectionProperties) MarshalJSON ¶
func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties.
func (*PrivateEndpointConnectionProperties) UnmarshalJSON ¶
func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties.
type 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 ¶
func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error)
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, parentType PrivateEndpointConnectionsParentType, parentName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
BeginDelete - Delete a specific private endpoint connection under a topic, domain, or partner namespace or namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- parentType - The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\' or \'namespaces\'.
- parentName - The name of the parent resource (namely, either, the topic name, domain name, or partner namespace name or namespace name).
- privateEndpointConnectionName - The name of the private endpoint connection connection.
- options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PrivateEndpointConnections_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPrivateEndpointConnectionsClient().BeginDelete(ctx, "examplerg", armeventgrid.PrivateEndpointConnectionsParentTypeTopics, "exampletopic1", "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B", 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)
}
func (*PrivateEndpointConnectionsClient) BeginUpdate ¶
func (client *PrivateEndpointConnectionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, parentType PrivateEndpointConnectionsParentType, parentName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsClientUpdateResponse], error)
BeginUpdate - Update a specific private endpoint connection under a topic, domain or partner namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- parentType - The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\' or \'namespaces\'.
- parentName - The name of the parent resource (namely, either, the topic name, domain name, or partner namespace name or namespace name).
- privateEndpointConnectionName - The name of the private endpoint connection connection.
- privateEndpointConnection - The private endpoint connection object to update.
- options - PrivateEndpointConnectionsClientBeginUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PrivateEndpointConnections_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPrivateEndpointConnectionsClient().BeginUpdate(ctx, "examplerg", armeventgrid.PrivateEndpointConnectionsParentTypeTopics, "exampletopic1", "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B", armeventgrid.PrivateEndpointConnection{
Properties: &armeventgrid.PrivateEndpointConnectionProperties{
PrivateLinkServiceConnectionState: &armeventgrid.ConnectionState{
Description: to.Ptr("approving connection"),
ActionsRequired: to.Ptr("None"),
Status: to.Ptr(armeventgrid.PersistedConnectionStatusApproved),
},
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PrivateEndpointConnection = armeventgrid.PrivateEndpointConnection{
// Name: to.Ptr("BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B"),
// Type: to.Ptr("Microsoft.EventGrid/topics/privateEndpointConnections"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/privateEndpointConnections/BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B"),
// Properties: &armeventgrid.PrivateEndpointConnectionProperties{
// GroupIDs: []*string{
// to.Ptr("topic")},
// PrivateEndpoint: &armeventgrid.PrivateEndpoint{
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Network/privateEndpoints/bmtpe5"),
// },
// PrivateLinkServiceConnectionState: &armeventgrid.ConnectionState{
// Description: to.Ptr("approving connection"),
// ActionsRequired: to.Ptr("None"),
// Status: to.Ptr(armeventgrid.PersistedConnectionStatusApproved),
// },
// ProvisioningState: to.Ptr(armeventgrid.ResourceProvisioningStateSucceeded),
// },
// }
func (*PrivateEndpointConnectionsClient) Get ¶
func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, parentType PrivateEndpointConnectionsParentType, parentName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error)
Get - Get a specific private endpoint connection under a topic, domain, or partner namespace or namespace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- parentType - The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\' or \'namespaces\'.
- parentName - The name of the parent resource (namely, either, the topic name, domain name, or partner namespace name or namespace name).
- privateEndpointConnectionName - The name of the private endpoint connection connection.
- options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PrivateEndpointConnections_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPrivateEndpointConnectionsClient().Get(ctx, "examplerg", armeventgrid.PrivateEndpointConnectionsParentTypeTopics, "exampletopic1", "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PrivateEndpointConnection = armeventgrid.PrivateEndpointConnection{
// Name: to.Ptr("BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B"),
// Type: to.Ptr("Microsoft.EventGrid/topics/privateEndpointConnections"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/privateEndpointConnections/BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B"),
// Properties: &armeventgrid.PrivateEndpointConnectionProperties{
// GroupIDs: []*string{
// to.Ptr("topic")},
// PrivateEndpoint: &armeventgrid.PrivateEndpoint{
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Network/privateEndpoints/bmtpe5"),
// },
// PrivateLinkServiceConnectionState: &armeventgrid.ConnectionState{
// Description: to.Ptr("Test"),
// ActionsRequired: to.Ptr("None"),
// Status: to.Ptr(armeventgrid.PersistedConnectionStatusPending),
// },
// ProvisioningState: to.Ptr(armeventgrid.ResourceProvisioningStateSucceeded),
// },
// }
func (*PrivateEndpointConnectionsClient) NewListByResourcePager ¶
func (client *PrivateEndpointConnectionsClient) NewListByResourcePager(resourceGroupName string, parentType PrivateEndpointConnectionsParentType, parentName string, options *PrivateEndpointConnectionsClientListByResourceOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByResourceResponse]
NewListByResourcePager - Get all private endpoint connections under a topic, domain, or partner namespace or namespace.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- parentType - The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\' or \'namespaces\'.
- parentName - The name of the parent resource (namely, either, the topic name, domain name, or partner namespace name or namespace name).
- options - PrivateEndpointConnectionsClientListByResourceOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByResourcePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PrivateEndpointConnections_ListByResource.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPrivateEndpointConnectionsClient().NewListByResourcePager("examplerg", armeventgrid.PrivateEndpointConnectionsParentTypeTopics, "exampletopic1", &armeventgrid.PrivateEndpointConnectionsClientListByResourceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PrivateEndpointConnectionListResult = armeventgrid.PrivateEndpointConnectionListResult{
// Value: []*armeventgrid.PrivateEndpointConnection{
// {
// Name: to.Ptr("BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B"),
// Type: to.Ptr("Microsoft.EventGrid/topics/privateEndpointConnections"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/privateEndpointConnections/BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B"),
// Properties: &armeventgrid.PrivateEndpointConnectionProperties{
// GroupIDs: []*string{
// to.Ptr("topic")},
// PrivateEndpoint: &armeventgrid.PrivateEndpoint{
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Network/privateEndpoints/bmtpe5"),
// },
// PrivateLinkServiceConnectionState: &armeventgrid.ConnectionState{
// Description: to.Ptr("Test"),
// ActionsRequired: to.Ptr("None"),
// Status: to.Ptr(armeventgrid.PersistedConnectionStatusPending),
// },
// ProvisioningState: to.Ptr(armeventgrid.ResourceProvisioningStateSucceeded),
// },
// }},
// }
}
type PrivateEndpointConnectionsClientBeginDeleteOptions ¶
type PrivateEndpointConnectionsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
type PrivateEndpointConnectionsClientBeginUpdateOptions ¶
type PrivateEndpointConnectionsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PrivateEndpointConnectionsClientBeginUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginUpdate method.
type PrivateEndpointConnectionsClientDeleteResponse ¶
type PrivateEndpointConnectionsClientDeleteResponse struct {
}
PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete.
type PrivateEndpointConnectionsClientGetOptions ¶
type PrivateEndpointConnectionsClientGetOptions struct {
}
PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
type PrivateEndpointConnectionsClientGetResponse ¶
type PrivateEndpointConnectionsClientGetResponse struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get.
type PrivateEndpointConnectionsClientListByResourceOptions ¶
type PrivateEndpointConnectionsClientListByResourceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PrivateEndpointConnectionsClientListByResourceOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByResourcePager method.
type PrivateEndpointConnectionsClientListByResourceResponse ¶
type PrivateEndpointConnectionsClientListByResourceResponse struct {
// Result of the list of all private endpoint connections operation.
PrivateEndpointConnectionListResult
}
PrivateEndpointConnectionsClientListByResourceResponse contains the response from method PrivateEndpointConnectionsClient.NewListByResourcePager.
type PrivateEndpointConnectionsClientUpdateResponse ¶
type PrivateEndpointConnectionsClientUpdateResponse struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientUpdateResponse contains the response from method PrivateEndpointConnectionsClient.BeginUpdate.
type PrivateEndpointConnectionsParentType ¶
type PrivateEndpointConnectionsParentType string
const ( PrivateEndpointConnectionsParentTypeDomains PrivateEndpointConnectionsParentType = "domains" PrivateEndpointConnectionsParentTypeNamespaces PrivateEndpointConnectionsParentType = "namespaces" PrivateEndpointConnectionsParentTypePartnerNamespaces PrivateEndpointConnectionsParentType = "partnerNamespaces" PrivateEndpointConnectionsParentTypeTopics PrivateEndpointConnectionsParentType = "topics" )
func PossiblePrivateEndpointConnectionsParentTypeValues ¶
func PossiblePrivateEndpointConnectionsParentTypeValues() []PrivateEndpointConnectionsParentType
PossiblePrivateEndpointConnectionsParentTypeValues returns the possible values for the PrivateEndpointConnectionsParentType const type.
type PrivateLinkResource ¶
type PrivateLinkResource struct {
// Fully qualified identifier of the resource.
ID *string
// Name of the resource.
Name *string
// Properties of the private link resource.
Properties *PrivateLinkResourceProperties
// Type of the resource.
Type *string
}
PrivateLinkResource - Information of the private link resource.
func (PrivateLinkResource) MarshalJSON ¶
func (p PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.
func (*PrivateLinkResource) UnmarshalJSON ¶
func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource.
type PrivateLinkResourceProperties ¶
type PrivateLinkResourceProperties struct {
DisplayName *string
GroupID *string
RequiredMembers []*string
RequiredZoneNames []*string
}
func (PrivateLinkResourceProperties) MarshalJSON ¶
func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
func (*PrivateLinkResourceProperties) UnmarshalJSON ¶
func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties.
type 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 ¶
func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error)
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourcesClient) Get ¶
func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, parentType string, parentName string, privateLinkResourceName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error)
Get - Get properties of a private link resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- parentType - The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\' or \'namespaces\'.
- parentName - The name of the parent resource (namely, either, the topic name, domain name, or partner namespace name or namespace name).
- privateLinkResourceName - The name of private link resource will be either topic, domain, partnerNamespace or namespace.
- options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PrivateLinkResources_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPrivateLinkResourcesClient().Get(ctx, "examplerg", "topics", "exampletopic1", "topic", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PrivateLinkResource = armeventgrid.PrivateLinkResource{
// Name: to.Ptr("topic"),
// Type: to.Ptr("Microsoft.EventGrid/topics/privateLinkResources"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/amh/providers/Microsoft.EventGrid/topics/exampletopic1/privateLinkResources/topic"),
// Properties: &armeventgrid.PrivateLinkResourceProperties{
// DisplayName: to.Ptr("Event Grid topic"),
// GroupID: to.Ptr("topic"),
// RequiredMembers: []*string{
// to.Ptr("topic")},
// RequiredZoneNames: []*string{
// to.Ptr("privatelink.eventgrid.azure.net")},
// },
// }
func (*PrivateLinkResourcesClient) NewListByResourcePager ¶
func (client *PrivateLinkResourcesClient) NewListByResourcePager(resourceGroupName string, parentType string, parentName string, options *PrivateLinkResourcesClientListByResourceOptions) *runtime.Pager[PrivateLinkResourcesClientListByResourceResponse]
NewListByResourcePager - List all the private link resources under a topic, domain, or partner namespace or namespace.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- parentType - The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\' or \'namespaces\'.
- parentName - The name of the parent resource (namely, either, the topic name, domain name, or partner namespace or namespace name).
- options - PrivateLinkResourcesClientListByResourceOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByResourcePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PrivateLinkResources_ListByResource.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPrivateLinkResourcesClient().NewListByResourcePager("examplerg", "topics", "exampletopic1", &armeventgrid.PrivateLinkResourcesClientListByResourceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.PrivateLinkResourcesListResult = armeventgrid.PrivateLinkResourcesListResult{
// Value: []*armeventgrid.PrivateLinkResource{
// {
// Name: to.Ptr("topic"),
// Type: to.Ptr("Microsoft.EventGrid/topics/privateLinkResources"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/amh/providers/Microsoft.EventGrid/topics/exampletopic1/privateLinkResources/topic"),
// Properties: &armeventgrid.PrivateLinkResourceProperties{
// DisplayName: to.Ptr("Event Grid topic"),
// GroupID: to.Ptr("topic"),
// RequiredMembers: []*string{
// to.Ptr("topic")},
// RequiredZoneNames: []*string{
// to.Ptr("privatelink.eventgrid.azure.net")},
// },
// }},
// }
}
type PrivateLinkResourcesClientGetOptions ¶
type PrivateLinkResourcesClientGetOptions struct {
}
PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
type PrivateLinkResourcesClientGetResponse ¶
type PrivateLinkResourcesClientGetResponse struct {
// Information of the private link resource.
PrivateLinkResource
}
PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get.
type PrivateLinkResourcesClientListByResourceOptions ¶
type PrivateLinkResourcesClientListByResourceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
PrivateLinkResourcesClientListByResourceOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByResourcePager method.
type PrivateLinkResourcesClientListByResourceResponse ¶
type PrivateLinkResourcesClientListByResourceResponse struct {
// Result of the List private link resources operation.
PrivateLinkResourcesListResult
}
PrivateLinkResourcesClientListByResourceResponse contains the response from method PrivateLinkResourcesClient.NewListByResourcePager.
type PrivateLinkResourcesListResult ¶
type PrivateLinkResourcesListResult struct {
// A link for the next page of private link resources.
NextLink *string
// A collection of private link resources
Value []*PrivateLinkResource
}
PrivateLinkResourcesListResult - Result of the List private link resources operation.
func (PrivateLinkResourcesListResult) MarshalJSON ¶
func (p PrivateLinkResourcesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesListResult.
func (*PrivateLinkResourcesListResult) UnmarshalJSON ¶
func (p *PrivateLinkResourcesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourcesListResult.
type PublicNetworkAccess ¶
type PublicNetworkAccess string
PublicNetworkAccess - This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring
const ( PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" PublicNetworkAccessSecuredByPerimeter PublicNetworkAccess = "SecuredByPerimeter" )
func PossiblePublicNetworkAccessValues ¶
func PossiblePublicNetworkAccessValues() []PublicNetworkAccess
PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
type PublisherType ¶
type PublisherType string
PublisherType - Publisher type of the namespace topic.
const (
PublisherTypeCustom PublisherType = "Custom"
)
func PossiblePublisherTypeValues ¶
func PossiblePublisherTypeValues() []PublisherType
PossiblePublisherTypeValues returns the possible values for the PublisherType const type.
type PushInfo ¶
type PushInfo struct {
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to
// the dead letter destination. Uses the managed identity setup on the parent
// resource (namely, namespace) to acquire the authentication tokens being used during dead-lettering.
DeadLetterDestinationWithResourceIdentity *DeadLetterWithResourceIdentity
// Information about the destination where events have to be delivered for the event subscription. Uses the managed identity
// setup on the parent resource (namely, topic or domain) to acquire the
// authentication tokens being used during delivery.
DeliveryWithResourceIdentity *DeliveryWithResourceIdentity
// Information about the destination where events have to be delivered for the event subscription. Uses Azure Event Grid's
// identity to acquire the authentication tokens being used during delivery.
Destination EventSubscriptionDestinationClassification
// Time span duration in ISO 8601 format that determines how long messages are available to the subscription from the time
// the message was published. This duration value is expressed using the following
// format: \'P(n)Y(n)M(n)DT(n)H(n)M(n)S\', where: - (n) is replaced by the value of each time element that follows the (n).
// - P is the duration (or Period) designator and is always placed at the
// beginning of the duration. - Y is the year designator, and it follows the value for the number of years. - M is the month
// designator, and it follows the value for the number of months. - W is the week
// designator, and it follows the value for the number of weeks. - D is the day designator, and it follows the value for the
// number of days. - T is the time designator, and it precedes the time
// components. - H is the hour designator, and it follows the value for the number of hours. - M is the minute designator,
// and it follows the value for the number of minutes. - S is the second
// designator, and it follows the value for the number of seconds. This duration value cannot be set greater than the topic’s
// EventRetentionInDays. It is is an optional field where its minimum value is 1
// minute, and its maximum is determined by topic’s EventRetentionInDays value. The followings are examples of valid values:
// - \'P0DT23H12M\' or \'PT23H12M\': for duration of 23 hours and 12 minutes. -
// \'P1D\' or \'P1DT0H0M0S\': for duration of 1 day.
EventTimeToLive *string
// The maximum delivery count of the events.
MaxDeliveryCount *int32
}
PushInfo - Properties of the destination info for event subscription supporting push.
func (PushInfo) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type PushInfo.
func (*PushInfo) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type PushInfo.
type QueueInfo ¶
type QueueInfo struct {
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to
// the dead letter destination. Uses the managed identity setup on the parent
// resource (namely, topic) to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterDestinationWithResourceIdentity *DeadLetterWithResourceIdentity
// Time span duration in ISO 8601 format that determines how long messages are available to the subscription from the time
// the message was published. This duration value is expressed using the following
// format: \'P(n)Y(n)M(n)DT(n)H(n)M(n)S\', where: - (n) is replaced by the value of each time element that follows the (n).
// - P is the duration (or Period) designator and is always placed at the
// beginning of the duration. - Y is the year designator, and it follows the value for the number of years. - M is the month
// designator, and it follows the value for the number of months. - W is the week
// designator, and it follows the value for the number of weeks. - D is the day designator, and it follows the value for the
// number of days. - T is the time designator, and it precedes the time
// components. - H is the hour designator, and it follows the value for the number of hours. - M is the minute designator,
// and it follows the value for the number of minutes. - S is the second
// designator, and it follows the value for the number of seconds. This duration value cannot be set greater than the topic’s
// EventRetentionInDays. It is is an optional field where its minimum value is 1
// minute, and its maximum is determined by topic’s EventRetentionInDays value. The followings are examples of valid values:
// - \'P0DT23H12M\' or \'PT23H12M\': for duration of 23 hours and 12 minutes. -
// \'P1D\' or \'P1DT0H0M0S\': for duration of 1 day.
EventTimeToLive *string
// The maximum delivery count of the events.
MaxDeliveryCount *int32
// Maximum period in seconds in which once the message is in received (by the client) state and waiting to be accepted, released
// or rejected. If this time elapsed after a message has been received by the
// client and not transitioned into accepted (not processed), released or rejected, the message is available for redelivery.
// This is an optional field, where default is 60 seconds, minimum is 60 seconds
// and maximum is 300 seconds.
ReceiveLockDurationInSeconds *int32
}
QueueInfo - Properties of the Queue info for event subscription.
func (QueueInfo) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type QueueInfo.
func (*QueueInfo) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type QueueInfo.
type ReadinessState ¶
type ReadinessState string
ReadinessState - The readiness state of the corresponding partner topic.
const ( ReadinessStateActivated ReadinessState = "Activated" ReadinessStateNeverActivated ReadinessState = "NeverActivated" )
func PossibleReadinessStateValues ¶
func PossibleReadinessStateValues() []ReadinessState
PossibleReadinessStateValues returns the possible values for the ReadinessState const type.
type Resource ¶
type Resource struct {
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; Type of the resource.
Type *string
}
Resource - Definition of a Resource.
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type ResourceAssociation ¶
type ResourceAssociation struct {
// Network security perimeter access mode.
AccessMode *NetworkSecurityPerimeterAssociationAccessMode
// Association name
Name *string
}
ResourceAssociation - Nsp resource association
func (ResourceAssociation) MarshalJSON ¶
func (r ResourceAssociation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceAssociation.
func (*ResourceAssociation) UnmarshalJSON ¶
func (r *ResourceAssociation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceAssociation.
type ResourceKind ¶
type ResourceKind string
ResourceKind - Kind of the resource.
const ( ResourceKindAzure ResourceKind = "Azure" ResourceKindAzureArc ResourceKind = "AzureArc" )
func PossibleResourceKindValues ¶
func PossibleResourceKindValues() []ResourceKind
PossibleResourceKindValues returns the possible values for the ResourceKind const type.
type ResourceMoveChangeHistory ¶
type ResourceMoveChangeHistory struct {
// Azure subscription ID of the resource.
AzureSubscriptionID *string
// UTC timestamp of when the resource was changed.
ChangedTimeUTC *time.Time
// Azure Resource Group of the resource.
ResourceGroupName *string
}
ResourceMoveChangeHistory - The change history of the resource move.
func (ResourceMoveChangeHistory) MarshalJSON ¶
func (r ResourceMoveChangeHistory) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceMoveChangeHistory.
func (*ResourceMoveChangeHistory) UnmarshalJSON ¶
func (r *ResourceMoveChangeHistory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceMoveChangeHistory.
type ResourceProvisioningState ¶
type ResourceProvisioningState string
ResourceProvisioningState - Provisioning state of the Private Endpoint Connection.
const ( ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" ResourceProvisioningStateCreating ResourceProvisioningState = "Creating" ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" )
func PossibleResourceProvisioningStateValues ¶
func PossibleResourceProvisioningStateValues() []ResourceProvisioningState
PossibleResourceProvisioningStateValues returns the possible values for the ResourceProvisioningState const type.
type ResourceRegionType ¶
type ResourceRegionType string
ResourceRegionType - Region type of the resource.
const ( ResourceRegionTypeGlobalResource ResourceRegionType = "GlobalResource" ResourceRegionTypeRegionalResource ResourceRegionType = "RegionalResource" )
func PossibleResourceRegionTypeValues ¶
func PossibleResourceRegionTypeValues() []ResourceRegionType
PossibleResourceRegionTypeValues returns the possible values for the ResourceRegionType const type.
type ResourceSKU ¶
type ResourceSKU struct {
// The Sku name of the resource. The possible values are: Basic or Premium.
Name *SKU
}
ResourceSKU - Describes an EventGrid Resource Sku.
func (ResourceSKU) MarshalJSON ¶
func (r ResourceSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKU.
func (*ResourceSKU) UnmarshalJSON ¶
func (r *ResourceSKU) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKU.
type RetryPolicy ¶
type RetryPolicy struct {
// Time To Live (in minutes) for events.
EventTimeToLiveInMinutes *int32
// Maximum number of delivery retry attempts for events.
MaxDeliveryAttempts *int32
}
RetryPolicy - Information about the retry policy for an event subscription.
func (RetryPolicy) MarshalJSON ¶
func (r RetryPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RetryPolicy.
func (*RetryPolicy) UnmarshalJSON ¶
func (r *RetryPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RetryPolicy.
type RoutingEnrichments ¶
type RoutingEnrichments struct {
Dynamic []*DynamicRoutingEnrichment
Static []StaticRoutingEnrichmentClassification
}
func (RoutingEnrichments) MarshalJSON ¶
func (r RoutingEnrichments) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RoutingEnrichments.
func (*RoutingEnrichments) UnmarshalJSON ¶
func (r *RoutingEnrichments) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RoutingEnrichments.
type RoutingIdentityInfo ¶
type RoutingIdentityInfo struct {
// Routing identity type for topic spaces configuration.
Type *RoutingIdentityType
UserAssignedIdentity *string
}
RoutingIdentityInfo - Routing identity info for topic spaces configuration.
func (RoutingIdentityInfo) MarshalJSON ¶
func (r RoutingIdentityInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RoutingIdentityInfo.
func (*RoutingIdentityInfo) UnmarshalJSON ¶
func (r *RoutingIdentityInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RoutingIdentityInfo.
type RoutingIdentityType ¶
type RoutingIdentityType string
RoutingIdentityType - Routing identity type for topic spaces configuration.
const ( RoutingIdentityTypeNone RoutingIdentityType = "None" RoutingIdentityTypeSystemAssigned RoutingIdentityType = "SystemAssigned" RoutingIdentityTypeUserAssigned RoutingIdentityType = "UserAssigned" )
func PossibleRoutingIdentityTypeValues ¶
func PossibleRoutingIdentityTypeValues() []RoutingIdentityType
PossibleRoutingIdentityTypeValues returns the possible values for the RoutingIdentityType const type.
type SKU ¶
type SKU string
SKU - The Sku name of the resource. The possible values are: Basic or Premium.
func PossibleSKUValues ¶
func PossibleSKUValues() []SKU
PossibleSKUValues returns the possible values for the SKU const type.
type SKUName ¶
type SKUName string
SKUName - The name of the SKU.
const (
SKUNameStandard SKUName = "Standard"
)
func PossibleSKUNameValues ¶
func PossibleSKUNameValues() []SKUName
PossibleSKUNameValues returns the possible values for the SKUName const type.
type ServiceBusQueueEventSubscriptionDestination ¶
type ServiceBusQueueEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// Service Bus Properties of the event subscription destination.
Properties *ServiceBusQueueEventSubscriptionDestinationProperties
}
ServiceBusQueueEventSubscriptionDestination - Information about the service bus destination for an event subscription.
func (*ServiceBusQueueEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (s *ServiceBusQueueEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type ServiceBusQueueEventSubscriptionDestination.
func (ServiceBusQueueEventSubscriptionDestination) MarshalJSON ¶
func (s ServiceBusQueueEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceBusQueueEventSubscriptionDestination.
func (*ServiceBusQueueEventSubscriptionDestination) UnmarshalJSON ¶
func (s *ServiceBusQueueEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBusQueueEventSubscriptionDestination.
type ServiceBusQueueEventSubscriptionDestinationProperties ¶
type ServiceBusQueueEventSubscriptionDestinationProperties struct {
// Delivery attribute details.
DeliveryAttributeMappings []DeliveryAttributeMappingClassification
// The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.
ResourceID *string
}
ServiceBusQueueEventSubscriptionDestinationProperties - The properties that represent the Service Bus destination of an event subscription.
func (ServiceBusQueueEventSubscriptionDestinationProperties) MarshalJSON ¶
func (s ServiceBusQueueEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceBusQueueEventSubscriptionDestinationProperties.
func (*ServiceBusQueueEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (s *ServiceBusQueueEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBusQueueEventSubscriptionDestinationProperties.
type ServiceBusTopicEventSubscriptionDestination ¶
type ServiceBusTopicEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// Service Bus Topic Properties of the event subscription destination.
Properties *ServiceBusTopicEventSubscriptionDestinationProperties
}
ServiceBusTopicEventSubscriptionDestination - Information about the service bus topic destination for an event subscription.
func (*ServiceBusTopicEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (s *ServiceBusTopicEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type ServiceBusTopicEventSubscriptionDestination.
func (ServiceBusTopicEventSubscriptionDestination) MarshalJSON ¶
func (s ServiceBusTopicEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceBusTopicEventSubscriptionDestination.
func (*ServiceBusTopicEventSubscriptionDestination) UnmarshalJSON ¶
func (s *ServiceBusTopicEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBusTopicEventSubscriptionDestination.
type ServiceBusTopicEventSubscriptionDestinationProperties ¶
type ServiceBusTopicEventSubscriptionDestinationProperties struct {
// Delivery attribute details.
DeliveryAttributeMappings []DeliveryAttributeMappingClassification
// The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event subscription.
ResourceID *string
}
ServiceBusTopicEventSubscriptionDestinationProperties - The properties that represent the Service Bus Topic destination of an event subscription.
func (ServiceBusTopicEventSubscriptionDestinationProperties) MarshalJSON ¶
func (s ServiceBusTopicEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceBusTopicEventSubscriptionDestinationProperties.
func (*ServiceBusTopicEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (s *ServiceBusTopicEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBusTopicEventSubscriptionDestinationProperties.
type StaticDeliveryAttributeMapping ¶
type StaticDeliveryAttributeMapping struct {
// REQUIRED; Type of the delivery attribute or header name.
Type *DeliveryAttributeMappingType
// Name of the delivery attribute or header.
Name *string
// Properties of static delivery attribute mapping.
Properties *StaticDeliveryAttributeMappingProperties
}
StaticDeliveryAttributeMapping - Static delivery attribute mapping details.
func (*StaticDeliveryAttributeMapping) GetDeliveryAttributeMapping ¶
func (s *StaticDeliveryAttributeMapping) GetDeliveryAttributeMapping() *DeliveryAttributeMapping
GetDeliveryAttributeMapping implements the DeliveryAttributeMappingClassification interface for type StaticDeliveryAttributeMapping.
func (StaticDeliveryAttributeMapping) MarshalJSON ¶
func (s StaticDeliveryAttributeMapping) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StaticDeliveryAttributeMapping.
func (*StaticDeliveryAttributeMapping) UnmarshalJSON ¶
func (s *StaticDeliveryAttributeMapping) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StaticDeliveryAttributeMapping.
type StaticDeliveryAttributeMappingProperties ¶
type StaticDeliveryAttributeMappingProperties struct {
// Boolean flag to tell if the attribute contains sensitive information .
IsSecret *bool
// Value of the delivery attribute.
Value *string
}
StaticDeliveryAttributeMappingProperties - Properties of static delivery attribute mapping.
func (StaticDeliveryAttributeMappingProperties) MarshalJSON ¶
func (s StaticDeliveryAttributeMappingProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StaticDeliveryAttributeMappingProperties.
func (*StaticDeliveryAttributeMappingProperties) UnmarshalJSON ¶
func (s *StaticDeliveryAttributeMappingProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StaticDeliveryAttributeMappingProperties.
type StaticRoutingEnrichment ¶
type StaticRoutingEnrichment struct {
// REQUIRED; Static routing enrichment value type. For e.g. this property value can be 'String'.
ValueType *StaticRoutingEnrichmentType
// Static routing enrichment key.
Key *string
}
StaticRoutingEnrichment - Static routing enrichment details.
func (*StaticRoutingEnrichment) GetStaticRoutingEnrichment ¶
func (s *StaticRoutingEnrichment) GetStaticRoutingEnrichment() *StaticRoutingEnrichment
GetStaticRoutingEnrichment implements the StaticRoutingEnrichmentClassification interface for type StaticRoutingEnrichment.
func (StaticRoutingEnrichment) MarshalJSON ¶
func (s StaticRoutingEnrichment) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StaticRoutingEnrichment.
func (*StaticRoutingEnrichment) UnmarshalJSON ¶
func (s *StaticRoutingEnrichment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StaticRoutingEnrichment.
type StaticRoutingEnrichmentClassification ¶
type StaticRoutingEnrichmentClassification interface {
// GetStaticRoutingEnrichment returns the StaticRoutingEnrichment content of the underlying type.
GetStaticRoutingEnrichment() *StaticRoutingEnrichment
}
StaticRoutingEnrichmentClassification provides polymorphic access to related types. Call the interface's GetStaticRoutingEnrichment() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *StaticRoutingEnrichment, *StaticStringRoutingEnrichment
type StaticRoutingEnrichmentType ¶
type StaticRoutingEnrichmentType string
StaticRoutingEnrichmentType - Static routing enrichment value type. For e.g. this property value can be 'String'.
const (
StaticRoutingEnrichmentTypeString StaticRoutingEnrichmentType = "String"
)
func PossibleStaticRoutingEnrichmentTypeValues ¶
func PossibleStaticRoutingEnrichmentTypeValues() []StaticRoutingEnrichmentType
PossibleStaticRoutingEnrichmentTypeValues returns the possible values for the StaticRoutingEnrichmentType const type.
type StaticStringRoutingEnrichment ¶
type StaticStringRoutingEnrichment struct {
// REQUIRED; Static routing enrichment value type. For e.g. this property value can be 'String'.
ValueType *StaticRoutingEnrichmentType
// Static routing enrichment key.
Key *string
// String type routing enrichment value.
Value *string
}
func (*StaticStringRoutingEnrichment) GetStaticRoutingEnrichment ¶
func (s *StaticStringRoutingEnrichment) GetStaticRoutingEnrichment() *StaticRoutingEnrichment
GetStaticRoutingEnrichment implements the StaticRoutingEnrichmentClassification interface for type StaticStringRoutingEnrichment.
func (StaticStringRoutingEnrichment) MarshalJSON ¶
func (s StaticStringRoutingEnrichment) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StaticStringRoutingEnrichment.
func (*StaticStringRoutingEnrichment) UnmarshalJSON ¶
func (s *StaticStringRoutingEnrichment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StaticStringRoutingEnrichment.
type StorageBlobDeadLetterDestination ¶
type StorageBlobDeadLetterDestination struct {
// REQUIRED; Type of the endpoint for the dead letter destination
EndpointType *DeadLetterEndPointType
// The properties of the Storage Blob based deadletter destination
Properties *StorageBlobDeadLetterDestinationProperties
}
StorageBlobDeadLetterDestination - Information about the storage blob based dead letter destination.
func (*StorageBlobDeadLetterDestination) GetDeadLetterDestination ¶
func (s *StorageBlobDeadLetterDestination) GetDeadLetterDestination() *DeadLetterDestination
GetDeadLetterDestination implements the DeadLetterDestinationClassification interface for type StorageBlobDeadLetterDestination.
func (StorageBlobDeadLetterDestination) MarshalJSON ¶
func (s StorageBlobDeadLetterDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageBlobDeadLetterDestination.
func (*StorageBlobDeadLetterDestination) UnmarshalJSON ¶
func (s *StorageBlobDeadLetterDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageBlobDeadLetterDestination.
type StorageBlobDeadLetterDestinationProperties ¶
type StorageBlobDeadLetterDestinationProperties struct {
// The name of the Storage blob container that is the destination of the deadletter events
BlobContainerName *string
// The Azure Resource ID of the storage account that is the destination of the deadletter events
ResourceID *string
}
StorageBlobDeadLetterDestinationProperties - Properties of the storage blob based dead letter destination.
func (StorageBlobDeadLetterDestinationProperties) MarshalJSON ¶
func (s StorageBlobDeadLetterDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageBlobDeadLetterDestinationProperties.
func (*StorageBlobDeadLetterDestinationProperties) UnmarshalJSON ¶
func (s *StorageBlobDeadLetterDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageBlobDeadLetterDestinationProperties.
type StorageQueueEventSubscriptionDestination ¶
type StorageQueueEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// Storage Queue Properties of the event subscription destination.
Properties *StorageQueueEventSubscriptionDestinationProperties
}
StorageQueueEventSubscriptionDestination - Information about the storage queue destination for an event subscription.
func (*StorageQueueEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (s *StorageQueueEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type StorageQueueEventSubscriptionDestination.
func (StorageQueueEventSubscriptionDestination) MarshalJSON ¶
func (s StorageQueueEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageQueueEventSubscriptionDestination.
func (*StorageQueueEventSubscriptionDestination) UnmarshalJSON ¶
func (s *StorageQueueEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageQueueEventSubscriptionDestination.
type StorageQueueEventSubscriptionDestinationProperties ¶
type StorageQueueEventSubscriptionDestinationProperties struct {
// Storage queue message time to live in seconds. This value cannot be zero or negative with the exception of using -1 to
// indicate that the Time To Live of the message is Infinite.
QueueMessageTimeToLiveInSeconds *int64
// The name of the Storage queue under a storage account that is the destination of an event subscription.
QueueName *string
// The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.
ResourceID *string
}
StorageQueueEventSubscriptionDestinationProperties - The properties for a storage queue destination.
func (StorageQueueEventSubscriptionDestinationProperties) MarshalJSON ¶
func (s StorageQueueEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageQueueEventSubscriptionDestinationProperties.
func (*StorageQueueEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (s *StorageQueueEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageQueueEventSubscriptionDestinationProperties.
type StringBeginsWithAdvancedFilter ¶
type StringBeginsWithAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringBeginsWithAdvancedFilter - StringBeginsWith Advanced Filter.
func (*StringBeginsWithAdvancedFilter) GetAdvancedFilter ¶
func (s *StringBeginsWithAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type StringBeginsWithAdvancedFilter.
func (StringBeginsWithAdvancedFilter) MarshalJSON ¶
func (s StringBeginsWithAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringBeginsWithAdvancedFilter.
func (*StringBeginsWithAdvancedFilter) UnmarshalJSON ¶
func (s *StringBeginsWithAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringBeginsWithAdvancedFilter.
type StringBeginsWithFilter ¶
type StringBeginsWithFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringBeginsWithFilter - StringBeginsWith Filter.
func (*StringBeginsWithFilter) GetFilter ¶
func (s *StringBeginsWithFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type StringBeginsWithFilter.
func (StringBeginsWithFilter) MarshalJSON ¶
func (s StringBeginsWithFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringBeginsWithFilter.
func (*StringBeginsWithFilter) UnmarshalJSON ¶
func (s *StringBeginsWithFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringBeginsWithFilter.
type StringContainsAdvancedFilter ¶
type StringContainsAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringContainsAdvancedFilter - StringContains Advanced Filter.
func (*StringContainsAdvancedFilter) GetAdvancedFilter ¶
func (s *StringContainsAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type StringContainsAdvancedFilter.
func (StringContainsAdvancedFilter) MarshalJSON ¶
func (s StringContainsAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringContainsAdvancedFilter.
func (*StringContainsAdvancedFilter) UnmarshalJSON ¶
func (s *StringContainsAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringContainsAdvancedFilter.
type StringContainsFilter ¶
type StringContainsFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringContainsFilter - StringContains Filter.
func (*StringContainsFilter) GetFilter ¶
func (s *StringContainsFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type StringContainsFilter.
func (StringContainsFilter) MarshalJSON ¶
func (s StringContainsFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringContainsFilter.
func (*StringContainsFilter) UnmarshalJSON ¶
func (s *StringContainsFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringContainsFilter.
type StringEndsWithAdvancedFilter ¶
type StringEndsWithAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringEndsWithAdvancedFilter - StringEndsWith Advanced Filter.
func (*StringEndsWithAdvancedFilter) GetAdvancedFilter ¶
func (s *StringEndsWithAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type StringEndsWithAdvancedFilter.
func (StringEndsWithAdvancedFilter) MarshalJSON ¶
func (s StringEndsWithAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringEndsWithAdvancedFilter.
func (*StringEndsWithAdvancedFilter) UnmarshalJSON ¶
func (s *StringEndsWithAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringEndsWithAdvancedFilter.
type StringEndsWithFilter ¶
type StringEndsWithFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringEndsWithFilter - StringEndsWith Filter.
func (*StringEndsWithFilter) GetFilter ¶
func (s *StringEndsWithFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type StringEndsWithFilter.
func (StringEndsWithFilter) MarshalJSON ¶
func (s StringEndsWithFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringEndsWithFilter.
func (*StringEndsWithFilter) UnmarshalJSON ¶
func (s *StringEndsWithFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringEndsWithFilter.
type StringInAdvancedFilter ¶
type StringInAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringInAdvancedFilter - StringIn Advanced Filter.
func (*StringInAdvancedFilter) GetAdvancedFilter ¶
func (s *StringInAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type StringInAdvancedFilter.
func (StringInAdvancedFilter) MarshalJSON ¶
func (s StringInAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringInAdvancedFilter.
func (*StringInAdvancedFilter) UnmarshalJSON ¶
func (s *StringInAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringInAdvancedFilter.
type StringInFilter ¶
type StringInFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringInFilter - StringIn Filter.
func (*StringInFilter) GetFilter ¶
func (s *StringInFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type StringInFilter.
func (StringInFilter) MarshalJSON ¶
func (s StringInFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringInFilter.
func (*StringInFilter) UnmarshalJSON ¶
func (s *StringInFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringInFilter.
type StringNotBeginsWithAdvancedFilter ¶
type StringNotBeginsWithAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringNotBeginsWithAdvancedFilter - StringNotBeginsWith Advanced Filter.
func (*StringNotBeginsWithAdvancedFilter) GetAdvancedFilter ¶
func (s *StringNotBeginsWithAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type StringNotBeginsWithAdvancedFilter.
func (StringNotBeginsWithAdvancedFilter) MarshalJSON ¶
func (s StringNotBeginsWithAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringNotBeginsWithAdvancedFilter.
func (*StringNotBeginsWithAdvancedFilter) UnmarshalJSON ¶
func (s *StringNotBeginsWithAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringNotBeginsWithAdvancedFilter.
type StringNotBeginsWithFilter ¶
type StringNotBeginsWithFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringNotBeginsWithFilter - StringNotBeginsWith Filter.
func (*StringNotBeginsWithFilter) GetFilter ¶
func (s *StringNotBeginsWithFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type StringNotBeginsWithFilter.
func (StringNotBeginsWithFilter) MarshalJSON ¶
func (s StringNotBeginsWithFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringNotBeginsWithFilter.
func (*StringNotBeginsWithFilter) UnmarshalJSON ¶
func (s *StringNotBeginsWithFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringNotBeginsWithFilter.
type StringNotContainsAdvancedFilter ¶
type StringNotContainsAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringNotContainsAdvancedFilter - StringNotContains Advanced Filter.
func (*StringNotContainsAdvancedFilter) GetAdvancedFilter ¶
func (s *StringNotContainsAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type StringNotContainsAdvancedFilter.
func (StringNotContainsAdvancedFilter) MarshalJSON ¶
func (s StringNotContainsAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringNotContainsAdvancedFilter.
func (*StringNotContainsAdvancedFilter) UnmarshalJSON ¶
func (s *StringNotContainsAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringNotContainsAdvancedFilter.
type StringNotContainsFilter ¶
type StringNotContainsFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringNotContainsFilter - StringNotContains Filter.
func (*StringNotContainsFilter) GetFilter ¶
func (s *StringNotContainsFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type StringNotContainsFilter.
func (StringNotContainsFilter) MarshalJSON ¶
func (s StringNotContainsFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringNotContainsFilter.
func (*StringNotContainsFilter) UnmarshalJSON ¶
func (s *StringNotContainsFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringNotContainsFilter.
type StringNotEndsWithAdvancedFilter ¶
type StringNotEndsWithAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringNotEndsWithAdvancedFilter - StringNotEndsWith Advanced Filter.
func (*StringNotEndsWithAdvancedFilter) GetAdvancedFilter ¶
func (s *StringNotEndsWithAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type StringNotEndsWithAdvancedFilter.
func (StringNotEndsWithAdvancedFilter) MarshalJSON ¶
func (s StringNotEndsWithAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringNotEndsWithAdvancedFilter.
func (*StringNotEndsWithAdvancedFilter) UnmarshalJSON ¶
func (s *StringNotEndsWithAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringNotEndsWithAdvancedFilter.
type StringNotEndsWithFilter ¶
type StringNotEndsWithFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringNotEndsWithFilter - StringNotEndsWith Filter.
func (*StringNotEndsWithFilter) GetFilter ¶
func (s *StringNotEndsWithFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type StringNotEndsWithFilter.
func (StringNotEndsWithFilter) MarshalJSON ¶
func (s StringNotEndsWithFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringNotEndsWithFilter.
func (*StringNotEndsWithFilter) UnmarshalJSON ¶
func (s *StringNotEndsWithFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringNotEndsWithFilter.
type StringNotInAdvancedFilter ¶
type StringNotInAdvancedFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *AdvancedFilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringNotInAdvancedFilter - StringNotIn Advanced Filter.
func (*StringNotInAdvancedFilter) GetAdvancedFilter ¶
func (s *StringNotInAdvancedFilter) GetAdvancedFilter() *AdvancedFilter
GetAdvancedFilter implements the AdvancedFilterClassification interface for type StringNotInAdvancedFilter.
func (StringNotInAdvancedFilter) MarshalJSON ¶
func (s StringNotInAdvancedFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringNotInAdvancedFilter.
func (*StringNotInAdvancedFilter) UnmarshalJSON ¶
func (s *StringNotInAdvancedFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringNotInAdvancedFilter.
type StringNotInFilter ¶
type StringNotInFilter struct {
// REQUIRED; The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
OperatorType *FilterOperatorType
// The field/property in the event based on which you want to filter.
Key *string
// The set of filter values.
Values []*string
}
StringNotInFilter - StringNotIn Filter.
func (*StringNotInFilter) GetFilter ¶
func (s *StringNotInFilter) GetFilter() *Filter
GetFilter implements the FilterClassification interface for type StringNotInFilter.
func (StringNotInFilter) MarshalJSON ¶
func (s StringNotInFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StringNotInFilter.
func (*StringNotInFilter) UnmarshalJSON ¶
func (s *StringNotInFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StringNotInFilter.
type Subscription ¶
type Subscription struct {
// Properties of the event subscription.
Properties *SubscriptionProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Event Subscription resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
Subscription - Event Subscription.
func (Subscription) MarshalJSON ¶
func (s Subscription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Subscription.
func (*Subscription) UnmarshalJSON ¶
func (s *Subscription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Subscription.
type SubscriptionFullURL ¶
type SubscriptionFullURL struct {
// The URL that represents the endpoint of the destination of an event subscription.
EndpointURL *string
}
SubscriptionFullURL - Full endpoint URL of an event subscription
func (SubscriptionFullURL) MarshalJSON ¶
func (s SubscriptionFullURL) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionFullURL.
func (*SubscriptionFullURL) UnmarshalJSON ¶
func (s *SubscriptionFullURL) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionFullURL.
type SubscriptionProperties ¶
type SubscriptionProperties struct {
// Information about the delivery configuration of the event subscription.
DeliveryConfiguration *DeliveryConfiguration
// The event delivery schema for the event subscription.
EventDeliverySchema *DeliverySchema
// Expiration time of the event subscription.
ExpirationTimeUTC *time.Time
// Information about the filter for the event subscription.
FiltersConfiguration *FiltersConfiguration
// READ-ONLY; Provisioning state of the event subscription.
ProvisioningState *SubscriptionProvisioningState
}
SubscriptionProperties - Properties of the event subscription.
func (SubscriptionProperties) MarshalJSON ¶
func (s SubscriptionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionProperties.
func (*SubscriptionProperties) UnmarshalJSON ¶
func (s *SubscriptionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionProperties.
type SubscriptionProvisioningState ¶
type SubscriptionProvisioningState string
SubscriptionProvisioningState - Provisioning state of the event subscription.
const ( SubscriptionProvisioningStateAwaitingManualAction SubscriptionProvisioningState = "AwaitingManualAction" SubscriptionProvisioningStateCanceled SubscriptionProvisioningState = "Canceled" SubscriptionProvisioningStateCreateFailed SubscriptionProvisioningState = "CreateFailed" SubscriptionProvisioningStateCreating SubscriptionProvisioningState = "Creating" SubscriptionProvisioningStateDeleteFailed SubscriptionProvisioningState = "DeleteFailed" SubscriptionProvisioningStateDeleted SubscriptionProvisioningState = "Deleted" SubscriptionProvisioningStateDeleting SubscriptionProvisioningState = "Deleting" SubscriptionProvisioningStateFailed SubscriptionProvisioningState = "Failed" SubscriptionProvisioningStateSucceeded SubscriptionProvisioningState = "Succeeded" SubscriptionProvisioningStateUpdatedFailed SubscriptionProvisioningState = "UpdatedFailed" SubscriptionProvisioningStateUpdating SubscriptionProvisioningState = "Updating" )
func PossibleSubscriptionProvisioningStateValues ¶
func PossibleSubscriptionProvisioningStateValues() []SubscriptionProvisioningState
PossibleSubscriptionProvisioningStateValues returns the possible values for the SubscriptionProvisioningState const type.
type SubscriptionUpdateParameters ¶
type SubscriptionUpdateParameters struct {
// Properties of the Event Subscription update parameters.
Properties *SubscriptionUpdateParametersProperties
}
SubscriptionUpdateParameters - Properties of the Event Subscription update.
func (SubscriptionUpdateParameters) MarshalJSON ¶
func (s SubscriptionUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionUpdateParameters.
func (*SubscriptionUpdateParameters) UnmarshalJSON ¶
func (s *SubscriptionUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionUpdateParameters.
type SubscriptionUpdateParametersProperties ¶
type SubscriptionUpdateParametersProperties struct {
// Information about the delivery configuration of the event subscription.
DeliveryConfiguration *DeliveryConfiguration
// The event delivery schema for the event subscription.
EventDeliverySchema *DeliverySchema
// Expiration time of the event subscription.
ExpirationTimeUTC *time.Time
// Information about the filter for the event subscription.
FiltersConfiguration *FiltersConfiguration
}
SubscriptionUpdateParametersProperties - Properties of the Event Subscription update parameters.
func (SubscriptionUpdateParametersProperties) MarshalJSON ¶
func (s SubscriptionUpdateParametersProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionUpdateParametersProperties.
func (*SubscriptionUpdateParametersProperties) UnmarshalJSON ¶
func (s *SubscriptionUpdateParametersProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionUpdateParametersProperties.
type SubscriptionsListResult ¶
type SubscriptionsListResult struct {
// A link for the next page of event subscriptions
NextLink *string
// A collection of Subscriptions.
Value []*Subscription
}
SubscriptionsListResult - Result of the List event subscriptions operation.
func (SubscriptionsListResult) MarshalJSON ¶
func (s SubscriptionsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionsListResult.
func (*SubscriptionsListResult) UnmarshalJSON ¶
func (s *SubscriptionsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionsListResult.
type SystemData ¶
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
}
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type SystemTopic ¶
type SystemTopic struct {
// REQUIRED; Location of the resource.
Location *string
// Identity information for the resource.
Identity *IdentityInfo
// Properties of the system topic.
Properties *SystemTopicProperties
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to System Topic resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
SystemTopic - EventGrid System Topic.
func (SystemTopic) MarshalJSON ¶
func (s SystemTopic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemTopic.
func (*SystemTopic) UnmarshalJSON ¶
func (s *SystemTopic) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemTopic.
type SystemTopicEventSubscriptionsClient ¶
type SystemTopicEventSubscriptionsClient struct {
// contains filtered or unexported fields
}
SystemTopicEventSubscriptionsClient contains the methods for the SystemTopicEventSubscriptions group. Don't use this type directly, use NewSystemTopicEventSubscriptionsClient() instead.
func NewSystemTopicEventSubscriptionsClient ¶
func NewSystemTopicEventSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SystemTopicEventSubscriptionsClient, error)
NewSystemTopicEventSubscriptionsClient creates a new instance of SystemTopicEventSubscriptionsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SystemTopicEventSubscriptionsClient) BeginCreateOrUpdate ¶
func (client *SystemTopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, systemTopicName string, eventSubscriptionName string, eventSubscriptionInfo EventSubscription, options *SystemTopicEventSubscriptionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[SystemTopicEventSubscriptionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates or updates an event subscription with the specified parameters. Existing event subscriptions will be updated with this API. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- eventSubscriptionName - Name of the event subscription to be created. Event subscription names must be between 3 and 64 characters in length and use alphanumeric letters only.
- eventSubscriptionInfo - Event subscription properties containing the destination and filter information.
- options - SystemTopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSystemTopicEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleSystemTopic1", "exampleEventSubscriptionName1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
func (*SystemTopicEventSubscriptionsClient) BeginDelete ¶
func (client *SystemTopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, systemTopicName string, eventSubscriptionName string, options *SystemTopicEventSubscriptionsClientBeginDeleteOptions) (*runtime.Poller[SystemTopicEventSubscriptionsClientDeleteResponse], error)
BeginDelete - Delete an existing event subscription of a system topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- eventSubscriptionName - Name of the event subscription to be deleted.
- options - SystemTopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSystemTopicEventSubscriptionsClient().BeginDelete(ctx, "examplerg", "exampleSystemTopic1", "examplesubscription1", 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)
}
func (*SystemTopicEventSubscriptionsClient) BeginUpdate ¶
func (client *SystemTopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, systemTopicName string, eventSubscriptionName string, eventSubscriptionUpdateParameters EventSubscriptionUpdateParameters, options *SystemTopicEventSubscriptionsClientBeginUpdateOptions) (*runtime.Poller[SystemTopicEventSubscriptionsClientUpdateResponse], error)
BeginUpdate - Update an existing event subscription of a system topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- eventSubscriptionName - Name of the event subscription to be updated.
- eventSubscriptionUpdateParameters - Updated event subscription information.
- options - SystemTopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSystemTopicEventSubscriptionsClient().BeginUpdate(ctx, "examplerg", "exampleSystemTopic1", "exampleEventSubscriptionName1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
func (*SystemTopicEventSubscriptionsClient) Get ¶
func (client *SystemTopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, systemTopicName string, eventSubscriptionName string, options *SystemTopicEventSubscriptionsClientGetOptions) (SystemTopicEventSubscriptionsClientGetResponse, error)
Get - Get an event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- eventSubscriptionName - Name of the event subscription to be found.
- options - SystemTopicEventSubscriptionsClientGetOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSystemTopicEventSubscriptionsClient().Get(ctx, "examplerg", "exampleSystemTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/systemTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic1"),
// },
// }
func (*SystemTopicEventSubscriptionsClient) GetDeliveryAttributes ¶
func (client *SystemTopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, systemTopicName string, eventSubscriptionName string, options *SystemTopicEventSubscriptionsClientGetDeliveryAttributesOptions) (SystemTopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
GetDeliveryAttributes - Get all delivery attributes for an event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- eventSubscriptionName - Name of the event subscription.
- options - SystemTopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.GetDeliveryAttributes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_GetDeliveryAttributes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSystemTopicEventSubscriptionsClient().GetDeliveryAttributes(ctx, "examplerg", "exampleSystemTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.DeliveryAttributeListResult = armeventgrid.DeliveryAttributeListResult{
// Value: []armeventgrid.DeliveryAttributeMappingClassification{
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header1"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(false),
// Value: to.Ptr("NormalValue"),
// },
// },
// &armeventgrid.DynamicDeliveryAttributeMapping{
// Name: to.Ptr("header2"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeDynamic),
// Properties: &armeventgrid.DynamicDeliveryAttributeMappingProperties{
// SourceField: to.Ptr("data.foo"),
// },
// },
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header3"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(true),
// Value: to.Ptr("mySecretValue"),
// },
// }},
// }
func (*SystemTopicEventSubscriptionsClient) GetFullURL ¶
func (client *SystemTopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, systemTopicName string, eventSubscriptionName string, options *SystemTopicEventSubscriptionsClientGetFullURLOptions) (SystemTopicEventSubscriptionsClientGetFullURLResponse, error)
GetFullURL - Get the full endpoint URL for an event subscription of a system topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- eventSubscriptionName - Name of the event subscription.
- options - SystemTopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.GetFullURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_GetFullUrl.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSystemTopicEventSubscriptionsClient().GetFullURL(ctx, "examplerg", "exampleSystemTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
func (*SystemTopicEventSubscriptionsClient) NewListBySystemTopicPager ¶
func (client *SystemTopicEventSubscriptionsClient) NewListBySystemTopicPager(resourceGroupName string, systemTopicName string, options *SystemTopicEventSubscriptionsClientListBySystemTopicOptions) *runtime.Pager[SystemTopicEventSubscriptionsClientListBySystemTopicResponse]
NewListBySystemTopicPager - List event subscriptions that belong to a specific system topic.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- options - SystemTopicEventSubscriptionsClientListBySystemTopicOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.NewListBySystemTopicPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_ListBySystemTopic.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewSystemTopicEventSubscriptionsClient().NewListBySystemTopicPager("examplerg", "exampleSystemTopic1", &armeventgrid.SystemTopicEventSubscriptionsClientListBySystemTopicOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/systemTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// SubjectBeginsWith: to.Ptr(""),
// SubjectEndsWith: to.Ptr(""),
// },
// Labels: []*string{
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](10),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic1"),
// },
// },
// {
// Name: to.Ptr("examplesubscription2"),
// Type: to.Ptr("Microsoft.EventGrid/systemTopics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic1/eventSubscriptions/examplesubscription2"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic1"),
// },
// }},
// }
}
type SystemTopicEventSubscriptionsClientBeginCreateOrUpdateOptions ¶
type SystemTopicEventSubscriptionsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SystemTopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.BeginCreateOrUpdate method.
type SystemTopicEventSubscriptionsClientBeginDeleteOptions ¶
type SystemTopicEventSubscriptionsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SystemTopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.BeginDelete method.
type SystemTopicEventSubscriptionsClientBeginUpdateOptions ¶
type SystemTopicEventSubscriptionsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SystemTopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.BeginUpdate method.
type SystemTopicEventSubscriptionsClientCreateOrUpdateResponse ¶
type SystemTopicEventSubscriptionsClientCreateOrUpdateResponse struct {
// Event Subscription.
EventSubscription
}
SystemTopicEventSubscriptionsClientCreateOrUpdateResponse contains the response from method SystemTopicEventSubscriptionsClient.BeginCreateOrUpdate.
type SystemTopicEventSubscriptionsClientDeleteResponse ¶
type SystemTopicEventSubscriptionsClientDeleteResponse struct {
}
SystemTopicEventSubscriptionsClientDeleteResponse contains the response from method SystemTopicEventSubscriptionsClient.BeginDelete.
type SystemTopicEventSubscriptionsClientGetDeliveryAttributesOptions ¶
type SystemTopicEventSubscriptionsClientGetDeliveryAttributesOptions struct {
}
SystemTopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.GetDeliveryAttributes method.
type SystemTopicEventSubscriptionsClientGetDeliveryAttributesResponse ¶
type SystemTopicEventSubscriptionsClientGetDeliveryAttributesResponse struct {
// Result of the Get delivery attributes operation.
DeliveryAttributeListResult
}
SystemTopicEventSubscriptionsClientGetDeliveryAttributesResponse contains the response from method SystemTopicEventSubscriptionsClient.GetDeliveryAttributes.
type SystemTopicEventSubscriptionsClientGetFullURLOptions ¶
type SystemTopicEventSubscriptionsClientGetFullURLOptions struct {
}
SystemTopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.GetFullURL method.
type SystemTopicEventSubscriptionsClientGetFullURLResponse ¶
type SystemTopicEventSubscriptionsClientGetFullURLResponse struct {
// Full endpoint URL of an event subscription
EventSubscriptionFullURL
}
SystemTopicEventSubscriptionsClientGetFullURLResponse contains the response from method SystemTopicEventSubscriptionsClient.GetFullURL.
type SystemTopicEventSubscriptionsClientGetOptions ¶
type SystemTopicEventSubscriptionsClientGetOptions struct {
}
SystemTopicEventSubscriptionsClientGetOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.Get method.
type SystemTopicEventSubscriptionsClientGetResponse ¶
type SystemTopicEventSubscriptionsClientGetResponse struct {
// Event Subscription.
EventSubscription
}
SystemTopicEventSubscriptionsClientGetResponse contains the response from method SystemTopicEventSubscriptionsClient.Get.
type SystemTopicEventSubscriptionsClientListBySystemTopicOptions ¶
type SystemTopicEventSubscriptionsClientListBySystemTopicOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
SystemTopicEventSubscriptionsClientListBySystemTopicOptions contains the optional parameters for the SystemTopicEventSubscriptionsClient.NewListBySystemTopicPager method.
type SystemTopicEventSubscriptionsClientListBySystemTopicResponse ¶
type SystemTopicEventSubscriptionsClientListBySystemTopicResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
SystemTopicEventSubscriptionsClientListBySystemTopicResponse contains the response from method SystemTopicEventSubscriptionsClient.NewListBySystemTopicPager.
type SystemTopicEventSubscriptionsClientUpdateResponse ¶
type SystemTopicEventSubscriptionsClientUpdateResponse struct {
// Event Subscription.
EventSubscription
}
SystemTopicEventSubscriptionsClientUpdateResponse contains the response from method SystemTopicEventSubscriptionsClient.BeginUpdate.
type SystemTopicProperties ¶
type SystemTopicProperties struct {
// Source for the system topic.
Source *string
// TopicType for the system topic.
TopicType *string
// READ-ONLY; Metric resource id for the system topic.
MetricResourceID *string
// READ-ONLY; Provisioning state of the system topic.
ProvisioningState *ResourceProvisioningState
}
SystemTopicProperties - Properties of the System Topic.
func (SystemTopicProperties) MarshalJSON ¶
func (s SystemTopicProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemTopicProperties.
func (*SystemTopicProperties) UnmarshalJSON ¶
func (s *SystemTopicProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemTopicProperties.
type SystemTopicUpdateParameters ¶
type SystemTopicUpdateParameters struct {
// Resource identity information.
Identity *IdentityInfo
// Tags of the system topic.
Tags map[string]*string
}
SystemTopicUpdateParameters - Properties of the System Topic update.
func (SystemTopicUpdateParameters) MarshalJSON ¶
func (s SystemTopicUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemTopicUpdateParameters.
func (*SystemTopicUpdateParameters) UnmarshalJSON ¶
func (s *SystemTopicUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemTopicUpdateParameters.
type SystemTopicsClient ¶
type SystemTopicsClient struct {
// contains filtered or unexported fields
}
SystemTopicsClient contains the methods for the SystemTopics group. Don't use this type directly, use NewSystemTopicsClient() instead.
func NewSystemTopicsClient ¶
func NewSystemTopicsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SystemTopicsClient, error)
NewSystemTopicsClient creates a new instance of SystemTopicsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SystemTopicsClient) BeginCreateOrUpdate ¶
func (client *SystemTopicsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, systemTopicName string, systemTopicInfo SystemTopic, options *SystemTopicsClientBeginCreateOrUpdateOptions) (*runtime.Poller[SystemTopicsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates a new system topic with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- systemTopicInfo - System Topic information.
- options - SystemTopicsClientBeginCreateOrUpdateOptions contains the optional parameters for the SystemTopicsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSystemTopicsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleSystemTopic1", armeventgrid.SystemTopic{
Location: to.Ptr("westus2"),
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
Properties: &armeventgrid.SystemTopicProperties{
Source: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e"),
TopicType: to.Ptr("microsoft.storage.storageaccounts"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SystemTopic = armeventgrid.SystemTopic{
// Name: to.Ptr("exampleSystemTopic2"),
// Type: to.Ptr("Microsoft.EventGrid/systemTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic2"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.SystemTopicProperties{
// MetricResourceID: to.Ptr("183c0fb1-17ff-47b6-ac77-5a47420ab01e"),
// ProvisioningState: to.Ptr(armeventgrid.ResourceProvisioningStateSucceeded),
// Source: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e"),
// TopicType: to.Ptr("microsoft.storage.storageaccounts"),
// },
// }
func (*SystemTopicsClient) BeginDelete ¶
func (client *SystemTopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, systemTopicName string, options *SystemTopicsClientBeginDeleteOptions) (*runtime.Poller[SystemTopicsClientDeleteResponse], error)
BeginDelete - Delete existing system topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- options - SystemTopicsClientBeginDeleteOptions contains the optional parameters for the SystemTopicsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSystemTopicsClient().BeginDelete(ctx, "examplerg", "exampleSystemTopic1", 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)
}
func (*SystemTopicsClient) BeginUpdate ¶
func (client *SystemTopicsClient) BeginUpdate(ctx context.Context, resourceGroupName string, systemTopicName string, systemTopicUpdateParameters SystemTopicUpdateParameters, options *SystemTopicsClientBeginUpdateOptions) (*runtime.Poller[SystemTopicsClientUpdateResponse], error)
BeginUpdate - Asynchronously updates a system topic with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- systemTopicUpdateParameters - SystemTopic update information.
- options - SystemTopicsClientBeginUpdateOptions contains the optional parameters for the SystemTopicsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSystemTopicsClient().BeginUpdate(ctx, "examplerg", "exampleSystemTopic1", armeventgrid.SystemTopicUpdateParameters{
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SystemTopic = armeventgrid.SystemTopic{
// Name: to.Ptr("exampleSystemTopic2"),
// Type: to.Ptr("Microsoft.EventGrid/systemTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic2"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.SystemTopicProperties{
// MetricResourceID: to.Ptr("183c0fb1-17ff-47b6-ac77-5a47420ab01e"),
// ProvisioningState: to.Ptr(armeventgrid.ResourceProvisioningStateSucceeded),
// Source: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e"),
// TopicType: to.Ptr("microsoft.storage.storageaccounts"),
// },
// }
func (*SystemTopicsClient) Get ¶
func (client *SystemTopicsClient) Get(ctx context.Context, resourceGroupName string, systemTopicName string, options *SystemTopicsClientGetOptions) (SystemTopicsClientGetResponse, error)
Get - Get properties of a system topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- systemTopicName - Name of the system topic.
- options - SystemTopicsClientGetOptions contains the optional parameters for the SystemTopicsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSystemTopicsClient().Get(ctx, "examplerg", "exampleSystemTopic2", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SystemTopic = armeventgrid.SystemTopic{
// Name: to.Ptr("exampleSystemTopic2"),
// Type: to.Ptr("Microsoft.EventGrid/systemTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic2"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.SystemTopicProperties{
// MetricResourceID: to.Ptr("183c0fb1-17ff-47b6-ac77-5a47420ab01e"),
// ProvisioningState: to.Ptr(armeventgrid.ResourceProvisioningStateSucceeded),
// Source: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e"),
// TopicType: to.Ptr("microsoft.storage.storageaccounts"),
// },
// }
func (*SystemTopicsClient) NewListByResourceGroupPager ¶
func (client *SystemTopicsClient) NewListByResourceGroupPager(resourceGroupName string, options *SystemTopicsClientListByResourceGroupOptions) *runtime.Pager[SystemTopicsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the system topics under a resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - SystemTopicsClientListByResourceGroupOptions contains the optional parameters for the SystemTopicsClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_ListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewSystemTopicsClient().NewListByResourceGroupPager("examplerg", &armeventgrid.SystemTopicsClientListByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.SystemTopicsListResult = armeventgrid.SystemTopicsListResult{
// Value: []*armeventgrid.SystemTopic{
// {
// Name: to.Ptr("pubstgrunnerb71cd29e-86fad330-7bac-4238-8cab-9e46b75165aa"),
// Type: to.Ptr("Microsoft.EventGrid/systemTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/pubstgrunnerb71cd29e-86fad330-7bac-4238-8cab-9e46b75165aa"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.SystemTopicProperties{
// MetricResourceID: to.Ptr("183c0fb1-17ff-47b6-ac77-5a47420ab01e"),
// ProvisioningState: to.Ptr(armeventgrid.ResourceProvisioningStateSucceeded),
// Source: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e"),
// TopicType: to.Ptr("microsoft.storage.storageaccounts"),
// },
// }},
// }
}
func (*SystemTopicsClient) NewListBySubscriptionPager ¶
func (client *SystemTopicsClient) NewListBySubscriptionPager(options *SystemTopicsClientListBySubscriptionOptions) *runtime.Pager[SystemTopicsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all the system topics under an Azure subscription.
Generated from API version 2024-06-01-preview
- options - SystemTopicsClientListBySubscriptionOptions contains the optional parameters for the SystemTopicsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_ListBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewSystemTopicsClient().NewListBySubscriptionPager(&armeventgrid.SystemTopicsClientListBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.SystemTopicsListResult = armeventgrid.SystemTopicsListResult{
// Value: []*armeventgrid.SystemTopic{
// {
// Name: to.Ptr("exampleSystemTopic2"),
// Type: to.Ptr("Microsoft.EventGrid/systemTopics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic2"),
// Location: to.Ptr("centraluseuap"),
// Properties: &armeventgrid.SystemTopicProperties{
// MetricResourceID: to.Ptr("183c0fb1-17ff-47b6-ac77-5a47420ab01e"),
// ProvisioningState: to.Ptr(armeventgrid.ResourceProvisioningStateSucceeded),
// Source: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e"),
// TopicType: to.Ptr("microsoft.storage.storageaccounts"),
// },
// }},
// }
}
type SystemTopicsClientBeginCreateOrUpdateOptions ¶
type SystemTopicsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SystemTopicsClientBeginCreateOrUpdateOptions contains the optional parameters for the SystemTopicsClient.BeginCreateOrUpdate method.
type SystemTopicsClientBeginDeleteOptions ¶
type SystemTopicsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SystemTopicsClientBeginDeleteOptions contains the optional parameters for the SystemTopicsClient.BeginDelete method.
type SystemTopicsClientBeginUpdateOptions ¶
type SystemTopicsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SystemTopicsClientBeginUpdateOptions contains the optional parameters for the SystemTopicsClient.BeginUpdate method.
type SystemTopicsClientCreateOrUpdateResponse ¶
type SystemTopicsClientCreateOrUpdateResponse struct {
// EventGrid System Topic.
SystemTopic
}
SystemTopicsClientCreateOrUpdateResponse contains the response from method SystemTopicsClient.BeginCreateOrUpdate.
type SystemTopicsClientDeleteResponse ¶
type SystemTopicsClientDeleteResponse struct {
}
SystemTopicsClientDeleteResponse contains the response from method SystemTopicsClient.BeginDelete.
type SystemTopicsClientGetOptions ¶
type SystemTopicsClientGetOptions struct {
}
SystemTopicsClientGetOptions contains the optional parameters for the SystemTopicsClient.Get method.
type SystemTopicsClientGetResponse ¶
type SystemTopicsClientGetResponse struct {
// EventGrid System Topic.
SystemTopic
}
SystemTopicsClientGetResponse contains the response from method SystemTopicsClient.Get.
type SystemTopicsClientListByResourceGroupOptions ¶
type SystemTopicsClientListByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
SystemTopicsClientListByResourceGroupOptions contains the optional parameters for the SystemTopicsClient.NewListByResourceGroupPager method.
type SystemTopicsClientListByResourceGroupResponse ¶
type SystemTopicsClientListByResourceGroupResponse struct {
// Result of the List System topics operation.
SystemTopicsListResult
}
SystemTopicsClientListByResourceGroupResponse contains the response from method SystemTopicsClient.NewListByResourceGroupPager.
type SystemTopicsClientListBySubscriptionOptions ¶
type SystemTopicsClientListBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
SystemTopicsClientListBySubscriptionOptions contains the optional parameters for the SystemTopicsClient.NewListBySubscriptionPager method.
type SystemTopicsClientListBySubscriptionResponse ¶
type SystemTopicsClientListBySubscriptionResponse struct {
// Result of the List System topics operation.
SystemTopicsListResult
}
SystemTopicsClientListBySubscriptionResponse contains the response from method SystemTopicsClient.NewListBySubscriptionPager.
type SystemTopicsClientUpdateResponse ¶
type SystemTopicsClientUpdateResponse struct {
// EventGrid System Topic.
SystemTopic
}
SystemTopicsClientUpdateResponse contains the response from method SystemTopicsClient.BeginUpdate.
type SystemTopicsListResult ¶
type SystemTopicsListResult struct {
// A link for the next page of topics.
NextLink *string
// A collection of system Topics.
Value []*SystemTopic
}
SystemTopicsListResult - Result of the List System topics operation.
func (SystemTopicsListResult) MarshalJSON ¶
func (s SystemTopicsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemTopicsListResult.
func (*SystemTopicsListResult) UnmarshalJSON ¶
func (s *SystemTopicsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemTopicsListResult.
type TLSVersion ¶
type TLSVersion string
TLSVersion - Minimum TLS version of the publisher allowed to publish to this domain
const ( TLSVersionOne0 TLSVersion = "1.0" TLSVersionOne1 TLSVersion = "1.1" TLSVersionOne2 TLSVersion = "1.2" )
func PossibleTLSVersionValues ¶
func PossibleTLSVersionValues() []TLSVersion
PossibleTLSVersionValues returns the possible values for the TLSVersion const type.
type Topic ¶
type Topic struct {
// REQUIRED; Location of the resource.
Location *string
// Extended location of the resource.
ExtendedLocation *ExtendedLocation
// Identity information for the resource.
Identity *IdentityInfo
// Kind of the resource.
Kind *ResourceKind
// Properties of the topic.
Properties *TopicProperties
// The Sku pricing tier for the topic.
SKU *ResourceSKU
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Topic resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
Topic - EventGrid Topic
func (Topic) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Topic.
func (*Topic) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Topic.
type TopicEventSubscriptionsClient ¶
type TopicEventSubscriptionsClient struct {
// contains filtered or unexported fields
}
TopicEventSubscriptionsClient contains the methods for the TopicEventSubscriptions group. Don't use this type directly, use NewTopicEventSubscriptionsClient() instead.
func NewTopicEventSubscriptionsClient ¶
func NewTopicEventSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TopicEventSubscriptionsClient, error)
NewTopicEventSubscriptionsClient creates a new instance of TopicEventSubscriptionsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TopicEventSubscriptionsClient) BeginCreateOrUpdate ¶
func (client *TopicEventSubscriptionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, topicName string, eventSubscriptionName string, eventSubscriptionInfo EventSubscription, options *TopicEventSubscriptionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[TopicEventSubscriptionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates a new event subscription or updates an existing event subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the domain topic.
- eventSubscriptionName - Name of the event subscription to be created. Event subscription names must be between 3 and 64 characters in length and use alphanumeric letters only.
- eventSubscriptionInfo - Event subscription properties containing the destination and filter information.
- options - TopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the TopicEventSubscriptionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicEventSubscriptionsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleTopic1", "exampleEventSubscriptionName1", armeventgrid.EventSubscription{
Properties: &armeventgrid.EventSubscriptionProperties{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(false),
SubjectBeginsWith: to.Ptr("ExamplePrefix"),
SubjectEndsWith: to.Ptr("ExampleSuffix"),
},
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("exampleEventSubscriptionName1"),
// Type: to.Ptr("Microsoft.EventGrid/topics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1/eventSubscriptions/exampleEventSubscriptionName1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.WebHookEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
// Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
// EndpointBaseURL: to.Ptr("https://requestb.in/15ksip71"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
// },
// }
func (*TopicEventSubscriptionsClient) BeginDelete ¶
func (client *TopicEventSubscriptionsClient) BeginDelete(ctx context.Context, resourceGroupName string, topicName string, eventSubscriptionName string, options *TopicEventSubscriptionsClientBeginDeleteOptions) (*runtime.Poller[TopicEventSubscriptionsClientDeleteResponse], error)
BeginDelete - Delete an existing event subscription for a topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- eventSubscriptionName - Name of the event subscription to be deleted.
- options - TopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the TopicEventSubscriptionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicEventSubscriptionsClient().BeginDelete(ctx, "examplerg", "exampleTopic1", "examplesubscription1", 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)
}
func (*TopicEventSubscriptionsClient) BeginUpdate ¶
func (client *TopicEventSubscriptionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, topicName string, eventSubscriptionName string, eventSubscriptionUpdateParameters EventSubscriptionUpdateParameters, options *TopicEventSubscriptionsClientBeginUpdateOptions) (*runtime.Poller[TopicEventSubscriptionsClientUpdateResponse], error)
BeginUpdate - Update an existing event subscription for a topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the domain.
- eventSubscriptionName - Name of the event subscription to be updated.
- eventSubscriptionUpdateParameters - Updated event subscription information.
- options - TopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the TopicEventSubscriptionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicEventSubscriptionsClient().BeginUpdate(ctx, "examplerg", "exampleTopic1", "exampleEventSubscriptionName1", armeventgrid.EventSubscriptionUpdateParameters{
Destination: &armeventgrid.WebHookEventSubscriptionDestination{
EndpointType: to.Ptr(armeventgrid.EndpointTypeWebHook),
Properties: &armeventgrid.WebHookEventSubscriptionDestinationProperties{
EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
},
},
Filter: &armeventgrid.EventSubscriptionFilter{
IsSubjectCaseSensitive: to.Ptr(true),
SubjectBeginsWith: to.Ptr("existingPrefix"),
SubjectEndsWith: to.Ptr("newSuffix"),
},
Labels: []*string{
to.Ptr("label1"),
to.Ptr("label2")},
}, 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)
}
func (*TopicEventSubscriptionsClient) Get ¶
func (client *TopicEventSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, topicName string, eventSubscriptionName string, options *TopicEventSubscriptionsClientGetOptions) (TopicEventSubscriptionsClientGetResponse, error)
Get - Get properties of an event subscription of a topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- eventSubscriptionName - Name of the event subscription to be found.
- options - TopicEventSubscriptionsClientGetOptions contains the optional parameters for the TopicEventSubscriptionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTopicEventSubscriptionsClient().Get(ctx, "examplerg", "exampleTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscription = armeventgrid.EventSubscription{
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/topics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
// },
// }
func (*TopicEventSubscriptionsClient) GetDeliveryAttributes ¶
func (client *TopicEventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, resourceGroupName string, topicName string, eventSubscriptionName string, options *TopicEventSubscriptionsClientGetDeliveryAttributesOptions) (TopicEventSubscriptionsClientGetDeliveryAttributesResponse, error)
GetDeliveryAttributes - Get all delivery attributes for an event subscription for topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- eventSubscriptionName - Name of the event subscription.
- options - TopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the TopicEventSubscriptionsClient.GetDeliveryAttributes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_GetDeliveryAttributes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTopicEventSubscriptionsClient().GetDeliveryAttributes(ctx, "examplerg", "exampleTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.DeliveryAttributeListResult = armeventgrid.DeliveryAttributeListResult{
// Value: []armeventgrid.DeliveryAttributeMappingClassification{
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header1"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(false),
// Value: to.Ptr("NormalValue"),
// },
// },
// &armeventgrid.DynamicDeliveryAttributeMapping{
// Name: to.Ptr("header2"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeDynamic),
// Properties: &armeventgrid.DynamicDeliveryAttributeMappingProperties{
// SourceField: to.Ptr("data.foo"),
// },
// },
// &armeventgrid.StaticDeliveryAttributeMapping{
// Name: to.Ptr("header3"),
// Type: to.Ptr(armeventgrid.DeliveryAttributeMappingTypeStatic),
// Properties: &armeventgrid.StaticDeliveryAttributeMappingProperties{
// IsSecret: to.Ptr(true),
// Value: to.Ptr("mySecretValue"),
// },
// }},
// }
func (*TopicEventSubscriptionsClient) GetFullURL ¶
func (client *TopicEventSubscriptionsClient) GetFullURL(ctx context.Context, resourceGroupName string, topicName string, eventSubscriptionName string, options *TopicEventSubscriptionsClientGetFullURLOptions) (TopicEventSubscriptionsClientGetFullURLResponse, error)
GetFullURL - Get the full endpoint URL for an event subscription for topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the domain topic.
- eventSubscriptionName - Name of the event subscription.
- options - TopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the TopicEventSubscriptionsClient.GetFullURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_GetFullUrl.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTopicEventSubscriptionsClient().GetFullURL(ctx, "examplerg", "exampleTopic1", "examplesubscription1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.EventSubscriptionFullURL = armeventgrid.EventSubscriptionFullURL{
// EndpointURL: to.Ptr("https://requestb.in/15ksip71"),
// }
func (*TopicEventSubscriptionsClient) NewListPager ¶
func (client *TopicEventSubscriptionsClient) NewListPager(resourceGroupName string, topicName string, options *TopicEventSubscriptionsClientListOptions) *runtime.Pager[TopicEventSubscriptionsClientListResponse]
NewListPager - List all event subscriptions that have been created for a specific topic.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- options - TopicEventSubscriptionsClientListOptions contains the optional parameters for the TopicEventSubscriptionsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewTopicEventSubscriptionsClient().NewListPager("examplerg", "exampleTopic1", &armeventgrid.TopicEventSubscriptionsClientListOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventSubscriptionsListResult = armeventgrid.EventSubscriptionsListResult{
// Value: []*armeventgrid.EventSubscription{
// {
// Name: to.Ptr("examplesubscription1"),
// Type: to.Ptr("Microsoft.EventGrid/topics/eventSubscriptions"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1/eventSubscriptions/examplesubscription1"),
// Properties: &armeventgrid.EventSubscriptionProperties{
// Destination: &armeventgrid.StorageQueueEventSubscriptionDestination{
// EndpointType: to.Ptr(armeventgrid.EndpointTypeStorageQueue),
// Properties: &armeventgrid.StorageQueueEventSubscriptionDestinationProperties{
// QueueName: to.Ptr("que"),
// ResourceID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/testtrackedsource"),
// },
// },
// EventDeliverySchema: to.Ptr(armeventgrid.EventDeliverySchemaEventGridSchema),
// Filter: &armeventgrid.EventSubscriptionFilter{
// IncludedEventTypes: []*string{
// to.Ptr("Microsoft.Storage.BlobCreated"),
// to.Ptr("Microsoft.Storage.BlobDeleted")},
// IsSubjectCaseSensitive: to.Ptr(false),
// SubjectBeginsWith: to.Ptr("ExamplePrefix"),
// SubjectEndsWith: to.Ptr("ExampleSuffix"),
// },
// Labels: []*string{
// to.Ptr("label1"),
// to.Ptr("label2")},
// ProvisioningState: to.Ptr(armeventgrid.EventSubscriptionProvisioningStateSucceeded),
// RetryPolicy: &armeventgrid.RetryPolicy{
// EventTimeToLiveInMinutes: to.Ptr[int32](1440),
// MaxDeliveryAttempts: to.Ptr[int32](30),
// },
// Topic: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
// },
// }},
// }
}
type TopicEventSubscriptionsClientBeginCreateOrUpdateOptions ¶
type TopicEventSubscriptionsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TopicEventSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the TopicEventSubscriptionsClient.BeginCreateOrUpdate method.
type TopicEventSubscriptionsClientBeginDeleteOptions ¶
type TopicEventSubscriptionsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TopicEventSubscriptionsClientBeginDeleteOptions contains the optional parameters for the TopicEventSubscriptionsClient.BeginDelete method.
type TopicEventSubscriptionsClientBeginUpdateOptions ¶
type TopicEventSubscriptionsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TopicEventSubscriptionsClientBeginUpdateOptions contains the optional parameters for the TopicEventSubscriptionsClient.BeginUpdate method.
type TopicEventSubscriptionsClientCreateOrUpdateResponse ¶
type TopicEventSubscriptionsClientCreateOrUpdateResponse struct {
// Event Subscription.
EventSubscription
}
TopicEventSubscriptionsClientCreateOrUpdateResponse contains the response from method TopicEventSubscriptionsClient.BeginCreateOrUpdate.
type TopicEventSubscriptionsClientDeleteResponse ¶
type TopicEventSubscriptionsClientDeleteResponse struct {
}
TopicEventSubscriptionsClientDeleteResponse contains the response from method TopicEventSubscriptionsClient.BeginDelete.
type TopicEventSubscriptionsClientGetDeliveryAttributesOptions ¶
type TopicEventSubscriptionsClientGetDeliveryAttributesOptions struct {
}
TopicEventSubscriptionsClientGetDeliveryAttributesOptions contains the optional parameters for the TopicEventSubscriptionsClient.GetDeliveryAttributes method.
type TopicEventSubscriptionsClientGetDeliveryAttributesResponse ¶
type TopicEventSubscriptionsClientGetDeliveryAttributesResponse struct {
// Result of the Get delivery attributes operation.
DeliveryAttributeListResult
}
TopicEventSubscriptionsClientGetDeliveryAttributesResponse contains the response from method TopicEventSubscriptionsClient.GetDeliveryAttributes.
type TopicEventSubscriptionsClientGetFullURLOptions ¶
type TopicEventSubscriptionsClientGetFullURLOptions struct {
}
TopicEventSubscriptionsClientGetFullURLOptions contains the optional parameters for the TopicEventSubscriptionsClient.GetFullURL method.
type TopicEventSubscriptionsClientGetFullURLResponse ¶
type TopicEventSubscriptionsClientGetFullURLResponse struct {
// Full endpoint URL of an event subscription
EventSubscriptionFullURL
}
TopicEventSubscriptionsClientGetFullURLResponse contains the response from method TopicEventSubscriptionsClient.GetFullURL.
type TopicEventSubscriptionsClientGetOptions ¶
type TopicEventSubscriptionsClientGetOptions struct {
}
TopicEventSubscriptionsClientGetOptions contains the optional parameters for the TopicEventSubscriptionsClient.Get method.
type TopicEventSubscriptionsClientGetResponse ¶
type TopicEventSubscriptionsClientGetResponse struct {
// Event Subscription.
EventSubscription
}
TopicEventSubscriptionsClientGetResponse contains the response from method TopicEventSubscriptionsClient.Get.
type TopicEventSubscriptionsClientListOptions ¶
type TopicEventSubscriptionsClientListOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
TopicEventSubscriptionsClientListOptions contains the optional parameters for the TopicEventSubscriptionsClient.NewListPager method.
type TopicEventSubscriptionsClientListResponse ¶
type TopicEventSubscriptionsClientListResponse struct {
// Result of the List EventSubscriptions operation
EventSubscriptionsListResult
}
TopicEventSubscriptionsClientListResponse contains the response from method TopicEventSubscriptionsClient.NewListPager.
type TopicEventSubscriptionsClientUpdateResponse ¶
type TopicEventSubscriptionsClientUpdateResponse struct {
// Event Subscription.
EventSubscription
}
TopicEventSubscriptionsClientUpdateResponse contains the response from method TopicEventSubscriptionsClient.BeginUpdate.
type TopicProperties ¶
type TopicProperties struct {
// Data Residency Boundary of the resource.
DataResidencyBoundary *DataResidencyBoundary
// This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD
// token will be used to authenticate if user is allowed to publish to the topic.
DisableLocalAuth *bool
// Event Type Information for the user topic. This information is provided by the publisher and can be used by the subscriber
// to view different types of events that are published.
EventTypeInfo *EventTypeInfo
// This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess
// is enabled.
InboundIPRules []*InboundIPRule
// This determines the format that Event Grid should expect for incoming events published to the topic.
InputSchema *InputSchema
// This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of
// a source schema to various required properties of the EventGridEvent schema.
InputSchemaMapping InputSchemaMappingClassification
// Minimum TLS version of the publisher allowed to publish to this topic
MinimumTLSVersionAllowed *TLSVersion
// This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific
// IPs by configuring
PublicNetworkAccess *PublicNetworkAccess
// READ-ONLY; Endpoint for the topic.
Endpoint *string
// READ-ONLY; Metric resource id for the topic.
MetricResourceID *string
// READ-ONLY; List of private endpoint connections.
PrivateEndpointConnections []*PrivateEndpointConnection
// READ-ONLY; Provisioning state of the topic.
ProvisioningState *TopicProvisioningState
}
TopicProperties - Properties of the Topic.
func (TopicProperties) MarshalJSON ¶
func (t TopicProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicProperties.
func (*TopicProperties) UnmarshalJSON ¶
func (t *TopicProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicProperties.
type TopicProvisioningState ¶
type TopicProvisioningState string
TopicProvisioningState - Provisioning state of the topic.
const ( TopicProvisioningStateCanceled TopicProvisioningState = "Canceled" TopicProvisioningStateCreating TopicProvisioningState = "Creating" TopicProvisioningStateDeleting TopicProvisioningState = "Deleting" TopicProvisioningStateFailed TopicProvisioningState = "Failed" TopicProvisioningStateSucceeded TopicProvisioningState = "Succeeded" TopicProvisioningStateUpdating TopicProvisioningState = "Updating" )
func PossibleTopicProvisioningStateValues ¶
func PossibleTopicProvisioningStateValues() []TopicProvisioningState
PossibleTopicProvisioningStateValues returns the possible values for the TopicProvisioningState const type.
type TopicRegenerateKeyRequest ¶
type TopicRegenerateKeyRequest struct {
// REQUIRED; Key name to regenerate key1 or key2
KeyName *string
}
TopicRegenerateKeyRequest - Topic regenerate share access key request
func (TopicRegenerateKeyRequest) MarshalJSON ¶
func (t TopicRegenerateKeyRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicRegenerateKeyRequest.
func (*TopicRegenerateKeyRequest) UnmarshalJSON ¶
func (t *TopicRegenerateKeyRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicRegenerateKeyRequest.
type TopicSharedAccessKeys ¶
TopicSharedAccessKeys - Shared access keys of the Topic
func (TopicSharedAccessKeys) MarshalJSON ¶
func (t TopicSharedAccessKeys) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicSharedAccessKeys.
func (*TopicSharedAccessKeys) UnmarshalJSON ¶
func (t *TopicSharedAccessKeys) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicSharedAccessKeys.
type TopicSpace ¶
type TopicSpace struct {
// The properties of topic space.
Properties *TopicSpaceProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to the TopicSpace resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
TopicSpace - The Topic space resource.
func (TopicSpace) MarshalJSON ¶
func (t TopicSpace) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicSpace.
func (*TopicSpace) UnmarshalJSON ¶
func (t *TopicSpace) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicSpace.
type TopicSpaceProperties ¶
type TopicSpaceProperties struct {
// Description for the Topic Space resource.
Description *string
// The topic filters in the topic space. Example: "topicTemplates": [ "devices/foo/bar", "devices/topic1/+", "devices/${principal.name}/${principal.attributes.keyName}"
// ].
TopicTemplates []*string
// READ-ONLY; Provisioning state of the TopicSpace resource.
ProvisioningState *TopicSpaceProvisioningState
}
TopicSpaceProperties - The properties of topic space.
func (TopicSpaceProperties) MarshalJSON ¶
func (t TopicSpaceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicSpaceProperties.
func (*TopicSpaceProperties) UnmarshalJSON ¶
func (t *TopicSpaceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicSpaceProperties.
type TopicSpaceProvisioningState ¶
type TopicSpaceProvisioningState string
TopicSpaceProvisioningState - Provisioning state of the TopicSpace resource.
const ( TopicSpaceProvisioningStateCanceled TopicSpaceProvisioningState = "Canceled" TopicSpaceProvisioningStateCreating TopicSpaceProvisioningState = "Creating" TopicSpaceProvisioningStateDeleted TopicSpaceProvisioningState = "Deleted" TopicSpaceProvisioningStateDeleting TopicSpaceProvisioningState = "Deleting" TopicSpaceProvisioningStateFailed TopicSpaceProvisioningState = "Failed" TopicSpaceProvisioningStateSucceeded TopicSpaceProvisioningState = "Succeeded" TopicSpaceProvisioningStateUpdating TopicSpaceProvisioningState = "Updating" )
func PossibleTopicSpaceProvisioningStateValues ¶
func PossibleTopicSpaceProvisioningStateValues() []TopicSpaceProvisioningState
PossibleTopicSpaceProvisioningStateValues returns the possible values for the TopicSpaceProvisioningState const type.
type TopicSpacesClient ¶
type TopicSpacesClient struct {
// contains filtered or unexported fields
}
TopicSpacesClient contains the methods for the TopicSpaces group. Don't use this type directly, use NewTopicSpacesClient() instead.
func NewTopicSpacesClient ¶
func NewTopicSpacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TopicSpacesClient, error)
NewTopicSpacesClient creates a new instance of TopicSpacesClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TopicSpacesClient) BeginCreateOrUpdate ¶
func (client *TopicSpacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicSpaceName string, topicSpaceInfo TopicSpace, options *TopicSpacesClientBeginCreateOrUpdateOptions) (*runtime.Poller[TopicSpacesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a topic space with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicSpaceName - The topic space name.
- topicSpaceInfo - Topic space information.
- options - TopicSpacesClientBeginCreateOrUpdateOptions contains the optional parameters for the TopicSpacesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicSpaces_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicSpacesClient().BeginCreateOrUpdate(ctx, "examplerg", "exampleNamespaceName1", "exampleTopicSpaceName1", armeventgrid.TopicSpace{
Properties: &armeventgrid.TopicSpaceProperties{
TopicTemplates: []*string{
to.Ptr("filter1"),
to.Ptr("filter2")},
},
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.TopicSpace = armeventgrid.TopicSpace{
// Name: to.Ptr("exampleTopicSpaceName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topicSpaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/topicSpaces/exampleTopicSpaceName1"),
// Properties: &armeventgrid.TopicSpaceProperties{
// ProvisioningState: to.Ptr(armeventgrid.TopicSpaceProvisioningStateSucceeded),
// TopicTemplates: []*string{
// to.Ptr("filter1"),
// to.Ptr("filter2")},
// },
// }
func (*TopicSpacesClient) BeginDelete ¶
func (client *TopicSpacesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, topicSpaceName string, options *TopicSpacesClientBeginDeleteOptions) (*runtime.Poller[TopicSpacesClientDeleteResponse], error)
BeginDelete - Delete an existing topic space. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicSpaceName - Name of the Topic space.
- options - TopicSpacesClientBeginDeleteOptions contains the optional parameters for the TopicSpacesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicSpaces_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicSpacesClient().BeginDelete(ctx, "examplerg", "exampleNamespaceName1", "exampleTopicSpaceName1", 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)
}
func (*TopicSpacesClient) Get ¶
func (client *TopicSpacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicSpaceName string, options *TopicSpacesClientGetOptions) (TopicSpacesClientGetResponse, error)
Get - Get properties of a topic space. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- topicSpaceName - Name of the Topic space.
- options - TopicSpacesClientGetOptions contains the optional parameters for the TopicSpacesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicSpaces_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTopicSpacesClient().Get(ctx, "examplerg", "exampleNamespaceName1", "exampleTopicSpaceName1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.TopicSpace = armeventgrid.TopicSpace{
// Name: to.Ptr("exampleTopicSpaceName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topicSpaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/topicSpaces/exampleTopicSpaceName1"),
// Properties: &armeventgrid.TopicSpaceProperties{
// ProvisioningState: to.Ptr(armeventgrid.TopicSpaceProvisioningStateSucceeded),
// TopicTemplates: []*string{
// to.Ptr("filter1"),
// to.Ptr("filter2")},
// },
// }
func (*TopicSpacesClient) NewListByNamespacePager ¶
func (client *TopicSpacesClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *TopicSpacesClientListByNamespaceOptions) *runtime.Pager[TopicSpacesClientListByNamespaceResponse]
NewListByNamespacePager - Get all the topic spaces under a namespace.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- namespaceName - Name of the namespace.
- options - TopicSpacesClientListByNamespaceOptions contains the optional parameters for the TopicSpacesClient.NewListByNamespacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicSpaces_ListByNamespace.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewTopicSpacesClient().NewListByNamespacePager("examplerg", "namespace123", &armeventgrid.TopicSpacesClientListByNamespaceOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.TopicSpacesListResult = armeventgrid.TopicSpacesListResult{
// Value: []*armeventgrid.TopicSpace{
// {
// Name: to.Ptr("exampleTopicSpaceName1"),
// Type: to.Ptr("Microsoft.EventGrid/namespaces/topicSpaces"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/topicSpaces/exampleTopicSpaceName1"),
// Properties: &armeventgrid.TopicSpaceProperties{
// ProvisioningState: to.Ptr(armeventgrid.TopicSpaceProvisioningStateSucceeded),
// TopicTemplates: []*string{
// to.Ptr("filter1"),
// to.Ptr("filter2")},
// },
// }},
// }
}
type TopicSpacesClientBeginCreateOrUpdateOptions ¶
type TopicSpacesClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TopicSpacesClientBeginCreateOrUpdateOptions contains the optional parameters for the TopicSpacesClient.BeginCreateOrUpdate method.
type TopicSpacesClientBeginDeleteOptions ¶
type TopicSpacesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TopicSpacesClientBeginDeleteOptions contains the optional parameters for the TopicSpacesClient.BeginDelete method.
type TopicSpacesClientCreateOrUpdateResponse ¶
type TopicSpacesClientCreateOrUpdateResponse struct {
// The Topic space resource.
TopicSpace
}
TopicSpacesClientCreateOrUpdateResponse contains the response from method TopicSpacesClient.BeginCreateOrUpdate.
type TopicSpacesClientDeleteResponse ¶
type TopicSpacesClientDeleteResponse struct {
}
TopicSpacesClientDeleteResponse contains the response from method TopicSpacesClient.BeginDelete.
type TopicSpacesClientGetOptions ¶
type TopicSpacesClientGetOptions struct {
}
TopicSpacesClientGetOptions contains the optional parameters for the TopicSpacesClient.Get method.
type TopicSpacesClientGetResponse ¶
type TopicSpacesClientGetResponse struct {
// The Topic space resource.
TopicSpace
}
TopicSpacesClientGetResponse contains the response from method TopicSpacesClient.Get.
type TopicSpacesClientListByNamespaceOptions ¶
type TopicSpacesClientListByNamespaceOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
TopicSpacesClientListByNamespaceOptions contains the optional parameters for the TopicSpacesClient.NewListByNamespacePager method.
type TopicSpacesClientListByNamespaceResponse ¶
type TopicSpacesClientListByNamespaceResponse struct {
// Result of the List Topic Space operation.
TopicSpacesListResult
}
TopicSpacesClientListByNamespaceResponse contains the response from method TopicSpacesClient.NewListByNamespacePager.
type TopicSpacesConfiguration ¶
type TopicSpacesConfiguration struct {
// Client authentication settings for topic spaces configuration.
ClientAuthentication *ClientAuthenticationSettings
// List of custom domain configurations for the namespace.
CustomDomains []*CustomDomainConfiguration
// The maximum number of sessions per authentication name. The property default value is 1. Min allowed value is 1 and max
// allowed value is 100.
MaximumClientSessionsPerAuthenticationName *int32
// The maximum session expiry in hours. The property default value is 1 hour. Min allowed value is 1 hour and max allowed
// value is 8 hours.
MaximumSessionExpiryInHours *int32
// Fully qualified Azure Resource Id for the Event Grid Topic to which events will be routed to from TopicSpaces under a namespace.
// This property should be in the following format
// '/subscriptions/{subId}/resourcegroups/{resourceGroupName}/providers/microsoft.EventGrid/topics/{topicName}'. This topic
// should reside in the same region where namespace is located.
RouteTopicResourceID *string
// Routing enrichments for topic spaces configuration
RoutingEnrichments *RoutingEnrichments
// Routing identity info for topic spaces configuration.
RoutingIdentityInfo *RoutingIdentityInfo
// Indicate if Topic Spaces Configuration is enabled for the namespace. Default is Disabled.
State *TopicSpacesConfigurationState
// READ-ONLY; The endpoint for the topic spaces configuration. This is a read-only property.
Hostname *string
}
TopicSpacesConfiguration - Properties of the Topic Spaces Configuration.
func (TopicSpacesConfiguration) MarshalJSON ¶
func (t TopicSpacesConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicSpacesConfiguration.
func (*TopicSpacesConfiguration) UnmarshalJSON ¶
func (t *TopicSpacesConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicSpacesConfiguration.
type TopicSpacesConfigurationState ¶
type TopicSpacesConfigurationState string
TopicSpacesConfigurationState - Indicate if Topic Spaces Configuration is enabled for the namespace. Default is Disabled.
const ( TopicSpacesConfigurationStateDisabled TopicSpacesConfigurationState = "Disabled" TopicSpacesConfigurationStateEnabled TopicSpacesConfigurationState = "Enabled" )
func PossibleTopicSpacesConfigurationStateValues ¶
func PossibleTopicSpacesConfigurationStateValues() []TopicSpacesConfigurationState
PossibleTopicSpacesConfigurationStateValues returns the possible values for the TopicSpacesConfigurationState const type.
type TopicSpacesListResult ¶
type TopicSpacesListResult struct {
// A link for the next page of Topic Space.
NextLink *string
// A collection of Topic Space.
Value []*TopicSpace
}
TopicSpacesListResult - Result of the List Topic Space operation.
func (TopicSpacesListResult) MarshalJSON ¶
func (t TopicSpacesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicSpacesListResult.
func (*TopicSpacesListResult) UnmarshalJSON ¶
func (t *TopicSpacesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicSpacesListResult.
type TopicTypeAdditionalEnforcedPermission ¶
func (TopicTypeAdditionalEnforcedPermission) MarshalJSON ¶
func (t TopicTypeAdditionalEnforcedPermission) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicTypeAdditionalEnforcedPermission.
func (*TopicTypeAdditionalEnforcedPermission) UnmarshalJSON ¶
func (t *TopicTypeAdditionalEnforcedPermission) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicTypeAdditionalEnforcedPermission.
type TopicTypeInfo ¶
type TopicTypeInfo struct {
// Properties of the topic type info
Properties *TopicTypeProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; Type of the resource.
Type *string
}
TopicTypeInfo - Properties of a topic type info.
func (TopicTypeInfo) MarshalJSON ¶
func (t TopicTypeInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicTypeInfo.
func (*TopicTypeInfo) UnmarshalJSON ¶
func (t *TopicTypeInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicTypeInfo.
type TopicTypeProperties ¶
type TopicTypeProperties struct {
// Permissions which are enforced for creating and updating system topics of this this topic type.
AdditionalEnforcedPermissions []*TopicTypeAdditionalEnforcedPermission
// Flag to indicate that a topic type can support both regional or global system topics.
AreRegionalAndGlobalSourcesSupported *bool
// Description of the topic type.
Description *string
// Display Name for the topic type.
DisplayName *string
// Namespace of the provider of the topic type.
Provider *string
// Provisioning state of the topic type.
ProvisioningState *TopicTypeProvisioningState
// Region type of the resource.
ResourceRegionType *ResourceRegionType
// Source resource format.
SourceResourceFormat *string
// List of locations supported by this topic type.
SupportedLocations []*string
// Supported source scopes.
SupportedScopesForSource []*TopicTypeSourceScope
}
TopicTypeProperties - Properties of a topic type.
func (TopicTypeProperties) MarshalJSON ¶
func (t TopicTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicTypeProperties.
func (*TopicTypeProperties) UnmarshalJSON ¶
func (t *TopicTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicTypeProperties.
type TopicTypeProvisioningState ¶
type TopicTypeProvisioningState string
TopicTypeProvisioningState - Provisioning state of the topic type.
const ( TopicTypeProvisioningStateCanceled TopicTypeProvisioningState = "Canceled" TopicTypeProvisioningStateCreating TopicTypeProvisioningState = "Creating" TopicTypeProvisioningStateDeleting TopicTypeProvisioningState = "Deleting" TopicTypeProvisioningStateFailed TopicTypeProvisioningState = "Failed" TopicTypeProvisioningStateSucceeded TopicTypeProvisioningState = "Succeeded" TopicTypeProvisioningStateUpdating TopicTypeProvisioningState = "Updating" )
func PossibleTopicTypeProvisioningStateValues ¶
func PossibleTopicTypeProvisioningStateValues() []TopicTypeProvisioningState
PossibleTopicTypeProvisioningStateValues returns the possible values for the TopicTypeProvisioningState const type.
type TopicTypeSourceScope ¶
type TopicTypeSourceScope string
const ( TopicTypeSourceScopeAzureSubscription TopicTypeSourceScope = "AzureSubscription" TopicTypeSourceScopeManagementGroup TopicTypeSourceScope = "ManagementGroup" TopicTypeSourceScopeResource TopicTypeSourceScope = "Resource" TopicTypeSourceScopeResourceGroup TopicTypeSourceScope = "ResourceGroup" )
func PossibleTopicTypeSourceScopeValues ¶
func PossibleTopicTypeSourceScopeValues() []TopicTypeSourceScope
PossibleTopicTypeSourceScopeValues returns the possible values for the TopicTypeSourceScope const type.
type TopicTypesClient ¶
type TopicTypesClient struct {
// contains filtered or unexported fields
}
TopicTypesClient contains the methods for the TopicTypes group. Don't use this type directly, use NewTopicTypesClient() instead.
func NewTopicTypesClient ¶
func NewTopicTypesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*TopicTypesClient, error)
NewTopicTypesClient creates a new instance of TopicTypesClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TopicTypesClient) Get ¶
func (client *TopicTypesClient) Get(ctx context.Context, topicTypeName string, options *TopicTypesClientGetOptions) (TopicTypesClientGetResponse, error)
Get - Get information about a topic type. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- topicTypeName - Name of the topic type.
- options - TopicTypesClientGetOptions contains the optional parameters for the TopicTypesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicTypes_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTopicTypesClient().Get(ctx, "Microsoft.Storage.StorageAccounts", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.TopicTypeInfo = armeventgrid.TopicTypeInfo{
// Name: to.Ptr("Microsoft.Storage.StorageAccounts"),
// Type: to.Ptr("Microsoft.EventGrid/topicTypes"),
// ID: to.Ptr("providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts"),
// Properties: &armeventgrid.TopicTypeProperties{
// Description: to.Ptr("Microsoft Storage service events."),
// DisplayName: to.Ptr("Storage Accounts"),
// Provider: to.Ptr("Microsoft.Storage"),
// ProvisioningState: to.Ptr(armeventgrid.TopicTypeProvisioningStateSucceeded),
// ResourceRegionType: to.Ptr(armeventgrid.ResourceRegionTypeRegionalResource),
// },
// }
func (*TopicTypesClient) NewListEventTypesPager ¶
func (client *TopicTypesClient) NewListEventTypesPager(topicTypeName string, options *TopicTypesClientListEventTypesOptions) *runtime.Pager[TopicTypesClientListEventTypesResponse]
NewListEventTypesPager - List event types for a topic type.
Generated from API version 2024-06-01-preview
- topicTypeName - Name of the topic type.
- options - TopicTypesClientListEventTypesOptions contains the optional parameters for the TopicTypesClient.NewListEventTypesPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicTypes_ListEventTypes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewTopicTypesClient().NewListEventTypesPager("Microsoft.Storage.StorageAccounts", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventTypesListResult = armeventgrid.EventTypesListResult{
// Value: []*armeventgrid.EventType{
// {
// Name: to.Ptr("Microsoft.Storage.BlobCreated"),
// Type: to.Ptr("Microsoft.EventGrid/topicTypes/eventTypes"),
// ID: to.Ptr("providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated"),
// Properties: &armeventgrid.EventTypeProperties{
// Description: to.Ptr("Raised when a blob is created."),
// DisplayName: to.Ptr("Blob Created"),
// SchemaURL: to.Ptr("tbd"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Storage.BlobDeleted"),
// Type: to.Ptr("Microsoft.EventGrid/topicTypes/eventTypes"),
// ID: to.Ptr("providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted"),
// Properties: &armeventgrid.EventTypeProperties{
// Description: to.Ptr("Raised when a blob is deleted."),
// DisplayName: to.Ptr("Blob Deleted"),
// SchemaURL: to.Ptr("tbd"),
// },
// }},
// }
}
func (*TopicTypesClient) NewListPager ¶
func (client *TopicTypesClient) NewListPager(options *TopicTypesClientListOptions) *runtime.Pager[TopicTypesClientListResponse]
NewListPager - List all registered topic types.
Generated from API version 2024-06-01-preview
- options - TopicTypesClientListOptions contains the optional parameters for the TopicTypesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicTypes_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewTopicTypesClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.TopicTypesListResult = armeventgrid.TopicTypesListResult{
// Value: []*armeventgrid.TopicTypeInfo{
// {
// Name: to.Ptr("Microsoft.Eventhub.Namespaces"),
// Type: to.Ptr("Microsoft.EventGrid/topicTypes"),
// ID: to.Ptr("providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces"),
// Properties: &armeventgrid.TopicTypeProperties{
// Description: to.Ptr("Microsoft EventHubs service events."),
// DisplayName: to.Ptr("EventHubs Namespace"),
// Provider: to.Ptr("Microsoft.Eventhub"),
// ProvisioningState: to.Ptr(armeventgrid.TopicTypeProvisioningStateSucceeded),
// ResourceRegionType: to.Ptr(armeventgrid.ResourceRegionTypeRegionalResource),
// },
// },
// {
// Name: to.Ptr("Microsoft.Storage.StorageAccounts"),
// Type: to.Ptr("Microsoft.EventGrid/topicTypes"),
// ID: to.Ptr("providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts"),
// Properties: &armeventgrid.TopicTypeProperties{
// Description: to.Ptr("Microsoft Storage service events."),
// DisplayName: to.Ptr("Storage Accounts"),
// Provider: to.Ptr("Microsoft.Storage"),
// ProvisioningState: to.Ptr(armeventgrid.TopicTypeProvisioningStateSucceeded),
// ResourceRegionType: to.Ptr(armeventgrid.ResourceRegionTypeRegionalResource),
// },
// }},
// }
}
type TopicTypesClientGetOptions ¶
type TopicTypesClientGetOptions struct {
}
TopicTypesClientGetOptions contains the optional parameters for the TopicTypesClient.Get method.
type TopicTypesClientGetResponse ¶
type TopicTypesClientGetResponse struct {
// Properties of a topic type info.
TopicTypeInfo
}
TopicTypesClientGetResponse contains the response from method TopicTypesClient.Get.
type TopicTypesClientListEventTypesOptions ¶
type TopicTypesClientListEventTypesOptions struct {
}
TopicTypesClientListEventTypesOptions contains the optional parameters for the TopicTypesClient.NewListEventTypesPager method.
type TopicTypesClientListEventTypesResponse ¶
type TopicTypesClientListEventTypesResponse struct {
// Result of the List Event Types operation
EventTypesListResult
}
TopicTypesClientListEventTypesResponse contains the response from method TopicTypesClient.NewListEventTypesPager.
type TopicTypesClientListOptions ¶
type TopicTypesClientListOptions struct {
}
TopicTypesClientListOptions contains the optional parameters for the TopicTypesClient.NewListPager method.
type TopicTypesClientListResponse ¶
type TopicTypesClientListResponse struct {
// Result of the List Topic Types operation
TopicTypesListResult
}
TopicTypesClientListResponse contains the response from method TopicTypesClient.NewListPager.
type TopicTypesListResult ¶
type TopicTypesListResult struct {
// A collection of topic types
Value []*TopicTypeInfo
}
TopicTypesListResult - Result of the List Topic Types operation
func (TopicTypesListResult) MarshalJSON ¶
func (t TopicTypesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicTypesListResult.
func (*TopicTypesListResult) UnmarshalJSON ¶
func (t *TopicTypesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicTypesListResult.
type TopicUpdateParameterProperties ¶
type TopicUpdateParameterProperties struct {
// The data residency boundary for the topic.
DataResidencyBoundary *DataResidencyBoundary
// This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD
// token will be used to authenticate if user is allowed to publish to the topic.
DisableLocalAuth *bool
// The eventTypeInfo for the topic.
EventTypeInfo *EventTypeInfo
// This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess
// is enabled.
InboundIPRules []*InboundIPRule
// Minimum TLS version of the publisher allowed to publish to this domain
MinimumTLSVersionAllowed *TLSVersion
// This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific
// IPs by configuring
PublicNetworkAccess *PublicNetworkAccess
}
TopicUpdateParameterProperties - Information of topic update parameter properties.
func (TopicUpdateParameterProperties) MarshalJSON ¶
func (t TopicUpdateParameterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicUpdateParameterProperties.
func (*TopicUpdateParameterProperties) UnmarshalJSON ¶
func (t *TopicUpdateParameterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicUpdateParameterProperties.
type TopicUpdateParameters ¶
type TopicUpdateParameters struct {
// Topic resource identity information.
Identity *IdentityInfo
// Properties of the Topic resource.
Properties *TopicUpdateParameterProperties
// The Sku pricing tier for the topic.
SKU *ResourceSKU
// Tags of the Topic resource.
Tags map[string]*string
}
TopicUpdateParameters - Properties of the Topic update
func (TopicUpdateParameters) MarshalJSON ¶
func (t TopicUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicUpdateParameters.
func (*TopicUpdateParameters) UnmarshalJSON ¶
func (t *TopicUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicUpdateParameters.
type TopicsClient ¶
type TopicsClient struct {
// contains filtered or unexported fields
}
TopicsClient contains the methods for the Topics group. Don't use this type directly, use NewTopicsClient() instead.
func NewTopicsClient ¶
func NewTopicsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TopicsClient, error)
NewTopicsClient creates a new instance of TopicsClient with the specified values.
- subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TopicsClient) BeginCreateOrUpdate ¶
func (client *TopicsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, topicName string, topicInfo Topic, options *TopicsClientBeginCreateOrUpdateOptions) (*runtime.Poller[TopicsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Asynchronously creates a new topic with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- topicInfo - Topic information.
- options - TopicsClientBeginCreateOrUpdateOptions contains the optional parameters for the TopicsClient.BeginCreateOrUpdate method.
Example (TopicsCreateOrUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampletopic1", armeventgrid.Topic{
Location: to.Ptr("westus2"),
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
Properties: &armeventgrid.TopicProperties{
InboundIPRules: []*armeventgrid.InboundIPRule{
{
Action: to.Ptr(armeventgrid.IPActionTypeAllow),
IPMask: to.Ptr("12.18.30.15"),
},
{
Action: to.Ptr(armeventgrid.IPActionTypeAllow),
IPMask: to.Ptr("12.18.176.1"),
}},
PublicNetworkAccess: to.Ptr(armeventgrid.PublicNetworkAccessEnabled),
},
}, 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)
}
Example (TopicsCreateOrUpdateForAzureArc) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_CreateOrUpdateForAzureArc.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicsClient().BeginCreateOrUpdate(ctx, "examplerg", "exampletopic1", armeventgrid.Topic{
Location: to.Ptr("westus2"),
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
ExtendedLocation: &armeventgrid.ExtendedLocation{
Name: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourcegroups/examplerg/providers/Microsoft.ExtendedLocation/CustomLocations/exampleCustomLocation"),
Type: to.Ptr("CustomLocation"),
},
Kind: to.Ptr(armeventgrid.ResourceKindAzureArc),
Properties: &armeventgrid.TopicProperties{
InputSchema: to.Ptr(armeventgrid.InputSchemaCloudEventSchemaV10),
},
}, 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)
}
func (*TopicsClient) BeginDelete ¶
func (client *TopicsClient) BeginDelete(ctx context.Context, resourceGroupName string, topicName string, options *TopicsClientBeginDeleteOptions) (*runtime.Poller[TopicsClientDeleteResponse], error)
BeginDelete - Delete existing topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- options - TopicsClientBeginDeleteOptions contains the optional parameters for the TopicsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicsClient().BeginDelete(ctx, "examplerg1", "exampletopic1", 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)
}
func (*TopicsClient) BeginRegenerateKey ¶
func (client *TopicsClient) BeginRegenerateKey(ctx context.Context, resourceGroupName string, topicName string, regenerateKeyRequest TopicRegenerateKeyRequest, options *TopicsClientBeginRegenerateKeyOptions) (*runtime.Poller[TopicsClientRegenerateKeyResponse], error)
BeginRegenerateKey - Regenerate a shared access key for a topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- regenerateKeyRequest - Request body to regenerate key.
- options - TopicsClientBeginRegenerateKeyOptions contains the optional parameters for the TopicsClient.BeginRegenerateKey method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_RegenerateKey.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicsClient().BeginRegenerateKey(ctx, "examplerg", "exampletopic2", armeventgrid.TopicRegenerateKeyRequest{
KeyName: to.Ptr("key1"),
}, 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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.TopicSharedAccessKeys = armeventgrid.TopicSharedAccessKeys{
// Key1: to.Ptr("testKey1Value"),
// Key2: to.Ptr("testKey2Value"),
// }
func (*TopicsClient) BeginUpdate ¶
func (client *TopicsClient) BeginUpdate(ctx context.Context, resourceGroupName string, topicName string, topicUpdateParameters TopicUpdateParameters, options *TopicsClientBeginUpdateOptions) (*runtime.Poller[TopicsClientUpdateResponse], error)
BeginUpdate - Asynchronously updates a topic with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- topicUpdateParameters - Topic update information.
- options - TopicsClientBeginUpdateOptions contains the optional parameters for the TopicsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTopicsClient().BeginUpdate(ctx, "examplerg", "exampletopic1", armeventgrid.TopicUpdateParameters{
Properties: &armeventgrid.TopicUpdateParameterProperties{
InboundIPRules: []*armeventgrid.InboundIPRule{
{
Action: to.Ptr(armeventgrid.IPActionTypeAllow),
IPMask: to.Ptr("12.18.30.15"),
},
{
Action: to.Ptr(armeventgrid.IPActionTypeAllow),
IPMask: to.Ptr("12.18.176.1"),
}},
PublicNetworkAccess: to.Ptr(armeventgrid.PublicNetworkAccessEnabled),
},
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
}, 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)
}
func (*TopicsClient) Get ¶
func (client *TopicsClient) Get(ctx context.Context, resourceGroupName string, topicName string, options *TopicsClientGetOptions) (TopicsClientGetResponse, error)
Get - Get properties of a topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- options - TopicsClientGetOptions contains the optional parameters for the TopicsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTopicsClient().Get(ctx, "examplerg", "exampletopic2", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Topic = armeventgrid.Topic{
// Name: to.Ptr("exampletopic2"),
// Type: to.Ptr("Microsoft.EventGrid/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2"),
// Location: to.Ptr("westcentralus"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.TopicProperties{
// Endpoint: to.Ptr("https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.TopicProvisioningStateSucceeded),
// },
// }
func (*TopicsClient) ListSharedAccessKeys ¶
func (client *TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGroupName string, topicName string, options *TopicsClientListSharedAccessKeysOptions) (TopicsClientListSharedAccessKeysResponse, error)
ListSharedAccessKeys - List the two keys used to publish to a topic. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- topicName - Name of the topic.
- options - TopicsClientListSharedAccessKeysOptions contains the optional parameters for the TopicsClient.ListSharedAccessKeys method.
func (*TopicsClient) NewListByResourceGroupPager ¶
func (client *TopicsClient) NewListByResourceGroupPager(resourceGroupName string, options *TopicsClientListByResourceGroupOptions) *runtime.Pager[TopicsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the topics under a resource group.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- options - TopicsClientListByResourceGroupOptions contains the optional parameters for the TopicsClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_ListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewTopicsClient().NewListByResourceGroupPager("examplerg", &armeventgrid.TopicsClientListByResourceGroupOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.TopicsListResult = armeventgrid.TopicsListResult{
// Value: []*armeventgrid.Topic{
// {
// Name: to.Ptr("exampletopic1"),
// Type: to.Ptr("Microsoft.EventGrid/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1"),
// Location: to.Ptr("westus2"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.TopicProperties{
// Endpoint: to.Ptr("https://exampletopic1.westus2-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.TopicProvisioningStateSucceeded),
// },
// },
// {
// Name: to.Ptr("exampletopic2"),
// Type: to.Ptr("Microsoft.EventGrid/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2"),
// Location: to.Ptr("westcentralus"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.TopicProperties{
// Endpoint: to.Ptr("https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.TopicProvisioningStateSucceeded),
// },
// }},
// }
}
func (*TopicsClient) NewListBySubscriptionPager ¶
func (client *TopicsClient) NewListBySubscriptionPager(options *TopicsClientListBySubscriptionOptions) *runtime.Pager[TopicsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all the topics under an Azure subscription.
Generated from API version 2024-06-01-preview
- options - TopicsClientListBySubscriptionOptions contains the optional parameters for the TopicsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_ListBySubscription.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewTopicsClient().NewListBySubscriptionPager(&armeventgrid.TopicsClientListBySubscriptionOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.TopicsListResult = armeventgrid.TopicsListResult{
// Value: []*armeventgrid.Topic{
// {
// Name: to.Ptr("exampletopic1"),
// Type: to.Ptr("Microsoft.EventGrid/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1"),
// Location: to.Ptr("westus2"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.TopicProperties{
// Endpoint: to.Ptr("https://exampletopic1.westus2-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.TopicProvisioningStateSucceeded),
// },
// },
// {
// Name: to.Ptr("exampletopic2"),
// Type: to.Ptr("Microsoft.EventGrid/topics"),
// ID: to.Ptr("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2"),
// Location: to.Ptr("westcentralus"),
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// Properties: &armeventgrid.TopicProperties{
// Endpoint: to.Ptr("https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events"),
// ProvisioningState: to.Ptr(armeventgrid.TopicProvisioningStateSucceeded),
// },
// }},
// }
}
func (*TopicsClient) NewListEventTypesPager ¶
func (client *TopicsClient) NewListEventTypesPager(resourceGroupName string, providerNamespace string, resourceTypeName string, resourceName string, options *TopicsClientListEventTypesOptions) *runtime.Pager[TopicsClientListEventTypesResponse]
NewListEventTypesPager - List event types for a topic.
Generated from API version 2024-06-01-preview
- resourceGroupName - The name of the resource group within the user's subscription.
- providerNamespace - Namespace of the provider of the topic.
- resourceTypeName - Name of the topic type.
- resourceName - Name of the topic.
- options - TopicsClientListEventTypesOptions contains the optional parameters for the TopicsClient.NewListEventTypesPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_ListEventTypes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewTopicsClient().NewListEventTypesPager("examplerg", "Microsoft.Storage", "storageAccounts", "ExampleStorageAccount", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.EventTypesListResult = armeventgrid.EventTypesListResult{
// Value: []*armeventgrid.EventType{
// {
// Name: to.Ptr("Microsoft.Storage.BlobCreated"),
// Type: to.Ptr("Microsoft.EventGrid/topicTypes/eventTypes"),
// ID: to.Ptr("providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated"),
// Properties: &armeventgrid.EventTypeProperties{
// Description: to.Ptr("Raised when a blob is created."),
// DisplayName: to.Ptr("Blob Created"),
// SchemaURL: to.Ptr("tbd"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Storage.BlobDeleted"),
// Type: to.Ptr("Microsoft.EventGrid/topicTypes/eventTypes"),
// ID: to.Ptr("providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted"),
// Properties: &armeventgrid.EventTypeProperties{
// Description: to.Ptr("Raised when a blob is deleted."),
// DisplayName: to.Ptr("Blob Deleted"),
// SchemaURL: to.Ptr("tbd"),
// },
// }},
// }
}
type TopicsClientBeginCreateOrUpdateOptions ¶
type TopicsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TopicsClientBeginCreateOrUpdateOptions contains the optional parameters for the TopicsClient.BeginCreateOrUpdate method.
type TopicsClientBeginDeleteOptions ¶
type TopicsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TopicsClientBeginDeleteOptions contains the optional parameters for the TopicsClient.BeginDelete method.
type TopicsClientBeginRegenerateKeyOptions ¶
type TopicsClientBeginRegenerateKeyOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TopicsClientBeginRegenerateKeyOptions contains the optional parameters for the TopicsClient.BeginRegenerateKey method.
type TopicsClientBeginUpdateOptions ¶
type TopicsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TopicsClientBeginUpdateOptions contains the optional parameters for the TopicsClient.BeginUpdate method.
type TopicsClientCreateOrUpdateResponse ¶
type TopicsClientCreateOrUpdateResponse struct {
// EventGrid Topic
Topic
}
TopicsClientCreateOrUpdateResponse contains the response from method TopicsClient.BeginCreateOrUpdate.
type TopicsClientDeleteResponse ¶
type TopicsClientDeleteResponse struct {
}
TopicsClientDeleteResponse contains the response from method TopicsClient.BeginDelete.
type TopicsClientGetOptions ¶
type TopicsClientGetOptions struct {
}
TopicsClientGetOptions contains the optional parameters for the TopicsClient.Get method.
type TopicsClientGetResponse ¶
type TopicsClientGetResponse struct {
// EventGrid Topic
Topic
}
TopicsClientGetResponse contains the response from method TopicsClient.Get.
type TopicsClientListByResourceGroupOptions ¶
type TopicsClientListByResourceGroupOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
TopicsClientListByResourceGroupOptions contains the optional parameters for the TopicsClient.NewListByResourceGroupPager method.
type TopicsClientListByResourceGroupResponse ¶
type TopicsClientListByResourceGroupResponse struct {
// Result of the List Topics operation
TopicsListResult
}
TopicsClientListByResourceGroupResponse contains the response from method TopicsClient.NewListByResourceGroupPager.
type TopicsClientListBySubscriptionOptions ¶
type TopicsClientListBySubscriptionOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
TopicsClientListBySubscriptionOptions contains the optional parameters for the TopicsClient.NewListBySubscriptionPager method.
type TopicsClientListBySubscriptionResponse ¶
type TopicsClientListBySubscriptionResponse struct {
// Result of the List Topics operation
TopicsListResult
}
TopicsClientListBySubscriptionResponse contains the response from method TopicsClient.NewListBySubscriptionPager.
type TopicsClientListEventTypesOptions ¶
type TopicsClientListEventTypesOptions struct {
}
TopicsClientListEventTypesOptions contains the optional parameters for the TopicsClient.NewListEventTypesPager method.
type TopicsClientListEventTypesResponse ¶
type TopicsClientListEventTypesResponse struct {
// Result of the List Event Types operation
EventTypesListResult
}
TopicsClientListEventTypesResponse contains the response from method TopicsClient.NewListEventTypesPager.
type TopicsClientListSharedAccessKeysOptions ¶
type TopicsClientListSharedAccessKeysOptions struct {
}
TopicsClientListSharedAccessKeysOptions contains the optional parameters for the TopicsClient.ListSharedAccessKeys method.
type TopicsClientListSharedAccessKeysResponse ¶
type TopicsClientListSharedAccessKeysResponse struct {
TopicSharedAccessKeys
}
TopicsClientListSharedAccessKeysResponse contains the response from method TopicsClient.ListSharedAccessKeys.
type TopicsClientRegenerateKeyResponse ¶
type TopicsClientRegenerateKeyResponse struct {
TopicSharedAccessKeys
}
TopicsClientRegenerateKeyResponse contains the response from method TopicsClient.BeginRegenerateKey.
type TopicsClientUpdateResponse ¶
type TopicsClientUpdateResponse struct {
// EventGrid Topic
Topic
}
TopicsClientUpdateResponse contains the response from method TopicsClient.BeginUpdate.
type TopicsConfiguration ¶
type TopicsConfiguration struct {
// List of custom domain configurations for the namespace.
CustomDomains []*CustomDomainConfiguration
// READ-ONLY; The hostname for the topics configuration. This is a read-only property.
Hostname *string
}
TopicsConfiguration - Properties of the Topics Configuration.
func (TopicsConfiguration) MarshalJSON ¶
func (t TopicsConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicsConfiguration.
func (*TopicsConfiguration) UnmarshalJSON ¶
func (t *TopicsConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicsConfiguration.
type TopicsListResult ¶
type TopicsListResult struct {
// A link for the next page of topics
NextLink *string
// A collection of Topics
Value []*Topic
}
TopicsListResult - Result of the List Topics operation
func (TopicsListResult) MarshalJSON ¶
func (t TopicsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopicsListResult.
func (*TopicsListResult) UnmarshalJSON ¶
func (t *TopicsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopicsListResult.
type TrackedResource ¶
type TrackedResource struct {
// REQUIRED; Location of the resource.
Location *string
// Tags of the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; Type of the resource.
Type *string
}
TrackedResource - Definition of a Tracked Resource.
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
func (*TrackedResource) UnmarshalJSON ¶
func (t *TrackedResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.
type UpdateTopicSpacesConfigurationInfo ¶
type UpdateTopicSpacesConfigurationInfo struct {
// Client authentication settings for topic spaces configuration.
ClientAuthentication *ClientAuthenticationSettings
// Custom domain info for topic spaces configuration.
CustomDomains []*CustomDomainConfiguration
// The maximum number of sessions per authentication name. The property default value is 1. Min allowed value is 1 and max
// allowed value is 100.
MaximumClientSessionsPerAuthenticationName *int32
// The maximum session expiry in hours. The property default value is 1 hour. Min allowed value is 1 hour and max allowed
// value is 8 hours.
MaximumSessionExpiryInHours *int32
// This property is used to specify custom topic to which events will be routed to from topic spaces configuration under namespace.
RouteTopicResourceID *string
// Routing enrichments for topic spaces configuration.
RoutingEnrichments *RoutingEnrichments
// Routing identity info for topic spaces configuration.
RoutingIdentityInfo *RoutingIdentityInfo
// Indicate if Topic Spaces Configuration is enabled for the namespace. Default is Disabled.
State *TopicSpacesConfigurationState
}
UpdateTopicSpacesConfigurationInfo - Properties of the topic spaces configuration info of a namespace.
func (UpdateTopicSpacesConfigurationInfo) MarshalJSON ¶
func (u UpdateTopicSpacesConfigurationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateTopicSpacesConfigurationInfo.
func (*UpdateTopicSpacesConfigurationInfo) UnmarshalJSON ¶
func (u *UpdateTopicSpacesConfigurationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UpdateTopicSpacesConfigurationInfo.
type UpdateTopicsConfigurationInfo ¶
type UpdateTopicsConfigurationInfo struct {
// Custom domain info for topics configuration.
CustomDomains []*CustomDomainConfiguration
}
UpdateTopicsConfigurationInfo - Properties of the topics configuration info of a namespace.
func (UpdateTopicsConfigurationInfo) MarshalJSON ¶
func (u UpdateTopicsConfigurationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateTopicsConfigurationInfo.
func (*UpdateTopicsConfigurationInfo) UnmarshalJSON ¶
func (u *UpdateTopicsConfigurationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UpdateTopicsConfigurationInfo.
type UserIdentityProperties ¶
type UserIdentityProperties struct {
// The client id of user assigned identity.
ClientID *string
// The principal id of user assigned identity.
PrincipalID *string
}
UserIdentityProperties - The information about the user identity.
func (UserIdentityProperties) MarshalJSON ¶
func (u UserIdentityProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserIdentityProperties.
func (*UserIdentityProperties) UnmarshalJSON ¶
func (u *UserIdentityProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserIdentityProperties.
type VerifiedPartner ¶
type VerifiedPartner struct {
// Properties of the verified partner.
Properties *VerifiedPartnerProperties
// READ-ONLY; Fully qualified identifier of the resource.
ID *string
// READ-ONLY; Name of the resource.
Name *string
// READ-ONLY; The system metadata relating to Verified Partner resource.
SystemData *SystemData
// READ-ONLY; Type of the resource.
Type *string
}
VerifiedPartner - Verified partner information
func (VerifiedPartner) MarshalJSON ¶
func (v VerifiedPartner) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VerifiedPartner.
func (*VerifiedPartner) UnmarshalJSON ¶
func (v *VerifiedPartner) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VerifiedPartner.
type VerifiedPartnerProperties ¶
type VerifiedPartnerProperties struct {
// Official name of the Partner.
OrganizationName *string
// Details of the partner destination scenario.
PartnerDestinationDetails *PartnerDetails
// Display name of the verified partner.
PartnerDisplayName *string
// ImmutableId of the corresponding partner registration.
PartnerRegistrationImmutableID *string
// Details of the partner topic scenario.
PartnerTopicDetails *PartnerDetails
// Provisioning state of the verified partner.
ProvisioningState *VerifiedPartnerProvisioningState
}
VerifiedPartnerProperties - Properties of the verified partner.
func (VerifiedPartnerProperties) MarshalJSON ¶
func (v VerifiedPartnerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VerifiedPartnerProperties.
func (*VerifiedPartnerProperties) UnmarshalJSON ¶
func (v *VerifiedPartnerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VerifiedPartnerProperties.
type VerifiedPartnerProvisioningState ¶
type VerifiedPartnerProvisioningState string
VerifiedPartnerProvisioningState - Provisioning state of the verified partner.
const ( VerifiedPartnerProvisioningStateCanceled VerifiedPartnerProvisioningState = "Canceled" VerifiedPartnerProvisioningStateCreating VerifiedPartnerProvisioningState = "Creating" VerifiedPartnerProvisioningStateDeleting VerifiedPartnerProvisioningState = "Deleting" VerifiedPartnerProvisioningStateFailed VerifiedPartnerProvisioningState = "Failed" VerifiedPartnerProvisioningStateSucceeded VerifiedPartnerProvisioningState = "Succeeded" VerifiedPartnerProvisioningStateUpdating VerifiedPartnerProvisioningState = "Updating" )
func PossibleVerifiedPartnerProvisioningStateValues ¶
func PossibleVerifiedPartnerProvisioningStateValues() []VerifiedPartnerProvisioningState
PossibleVerifiedPartnerProvisioningStateValues returns the possible values for the VerifiedPartnerProvisioningState const type.
type VerifiedPartnersClient ¶
type VerifiedPartnersClient struct {
// contains filtered or unexported fields
}
VerifiedPartnersClient contains the methods for the VerifiedPartners group. Don't use this type directly, use NewVerifiedPartnersClient() instead.
func NewVerifiedPartnersClient ¶
func NewVerifiedPartnersClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*VerifiedPartnersClient, error)
NewVerifiedPartnersClient creates a new instance of VerifiedPartnersClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*VerifiedPartnersClient) Get ¶
func (client *VerifiedPartnersClient) Get(ctx context.Context, verifiedPartnerName string, options *VerifiedPartnersClientGetOptions) (VerifiedPartnersClientGetResponse, error)
Get - Get properties of a verified partner. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-06-01-preview
- verifiedPartnerName - Name of the verified partner.
- options - VerifiedPartnersClientGetOptions contains the optional parameters for the VerifiedPartnersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/VerifiedPartners_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewVerifiedPartnersClient().Get(ctx, "Contoso.Finance", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.VerifiedPartner = armeventgrid.VerifiedPartner{
// Name: to.Ptr("Contoso.Finance"),
// Type: to.Ptr("Microsoft.EventGrid/verifiedPartners"),
// ID: to.Ptr("/providers/Microsoft.EventGrid/verifiedPartners/Contoso.Finance"),
// Properties: &armeventgrid.VerifiedPartnerProperties{
// OrganizationName: to.Ptr("Contoso"),
// PartnerDestinationDetails: &armeventgrid.PartnerDetails{
// Description: to.Ptr("This is custom description"),
// LongDescription: to.Ptr("This is long custom description"),
// SetupURI: to.Ptr("https://www.example.com/"),
// },
// PartnerDisplayName: to.Ptr("Contoso - Finance Department"),
// PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
// PartnerTopicDetails: &armeventgrid.PartnerDetails{
// Description: to.Ptr("This is short description"),
// LongDescription: to.Ptr("This is really long long... long description"),
// SetupURI: to.Ptr("https://www.example.com/"),
// },
// },
// }
func (*VerifiedPartnersClient) NewListPager ¶
func (client *VerifiedPartnersClient) NewListPager(options *VerifiedPartnersClientListOptions) *runtime.Pager[VerifiedPartnersClientListResponse]
NewListPager - Get a list of all verified partners.
Generated from API version 2024-06-01-preview
- options - VerifiedPartnersClientListOptions contains the optional parameters for the VerifiedPartnersClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/VerifiedPartners_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armeventgrid.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewVerifiedPartnersClient().NewListPager(&armeventgrid.VerifiedPartnersClientListOptions{Filter: nil,
Top: nil,
})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.VerifiedPartnersListResult = armeventgrid.VerifiedPartnersListResult{
// Value: []*armeventgrid.VerifiedPartner{
// {
// Name: to.Ptr("Contoso.Finance"),
// Type: to.Ptr("Microsoft.EventGrid/verifiedPartners"),
// ID: to.Ptr("/providers/Microsoft.EventGrid/verifiedPartners/Contoso.Finance"),
// Properties: &armeventgrid.VerifiedPartnerProperties{
// OrganizationName: to.Ptr("Contoso"),
// PartnerDestinationDetails: &armeventgrid.PartnerDetails{
// Description: to.Ptr("This is custom description"),
// LongDescription: to.Ptr("This is long custom description"),
// SetupURI: to.Ptr("https://www.example.com/"),
// },
// PartnerDisplayName: to.Ptr("Contoso - Finance Department"),
// PartnerRegistrationImmutableID: to.Ptr("941892bc-f5d0-4d1c-8fb5-477570fc2b71"),
// PartnerTopicDetails: &armeventgrid.PartnerDetails{
// Description: to.Ptr("This is short description"),
// LongDescription: to.Ptr("This is really long long... long description"),
// SetupURI: to.Ptr("https://www.example.com/"),
// },
// },
// }},
// }
}
type VerifiedPartnersClientGetOptions ¶
type VerifiedPartnersClientGetOptions struct {
}
VerifiedPartnersClientGetOptions contains the optional parameters for the VerifiedPartnersClient.Get method.
type VerifiedPartnersClientGetResponse ¶
type VerifiedPartnersClientGetResponse struct {
// Verified partner information
VerifiedPartner
}
VerifiedPartnersClientGetResponse contains the response from method VerifiedPartnersClient.Get.
type VerifiedPartnersClientListOptions ¶
type VerifiedPartnersClientListOptions struct {
// The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and
// with limited number of OData operations. These operations are: the 'contains'
// function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
// operations are supported. The following is a valid filter example:
// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location
// eq 'westus'.
Filter *string
// The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified,
// the default number of results to be returned is 20 items per page.
Top *int32
}
VerifiedPartnersClientListOptions contains the optional parameters for the VerifiedPartnersClient.NewListPager method.
type VerifiedPartnersClientListResponse ¶
type VerifiedPartnersClientListResponse struct {
// Result of the List verified partners operation
VerifiedPartnersListResult
}
VerifiedPartnersClientListResponse contains the response from method VerifiedPartnersClient.NewListPager.
type VerifiedPartnersListResult ¶
type VerifiedPartnersListResult struct {
// A link for the next page of verified partners if any.
NextLink *string
// A collection of verified partners.
Value []*VerifiedPartner
}
VerifiedPartnersListResult - Result of the List verified partners operation
func (VerifiedPartnersListResult) MarshalJSON ¶
func (v VerifiedPartnersListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VerifiedPartnersListResult.
func (*VerifiedPartnersListResult) UnmarshalJSON ¶
func (v *VerifiedPartnersListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VerifiedPartnersListResult.
type WebHookEventSubscriptionDestination ¶
type WebHookEventSubscriptionDestination struct {
// REQUIRED; Type of the endpoint for the event subscription destination.
EndpointType *EndpointType
// WebHook Properties of the event subscription destination.
Properties *WebHookEventSubscriptionDestinationProperties
}
WebHookEventSubscriptionDestination - Information about the webhook destination for an event subscription.
func (*WebHookEventSubscriptionDestination) GetEventSubscriptionDestination ¶
func (w *WebHookEventSubscriptionDestination) GetEventSubscriptionDestination() *EventSubscriptionDestination
GetEventSubscriptionDestination implements the EventSubscriptionDestinationClassification interface for type WebHookEventSubscriptionDestination.
func (WebHookEventSubscriptionDestination) MarshalJSON ¶
func (w WebHookEventSubscriptionDestination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebHookEventSubscriptionDestination.
func (*WebHookEventSubscriptionDestination) UnmarshalJSON ¶
func (w *WebHookEventSubscriptionDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebHookEventSubscriptionDestination.
type WebHookEventSubscriptionDestinationProperties ¶
type WebHookEventSubscriptionDestinationProperties struct {
// The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery
// requests.
AzureActiveDirectoryApplicationIDOrURI *string
// The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
AzureActiveDirectoryTenantID *string
// Delivery attribute details.
DeliveryAttributeMappings []DeliveryAttributeMappingClassification
// The URL that represents the endpoint of the destination of an event subscription.
EndpointURL *string
// Maximum number of events per batch.
MaxEventsPerBatch *int32
// Minimum TLS version that should be supported by webhook endpoint
MinimumTLSVersionAllowed *TLSVersion
// Preferred batch size in Kilobytes.
PreferredBatchSizeInKilobytes *int32
// READ-ONLY; The base URL that represents the endpoint of the destination of an event subscription.
EndpointBaseURL *string
}
WebHookEventSubscriptionDestinationProperties - Information about the webhook destination properties for an event subscription.
func (WebHookEventSubscriptionDestinationProperties) MarshalJSON ¶
func (w WebHookEventSubscriptionDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebHookEventSubscriptionDestinationProperties.
func (*WebHookEventSubscriptionDestinationProperties) UnmarshalJSON ¶
func (w *WebHookEventSubscriptionDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebHookEventSubscriptionDestinationProperties.
type WebhookPartnerDestinationInfo ¶
type WebhookPartnerDestinationInfo struct {
// REQUIRED; Type of the endpoint for the partner destination
EndpointType *PartnerEndpointType
// Azure subscription ID of the subscriber. The partner destination associated with the channel will be created under this
// Azure subscription.
AzureSubscriptionID *string
// Additional context of the partner destination endpoint.
EndpointServiceContext *string
// Name of the partner destination associated with the channel.
Name *string
// WebHook Properties of the partner destination.
Properties *WebhookPartnerDestinationProperties
// Azure Resource Group of the subscriber. The partner destination associated with the channel will be created under this
// resource group.
ResourceGroupName *string
// Change history of the resource move.
ResourceMoveChangeHistory []*ResourceMoveChangeHistory
}
WebhookPartnerDestinationInfo - Information about the WebHook of the partner destination.
func (*WebhookPartnerDestinationInfo) GetPartnerDestinationInfo ¶
func (w *WebhookPartnerDestinationInfo) GetPartnerDestinationInfo() *PartnerDestinationInfo
GetPartnerDestinationInfo implements the PartnerDestinationInfoClassification interface for type WebhookPartnerDestinationInfo.
func (WebhookPartnerDestinationInfo) MarshalJSON ¶
func (w WebhookPartnerDestinationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebhookPartnerDestinationInfo.
func (*WebhookPartnerDestinationInfo) UnmarshalJSON ¶
func (w *WebhookPartnerDestinationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebhookPartnerDestinationInfo.
type WebhookPartnerDestinationProperties ¶
type WebhookPartnerDestinationProperties struct {
// Partner client authentication
ClientAuthentication PartnerClientAuthenticationClassification
// The base URL that represents the endpoint of the partner destination.
EndpointBaseURL *string
// The URL that represents the endpoint of the partner destination.
EndpointURL *string
}
WebhookPartnerDestinationProperties - Properties of a partner destination webhook.
func (WebhookPartnerDestinationProperties) MarshalJSON ¶
func (w WebhookPartnerDestinationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebhookPartnerDestinationProperties.
func (*WebhookPartnerDestinationProperties) UnmarshalJSON ¶
func (w *WebhookPartnerDestinationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebhookPartnerDestinationProperties.
type WebhookUpdatePartnerDestinationInfo ¶
type WebhookUpdatePartnerDestinationInfo struct {
// REQUIRED; Type of the endpoint for the partner destination
EndpointType *PartnerEndpointType
// WebHook Properties of the partner destination.
Properties *WebhookPartnerDestinationProperties
}
WebhookUpdatePartnerDestinationInfo - Information about the update of the WebHook of the partner destination.
func (*WebhookUpdatePartnerDestinationInfo) GetPartnerUpdateDestinationInfo ¶
func (w *WebhookUpdatePartnerDestinationInfo) GetPartnerUpdateDestinationInfo() *PartnerUpdateDestinationInfo
GetPartnerUpdateDestinationInfo implements the PartnerUpdateDestinationInfoClassification interface for type WebhookUpdatePartnerDestinationInfo.
func (WebhookUpdatePartnerDestinationInfo) MarshalJSON ¶
func (w WebhookUpdatePartnerDestinationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebhookUpdatePartnerDestinationInfo.
func (*WebhookUpdatePartnerDestinationInfo) UnmarshalJSON ¶
func (w *WebhookUpdatePartnerDestinationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebhookUpdatePartnerDestinationInfo.
Source Files
¶
- build.go
- cacertificates_client.go
- channels_client.go
- client_factory.go
- clientgroups_client.go
- clients_client.go
- constants.go
- domaineventsubscriptions_client.go
- domains_client.go
- domaintopiceventsubscriptions_client.go
- domaintopics_client.go
- eventsubscriptions_client.go
- extensiontopics_client.go
- interfaces.go
- models.go
- models_serde.go
- namespaces_client.go
- namespacetopiceventsubscriptions_client.go
- namespacetopics_client.go
- networksecurityperimeterconfigurations_client.go
- operations_client.go
- options.go
- partnerconfigurations_client.go
- partnerdestinations_client.go
- partnernamespaces_client.go
- partnerregistrations_client.go
- partnertopiceventsubscriptions_client.go
- partnertopics_client.go
- permissionbindings_client.go
- polymorphic_helpers.go
- privateendpointconnections_client.go
- privatelinkresources_client.go
- responses.go
- systemtopiceventsubscriptions_client.go
- systemtopics_client.go
- time_rfc3339.go
- topiceventsubscriptions_client.go
- topics_client.go
- topicspaces_client.go
- topictypes_client.go
- verifiedpartners_client.go