зеркало из
1
0
Форкнуть 0

genereate azure_mgmt_event_grid:v0.21.0

This commit is contained in:
Kai Ru 2021-02-26 14:11:04 +08:00
Родитель 6024df729f
Коммит 56666a8c61
161 изменённых файлов: 27282 добавлений и 209 удалений

Просмотреть файл

@ -138,7 +138,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -138,7 +138,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -138,7 +138,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -138,7 +138,7 @@ module Azure::EventGrid::Mgmt::V2018_05_01_preview
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -146,7 +146,7 @@ module Azure::EventGrid::Mgmt::V2018_09_15_preview
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -138,7 +138,7 @@ module Azure::EventGrid::Mgmt::V2019_01_01
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -146,7 +146,7 @@ module Azure::EventGrid::Mgmt::V2019_02_01_preview
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -146,7 +146,7 @@ module Azure::EventGrid::Mgmt::V2019_06_01
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -146,7 +146,7 @@ module Azure::EventGrid::Mgmt::V2020_01_01_preview
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -187,7 +187,7 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -154,7 +154,7 @@ module Azure::EventGrid::Mgmt::V2020_06_01
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.20.2"
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -0,0 +1,171 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
require 'uri'
require 'cgi'
require 'date'
require 'json'
require 'base64'
require 'erb'
require 'securerandom'
require 'time'
require 'timeliness'
require 'faraday'
require 'faraday-cookie_jar'
require 'concurrent'
require 'ms_rest'
require '2020-10-15-preview/generated/azure_mgmt_event_grid/module_definition'
require 'ms_rest_azure'
module Azure::EventGrid::Mgmt::V2020_10_15_preview
autoload :Domains, '2020-10-15-preview/generated/azure_mgmt_event_grid/domains.rb'
autoload :DomainTopics, '2020-10-15-preview/generated/azure_mgmt_event_grid/domain_topics.rb'
autoload :EventChannels, '2020-10-15-preview/generated/azure_mgmt_event_grid/event_channels.rb'
autoload :EventSubscriptions, '2020-10-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb'
autoload :SystemTopicEventSubscriptions, '2020-10-15-preview/generated/azure_mgmt_event_grid/system_topic_event_subscriptions.rb'
autoload :PartnerTopicEventSubscriptions, '2020-10-15-preview/generated/azure_mgmt_event_grid/partner_topic_event_subscriptions.rb'
autoload :Operations, '2020-10-15-preview/generated/azure_mgmt_event_grid/operations.rb'
autoload :PartnerNamespaces, '2020-10-15-preview/generated/azure_mgmt_event_grid/partner_namespaces.rb'
autoload :PartnerRegistrations, '2020-10-15-preview/generated/azure_mgmt_event_grid/partner_registrations.rb'
autoload :PartnerTopics, '2020-10-15-preview/generated/azure_mgmt_event_grid/partner_topics.rb'
autoload :PrivateEndpointConnections, '2020-10-15-preview/generated/azure_mgmt_event_grid/private_endpoint_connections.rb'
autoload :PrivateLinkResources, '2020-10-15-preview/generated/azure_mgmt_event_grid/private_link_resources.rb'
autoload :SystemTopics, '2020-10-15-preview/generated/azure_mgmt_event_grid/system_topics.rb'
autoload :Topics, '2020-10-15-preview/generated/azure_mgmt_event_grid/topics.rb'
autoload :ExtensionTopics, '2020-10-15-preview/generated/azure_mgmt_event_grid/extension_topics.rb'
autoload :TopicTypes, '2020-10-15-preview/generated/azure_mgmt_event_grid/topic_types.rb'
autoload :EventGridManagementClient, '2020-10-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb'
module Models
autoload :DeadLetterDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb'
autoload :DeadLetterWithResourceIdentity, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/dead_letter_with_resource_identity.rb'
autoload :ConnectionState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/connection_state.rb'
autoload :DeliveryAttributeMapping, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/delivery_attribute_mapping.rb'
autoload :InputSchemaMapping, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb'
autoload :PartnerTopicUpdateParameters, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_topic_update_parameters.rb'
autoload :ResourceSku, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/resource_sku.rb'
autoload :PartnerTopicsListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_topics_list_result.rb'
autoload :IdentityInfo, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/identity_info.rb'
autoload :EventChannelsListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_channels_list_result.rb'
autoload :JsonField, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/json_field.rb'
autoload :EventSubscriptionDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb'
autoload :DeliveryAttributeListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/delivery_attribute_list_result.rb'
autoload :EventSubscriptionsListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb'
autoload :SystemData, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/system_data.rb'
autoload :EventSubscriptionFullUrl, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb'
autoload :DomainUpdateParameters, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb'
autoload :EventSubscriptionUpdateParameters, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb'
autoload :DomainSharedAccessKeys, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb'
autoload :PrivateLinkResource, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/private_link_resource.rb'
autoload :PartnerRegistrationsListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_registrations_list_result.rb'
autoload :PrivateLinkResourcesListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/private_link_resources_list_result.rb'
autoload :EventChannelSource, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_channel_source.rb'
autoload :SystemTopicUpdateParameters, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/system_topic_update_parameters.rb'
autoload :AdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb'
autoload :SystemTopicsListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/system_topics_list_result.rb'
autoload :PartnerRegistrationUpdateParameters, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_registration_update_parameters.rb'
autoload :UserIdentityProperties, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/user_identity_properties.rb'
autoload :PartnerNamespaceRegenerateKeyRequest, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_namespace_regenerate_key_request.rb'
autoload :Resource, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/resource.rb'
autoload :PartnerNamespacesListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_namespaces_list_result.rb'
autoload :JsonFieldWithDefault, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb'
autoload :PrivateEndpointConnectionListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/private_endpoint_connection_list_result.rb'
autoload :ExtendedLocation, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/extended_location.rb'
autoload :Operation, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/operation.rb'
autoload :EventSubscriptionIdentity, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_identity.rb'
autoload :PartnerRegistrationEventTypesListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_registration_event_types_list_result.rb'
autoload :DeliveryWithResourceIdentity, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/delivery_with_resource_identity.rb'
autoload :DomainsListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb'
autoload :EventSubscriptionFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb'
autoload :DomainTopicsListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb'
autoload :RetryPolicy, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb'
autoload :EventChannelFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_channel_filter.rb'
autoload :PrivateEndpoint, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/private_endpoint.rb'
autoload :PartnerNamespaceSharedAccessKeys, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_namespace_shared_access_keys.rb'
autoload :PartnerNamespaceUpdateParameters, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_namespace_update_parameters.rb'
autoload :TopicUpdateParameters, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb'
autoload :OperationInfo, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb'
autoload :InboundIpRule, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/inbound_ip_rule.rb'
autoload :DomainRegenerateKeyRequest, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb'
autoload :EventTypesListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb'
autoload :TopicTypesListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb'
autoload :PartnerTopicTypesListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_topic_types_list_result.rb'
autoload :TopicRegenerateKeyRequest, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb'
autoload :OperationsListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb'
autoload :TopicSharedAccessKeys, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb'
autoload :EventChannelDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_channel_destination.rb'
autoload :TopicsListResult, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb'
autoload :PrivateEndpointConnection, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/private_endpoint_connection.rb'
autoload :JsonInputSchemaMapping, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb'
autoload :TrackedResource, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb'
autoload :Domain, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/domain.rb'
autoload :DomainTopic, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb'
autoload :NumberInAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb'
autoload :NumberNotInAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb'
autoload :NumberLessThanAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb'
autoload :NumberGreaterThanAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb'
autoload :NumberLessThanOrEqualsAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb'
autoload :NumberGreaterThanOrEqualsAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb'
autoload :BoolEqualsAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb'
autoload :StringInAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb'
autoload :StringNotInAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb'
autoload :StringBeginsWithAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb'
autoload :StringEndsWithAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb'
autoload :StringContainsAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb'
autoload :NumberInRangeAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/number_in_range_advanced_filter.rb'
autoload :NumberNotInRangeAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/number_not_in_range_advanced_filter.rb'
autoload :StringNotBeginsWithAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/string_not_begins_with_advanced_filter.rb'
autoload :StringNotEndsWithAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/string_not_ends_with_advanced_filter.rb'
autoload :StringNotContainsAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/string_not_contains_advanced_filter.rb'
autoload :IsNullOrUndefinedAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/is_null_or_undefined_advanced_filter.rb'
autoload :IsNotNullAdvancedFilter, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/is_not_null_advanced_filter.rb'
autoload :EventChannel, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_channel.rb'
autoload :StaticDeliveryAttributeMapping, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/static_delivery_attribute_mapping.rb'
autoload :DynamicDeliveryAttributeMapping, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/dynamic_delivery_attribute_mapping.rb'
autoload :StorageBlobDeadLetterDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb'
autoload :WebHookEventSubscriptionDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb'
autoload :EventHubEventSubscriptionDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb'
autoload :StorageQueueEventSubscriptionDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb'
autoload :HybridConnectionEventSubscriptionDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb'
autoload :ServiceBusQueueEventSubscriptionDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb'
autoload :ServiceBusTopicEventSubscriptionDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/service_bus_topic_event_subscription_destination.rb'
autoload :AzureFunctionEventSubscriptionDestination, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/azure_function_event_subscription_destination.rb'
autoload :EventSubscription, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb'
autoload :PartnerNamespace, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_namespace.rb'
autoload :PartnerRegistration, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_registration.rb'
autoload :EventType, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb'
autoload :PartnerTopic, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_topic.rb'
autoload :PartnerTopicType, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_topic_type.rb'
autoload :SystemTopic, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/system_topic.rb'
autoload :Topic, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/topic.rb'
autoload :ExtensionTopic, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/extension_topic.rb'
autoload :TopicTypeInfo, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb'
autoload :PersistedConnectionStatus, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/persisted_connection_status.rb'
autoload :ResourceProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/resource_provisioning_state.rb'
autoload :DomainProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb'
autoload :InputSchema, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/input_schema.rb'
autoload :PublicNetworkAccess, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/public_network_access.rb'
autoload :IpActionType, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/ip_action_type.rb'
autoload :Sku, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/sku.rb'
autoload :IdentityType, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/identity_type.rb'
autoload :CreatedByType, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/created_by_type.rb'
autoload :DomainTopicProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb'
autoload :EventChannelProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_channel_provisioning_state.rb'
autoload :PartnerTopicReadinessState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_topic_readiness_state.rb'
autoload :EventSubscriptionProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb'
autoload :EventSubscriptionIdentityType, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_identity_type.rb'
autoload :EventDeliverySchema, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb'
autoload :PartnerNamespaceProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_namespace_provisioning_state.rb'
autoload :PartnerRegistrationProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_registration_provisioning_state.rb'
autoload :PartnerRegistrationVisibilityState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_registration_visibility_state.rb'
autoload :PartnerTopicProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_topic_provisioning_state.rb'
autoload :PartnerTopicActivationState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_topic_activation_state.rb'
autoload :PartnerTopicTypeAuthorizationState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/partner_topic_type_authorization_state.rb'
autoload :TopicProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb'
autoload :ResourceKind, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/resource_kind.rb'
autoload :ResourceRegionType, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb'
autoload :TopicTypeProvisioningState, '2020-10-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb'
end
end

Просмотреть файл

@ -0,0 +1,699 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
#
# Azure EventGrid Management Client
#
class DomainTopics
include MsRestAzure
#
# Creates and initializes a new instance of the DomainTopics class.
# @param client service class for accessing basic functionality.
#
def initialize(client)
@client = client
end
# @return [EventGridManagementClient] reference to the EventGridManagementClient
attr_reader :client
#
# Get a domain topic.
#
# Get properties of a domain topic.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [DomainTopic] operation results.
#
def get(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
response = get_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end
#
# Get a domain topic.
#
# Get properties of a domain topic.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_with_http_info(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
get_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers).value!
end
#
# Get a domain topic.
#
# Get properties of a domain topic.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the topic.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_async(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
fail ArgumentError, 'domain_topic_name is nil' if domain_topic_name.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{domainTopicName}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'domainName' => domain_name,'domainTopicName' => domain_topic_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::DomainTopic.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# Create or update a domain topic.
#
# Asynchronously creates or updates a new domain topic with the specified
# parameters.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [DomainTopic] operation results.
#
def create_or_update(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
response = create_or_update_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Concurrent::Promise] promise which provides async access to http
# response.
#
def create_or_update_async(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
# Send request
promise = begin_create_or_update_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers)
promise = promise.then do |response|
# Defining deserialization method.
deserialize_method = lambda do |parsed_response|
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::DomainTopic.mapper()
parsed_response = @client.deserialize(result_mapper, parsed_response)
end
# Waiting for response.
@client.get_long_running_operation_result(response, deserialize_method)
end
promise
end
#
# Delete a domain topic.
#
# Delete existing domain topic.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
def delete(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
response = delete_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers).value!
nil
end
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Concurrent::Promise] promise which provides async access to http
# response.
#
def delete_async(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
# Send request
promise = begin_delete_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers)
promise = promise.then do |response|
# Defining deserialization method.
deserialize_method = lambda do |parsed_response|
end
# Waiting for response.
@client.get_long_running_operation_result(response, deserialize_method)
end
promise
end
#
# List domain topics.
#
# List all the topics in a domain.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Domain name.
# @param filter [String] 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'.
# @param top [Integer] 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.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Array<DomainTopic>] operation results.
#
def list_by_domain(resource_group_name, domain_name, filter:nil, top:nil, custom_headers:nil)
first_page = list_by_domain_as_lazy(resource_group_name, domain_name, filter:filter, top:top, custom_headers:custom_headers)
first_page.get_all_items
end
#
# List domain topics.
#
# List all the topics in a domain.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Domain name.
# @param filter [String] 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'.
# @param top [Integer] 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.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_by_domain_with_http_info(resource_group_name, domain_name, filter:nil, top:nil, custom_headers:nil)
list_by_domain_async(resource_group_name, domain_name, filter:filter, top:top, custom_headers:custom_headers).value!
end
#
# List domain topics.
#
# List all the topics in a domain.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Domain name.
# @param filter [String] 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'.
# @param top [Integer] 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.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_by_domain_async(resource_group_name, domain_name, filter:nil, top:nil, custom_headers:nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'domainName' => domain_name},
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::DomainTopicsListResult.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# Create or update a domain topic.
#
# Asynchronously creates or updates a new domain topic with the specified
# parameters.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [DomainTopic] operation results.
#
def begin_create_or_update(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
response = begin_create_or_update_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end
#
# Create or update a domain topic.
#
# Asynchronously creates or updates a new domain topic with the specified
# parameters.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def begin_create_or_update_with_http_info(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
begin_create_or_update_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers).value!
end
#
# Create or update a domain topic.
#
# Asynchronously creates or updates a new domain topic with the specified
# parameters.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def begin_create_or_update_async(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
fail ArgumentError, 'domain_topic_name is nil' if domain_topic_name.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{domainTopicName}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'domainName' => domain_name,'domainTopicName' => domain_topic_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:put, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 201
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
# Deserialize Response
if status_code == 201
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::DomainTopic.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# Delete a domain topic.
#
# Delete existing domain topic.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
#
def begin_delete(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers).value!
nil
end
#
# Delete a domain topic.
#
# Delete existing domain topic.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def begin_delete_with_http_info(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
begin_delete_async(resource_group_name, domain_name, domain_topic_name, custom_headers:custom_headers).value!
end
#
# Delete a domain topic.
#
# Delete existing domain topic.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Name of the domain.
# @param domain_topic_name [String] Name of the domain topic.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def begin_delete_async(resource_group_name, domain_name, domain_topic_name, custom_headers:nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
fail ArgumentError, 'domain_topic_name is nil' if domain_topic_name.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{domainTopicName}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'domainName' => domain_name,'domainTopicName' => domain_topic_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:delete, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200 || status_code == 202 || status_code == 204
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
result
end
promise.execute
end
#
# List domain topics.
#
# List all the topics in a domain.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [DomainTopicsListResult] operation results.
#
def list_by_domain_next(next_page_link, custom_headers:nil)
response = list_by_domain_next_async(next_page_link, custom_headers:custom_headers).value!
response.body unless response.nil?
end
#
# List domain topics.
#
# List all the topics in a domain.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_by_domain_next_with_http_info(next_page_link, custom_headers:nil)
list_by_domain_next_async(next_page_link, custom_headers:custom_headers).value!
end
#
# List domain topics.
#
# List all the topics in a domain.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_by_domain_next_async(next_page_link, custom_headers:nil)
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = '{nextLink}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
skip_encoding_path_params: {'nextLink' => next_page_link},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::DomainTopicsListResult.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# List domain topics.
#
# List all the topics in a domain.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param domain_name [String] Domain name.
# @param filter [String] 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'.
# @param top [Integer] 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.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [DomainTopicsListResult] which provide lazy access to pages of the
# response.
#
def list_by_domain_as_lazy(resource_group_name, domain_name, filter:nil, top:nil, custom_headers:nil)
response = list_by_domain_async(resource_group_name, domain_name, filter:filter, top:top, custom_headers:custom_headers).value!
unless response.nil?
page = response.body
page.next_method = Proc.new do |next_page_link|
list_by_domain_next_async(next_page_link, custom_headers:custom_headers)
end
page
end
end
end
end

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,658 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
#
# Azure EventGrid Management Client
#
class EventChannels
include MsRestAzure
#
# Creates and initializes a new instance of the EventChannels class.
# @param client service class for accessing basic functionality.
#
def initialize(client)
@client = client
end
# @return [EventGridManagementClient] reference to the EventGridManagementClient
attr_reader :client
#
# Get an event channel.
#
# Get properties of an event channel.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [EventChannel] operation results.
#
def get(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:nil)
response = get_async(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end
#
# Get an event channel.
#
# Get properties of an event channel.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_with_http_info(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:nil)
get_async(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:custom_headers).value!
end
#
# Get an event channel.
#
# Get properties of an event channel.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_async(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'partner_namespace_name is nil' if partner_namespace_name.nil?
fail ArgumentError, 'event_channel_name is nil' if event_channel_name.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'partnerNamespaceName' => partner_namespace_name,'eventChannelName' => event_channel_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::EventChannel.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# Create an event channel.
#
# Asynchronously creates a new event channel with the specified parameters.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param event_channel_info [EventChannel] EventChannel information.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [EventChannel] operation results.
#
def create_or_update(resource_group_name, partner_namespace_name, event_channel_name, event_channel_info, custom_headers:nil)
response = create_or_update_async(resource_group_name, partner_namespace_name, event_channel_name, event_channel_info, custom_headers:custom_headers).value!
response.body unless response.nil?
end
#
# Create an event channel.
#
# Asynchronously creates a new event channel with the specified parameters.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param event_channel_info [EventChannel] EventChannel information.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_or_update_with_http_info(resource_group_name, partner_namespace_name, event_channel_name, event_channel_info, custom_headers:nil)
create_or_update_async(resource_group_name, partner_namespace_name, event_channel_name, event_channel_info, custom_headers:custom_headers).value!
end
#
# Create an event channel.
#
# Asynchronously creates a new event channel with the specified parameters.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param event_channel_info [EventChannel] EventChannel information.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_or_update_async(resource_group_name, partner_namespace_name, event_channel_name, event_channel_info, custom_headers:nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'partner_namespace_name is nil' if partner_namespace_name.nil?
fail ArgumentError, 'event_channel_name is nil' if event_channel_name.nil?
fail ArgumentError, 'event_channel_info is nil' if event_channel_info.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
# Serialize Request
request_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::EventChannel.mapper()
request_content = @client.serialize(request_mapper, event_channel_info)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'partnerNamespaceName' => partner_namespace_name,'eventChannelName' => event_channel_name},
query_params: {'api-version' => @client.api_version},
body: request_content,
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:put, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::EventChannel.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# Delete an event channel.
#
# Delete existing event channel.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
def delete(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:nil)
response = delete_async(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:custom_headers).value!
nil
end
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Concurrent::Promise] promise which provides async access to http
# response.
#
def delete_async(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:nil)
# Send request
promise = begin_delete_async(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:custom_headers)
promise = promise.then do |response|
# Defining deserialization method.
deserialize_method = lambda do |parsed_response|
end
# Waiting for response.
@client.get_long_running_operation_result(response, deserialize_method)
end
promise
end
#
# List event channels.
#
# List all the event channels in a partner namespace.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param filter [String] 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'.
# @param top [Integer] 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.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Array<EventChannel>] operation results.
#
def list_by_partner_namespace(resource_group_name, partner_namespace_name, filter:nil, top:nil, custom_headers:nil)
first_page = list_by_partner_namespace_as_lazy(resource_group_name, partner_namespace_name, filter:filter, top:top, custom_headers:custom_headers)
first_page.get_all_items
end
#
# List event channels.
#
# List all the event channels in a partner namespace.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param filter [String] 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'.
# @param top [Integer] 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.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_by_partner_namespace_with_http_info(resource_group_name, partner_namespace_name, filter:nil, top:nil, custom_headers:nil)
list_by_partner_namespace_async(resource_group_name, partner_namespace_name, filter:filter, top:top, custom_headers:custom_headers).value!
end
#
# List event channels.
#
# List all the event channels in a partner namespace.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param filter [String] 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'.
# @param top [Integer] 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.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_by_partner_namespace_async(resource_group_name, partner_namespace_name, filter:nil, top:nil, custom_headers:nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'partner_namespace_name is nil' if partner_namespace_name.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'partnerNamespaceName' => partner_namespace_name},
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::EventChannelsListResult.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# Delete an event channel.
#
# Delete existing event channel.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
#
def begin_delete(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:custom_headers).value!
nil
end
#
# Delete an event channel.
#
# Delete existing event channel.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def begin_delete_with_http_info(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:nil)
begin_delete_async(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:custom_headers).value!
end
#
# Delete an event channel.
#
# Delete existing event channel.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param event_channel_name [String] Name of the event channel.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def begin_delete_async(resource_group_name, partner_namespace_name, event_channel_name, custom_headers:nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'partner_namespace_name is nil' if partner_namespace_name.nil?
fail ArgumentError, 'event_channel_name is nil' if event_channel_name.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'partnerNamespaceName' => partner_namespace_name,'eventChannelName' => event_channel_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:delete, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200 || status_code == 202 || status_code == 204
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
result
end
promise.execute
end
#
# List event channels.
#
# List all the event channels in a partner namespace.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [EventChannelsListResult] operation results.
#
def list_by_partner_namespace_next(next_page_link, custom_headers:nil)
response = list_by_partner_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
response.body unless response.nil?
end
#
# List event channels.
#
# List all the event channels in a partner namespace.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_by_partner_namespace_next_with_http_info(next_page_link, custom_headers:nil)
list_by_partner_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
end
#
# List event channels.
#
# List all the event channels in a partner namespace.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_by_partner_namespace_next_async(next_page_link, custom_headers:nil)
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = '{nextLink}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
skip_encoding_path_params: {'nextLink' => next_page_link},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::EventChannelsListResult.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# List event channels.
#
# List all the event channels in a partner namespace.
#
# @param resource_group_name [String] The name of the resource group within the
# user's subscription.
# @param partner_namespace_name [String] Name of the partner namespace.
# @param filter [String] 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'.
# @param top [Integer] 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.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [EventChannelsListResult] which provide lazy access to pages of the
# response.
#
def list_by_partner_namespace_as_lazy(resource_group_name, partner_namespace_name, filter:nil, top:nil, custom_headers:nil)
response = list_by_partner_namespace_async(resource_group_name, partner_namespace_name, filter:filter, top:top, custom_headers:custom_headers).value!
unless response.nil?
page = response.body
page.next_method = Proc.new do |next_page_link|
list_by_partner_namespace_next_async(next_page_link, custom_headers:custom_headers)
end
page
end
end
end
end

Просмотреть файл

@ -0,0 +1,194 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
#
# A service client - single point of access to the REST API.
#
class EventGridManagementClient < MsRestAzure::AzureServiceClient
include MsRestAzure
include MsRestAzure::Serialization
# @return [String] the base URI of the service.
attr_accessor :base_url
# @return Credentials needed for the client to connect to Azure.
attr_reader :credentials
# @return [String] Subscription credentials that uniquely identify a
# Microsoft Azure subscription. The subscription ID forms part of the URI
# for every service call.
attr_accessor :subscription_id
# @return [String] Version of the API to be used with the client request.
attr_reader :api_version
# @return [String] The preferred language for the response.
attr_accessor :accept_language
# @return [Integer] The retry timeout in seconds for Long Running
# Operations. Default value is 30.
attr_accessor :long_running_operation_retry_timeout
# @return [Boolean] Whether a unique x-ms-client-request-id should be
# generated. When set to true a unique x-ms-client-request-id value is
# generated and included in each request. Default is true.
attr_accessor :generate_client_request_id
# @return [Domains] domains
attr_reader :domains
# @return [DomainTopics] domain_topics
attr_reader :domain_topics
# @return [EventChannels] event_channels
attr_reader :event_channels
# @return [EventSubscriptions] event_subscriptions
attr_reader :event_subscriptions
# @return [SystemTopicEventSubscriptions] system_topic_event_subscriptions
attr_reader :system_topic_event_subscriptions
# @return [PartnerTopicEventSubscriptions]
# partner_topic_event_subscriptions
attr_reader :partner_topic_event_subscriptions
# @return [Operations] operations
attr_reader :operations
# @return [PartnerNamespaces] partner_namespaces
attr_reader :partner_namespaces
# @return [PartnerRegistrations] partner_registrations
attr_reader :partner_registrations
# @return [PartnerTopics] partner_topics
attr_reader :partner_topics
# @return [PrivateEndpointConnections] private_endpoint_connections
attr_reader :private_endpoint_connections
# @return [PrivateLinkResources] private_link_resources
attr_reader :private_link_resources
# @return [SystemTopics] system_topics
attr_reader :system_topics
# @return [Topics] topics
attr_reader :topics
# @return [ExtensionTopics] extension_topics
attr_reader :extension_topics
# @return [TopicTypes] topic_types
attr_reader :topic_types
#
# Creates initializes a new instance of the EventGridManagementClient class.
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
# @param base_url [String] the base URI of the service.
# @param options [Array] filters to be applied to the HTTP requests.
#
def initialize(credentials = nil, base_url = nil, options = nil)
super(credentials, options)
@base_url = base_url || 'https://management.azure.com'
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
@credentials = credentials
@domains = Domains.new(self)
@domain_topics = DomainTopics.new(self)
@event_channels = EventChannels.new(self)
@event_subscriptions = EventSubscriptions.new(self)
@system_topic_event_subscriptions = SystemTopicEventSubscriptions.new(self)
@partner_topic_event_subscriptions = PartnerTopicEventSubscriptions.new(self)
@operations = Operations.new(self)
@partner_namespaces = PartnerNamespaces.new(self)
@partner_registrations = PartnerRegistrations.new(self)
@partner_topics = PartnerTopics.new(self)
@private_endpoint_connections = PrivateEndpointConnections.new(self)
@private_link_resources = PrivateLinkResources.new(self)
@system_topics = SystemTopics.new(self)
@topics = Topics.new(self)
@extension_topics = ExtensionTopics.new(self)
@topic_types = TopicTypes.new(self)
@api_version = '2020-10-15-preview'
@accept_language = 'en-US'
@long_running_operation_retry_timeout = 30
@generate_client_request_id = true
add_telemetry
end
#
# Makes a request and returns the body of the response.
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
# @param path [String] the path, relative to {base_url}.
# @param options [Hash{String=>String}] specifying any request options like :body.
# @return [Hash{String=>String}] containing the body of the response.
# Example:
#
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
# path = "/path"
# options = {
# body: request_content,
# query_params: {'api-version' => '2016-02-01'}
# }
# result = @client.make_request(:put, path, options)
#
def make_request(method, path, options = {})
result = make_request_with_http_info(method, path, options)
result.body unless result.nil?
end
#
# Makes a request and returns the operation response.
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
# @param path [String] the path, relative to {base_url}.
# @param options [Hash{String=>String}] specifying any request options like :body.
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
#
def make_request_with_http_info(method, path, options = {})
result = make_request_async(method, path, options).value!
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
result
end
#
# Makes a request asynchronously.
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
# @param path [String] the path, relative to {base_url}.
# @param options [Hash{String=>String}] specifying any request options like :body.
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def make_request_async(method, path, options = {})
fail ArgumentError, 'method is nil' if method.nil?
fail ArgumentError, 'path is nil' if path.nil?
request_url = options[:base_url] || @base_url
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
@request_headers['Content-Type'] = options[:headers]['Content-Type']
end
request_headers = @request_headers
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
options.merge!({headers: request_headers.merge(options[:headers] || {})})
options.merge!({credentials: @credentials}) unless @credentials.nil?
super(request_url, method, path, options)
end
private
#
# Adds telemetry information.
#
def add_telemetry
sdk_information = 'azure_mgmt_event_grid'
sdk_information = "#{sdk_information}/0.21.0"
add_user_agent_information(sdk_information)
end
end
end

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,141 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
#
# Azure EventGrid Management Client
#
class ExtensionTopics
include MsRestAzure
#
# Creates and initializes a new instance of the ExtensionTopics class.
# @param client service class for accessing basic functionality.
#
def initialize(client)
@client = client
end
# @return [EventGridManagementClient] reference to the EventGridManagementClient
attr_reader :client
#
# Get properties of an extension topic.
#
# Get the properties of an extension topic.
#
# @param scope [String] 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.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [ExtensionTopic] operation results.
#
def get(scope, custom_headers:nil)
response = get_async(scope, custom_headers:custom_headers).value!
response.body unless response.nil?
end
#
# Get properties of an extension topic.
#
# Get the properties of an extension topic.
#
# @param scope [String] 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.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_with_http_info(scope, custom_headers:nil)
get_async(scope, custom_headers:custom_headers).value!
end
#
# Get properties of an extension topic.
#
# Get the properties of an extension topic.
#
# @param scope [String] 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.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_async(scope, custom_headers:nil)
fail ArgumentError, 'scope is nil' if scope.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = '{scope}/providers/Microsoft.EventGrid/extensionTopics/default'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'scope' => scope},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::ExtensionTopic.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
end
end

Просмотреть файл

@ -0,0 +1,81 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# 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.
#
class AdvancedFilter
include MsRestAzure
@@discriminatorMap = Hash.new
@@discriminatorMap["NumberIn"] = "NumberInAdvancedFilter"
@@discriminatorMap["NumberNotIn"] = "NumberNotInAdvancedFilter"
@@discriminatorMap["NumberLessThan"] = "NumberLessThanAdvancedFilter"
@@discriminatorMap["NumberGreaterThan"] = "NumberGreaterThanAdvancedFilter"
@@discriminatorMap["NumberLessThanOrEquals"] = "NumberLessThanOrEqualsAdvancedFilter"
@@discriminatorMap["NumberGreaterThanOrEquals"] = "NumberGreaterThanOrEqualsAdvancedFilter"
@@discriminatorMap["BoolEquals"] = "BoolEqualsAdvancedFilter"
@@discriminatorMap["StringIn"] = "StringInAdvancedFilter"
@@discriminatorMap["StringNotIn"] = "StringNotInAdvancedFilter"
@@discriminatorMap["StringBeginsWith"] = "StringBeginsWithAdvancedFilter"
@@discriminatorMap["StringEndsWith"] = "StringEndsWithAdvancedFilter"
@@discriminatorMap["StringContains"] = "StringContainsAdvancedFilter"
@@discriminatorMap["NumberInRange"] = "NumberInRangeAdvancedFilter"
@@discriminatorMap["NumberNotInRange"] = "NumberNotInRangeAdvancedFilter"
@@discriminatorMap["StringNotBeginsWith"] = "StringNotBeginsWithAdvancedFilter"
@@discriminatorMap["StringNotEndsWith"] = "StringNotEndsWithAdvancedFilter"
@@discriminatorMap["StringNotContains"] = "StringNotContainsAdvancedFilter"
@@discriminatorMap["IsNullOrUndefined"] = "IsNullOrUndefinedAdvancedFilter"
@@discriminatorMap["IsNotNull"] = "IsNotNullAdvancedFilter"
def initialize
@operatorType = "AdvancedFilter"
end
attr_accessor :operatorType
# @return [String] The field/property in the event based on which you
# want to filter.
attr_accessor :key
#
# Mapper for AdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'AdvancedFilter',
type: {
name: 'Composite',
polymorphic_discriminator: 'operatorType',
uber_parent: 'AdvancedFilter',
class_name: 'AdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,112 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Information about the azure function destination for an event
# subscription.
#
class AzureFunctionEventSubscriptionDestination < EventSubscriptionDestination
include MsRestAzure
def initialize
@endpointType = "AzureFunction"
end
attr_accessor :endpointType
# @return [String] The Azure Resource Id that represents the endpoint of
# the Azure Function destination of an event subscription.
attr_accessor :resource_id
# @return [Integer] Maximum number of events per batch. Default value: 1
# .
attr_accessor :max_events_per_batch
# @return [Integer] Preferred batch size in Kilobytes. Default value: 64
# .
attr_accessor :preferred_batch_size_in_kilobytes
# @return [Array<DeliveryAttributeMapping>] Delivery attribute details.
attr_accessor :delivery_attribute_mappings
#
# Mapper for AzureFunctionEventSubscriptionDestination class as Ruby
# Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'AzureFunction',
type: {
name: 'Composite',
class_name: 'AzureFunctionEventSubscriptionDestination',
model_properties: {
endpointType: {
client_side_validation: true,
required: true,
serialized_name: 'endpointType',
type: {
name: 'String'
}
},
resource_id: {
client_side_validation: true,
required: false,
serialized_name: 'properties.resourceId',
type: {
name: 'String'
}
},
max_events_per_batch: {
client_side_validation: true,
required: false,
serialized_name: 'properties.maxEventsPerBatch',
default_value: 1,
type: {
name: 'Number'
}
},
preferred_batch_size_in_kilobytes: {
client_side_validation: true,
required: false,
serialized_name: 'properties.preferredBatchSizeInKilobytes',
default_value: 64,
type: {
name: 'Number'
}
},
delivery_attribute_mappings: {
client_side_validation: true,
required: false,
serialized_name: 'properties.deliveryAttributeMappings',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'DeliveryAttributeMappingElementType',
type: {
name: 'Composite',
polymorphic_discriminator: 'type',
uber_parent: 'DeliveryAttributeMapping',
class_name: 'DeliveryAttributeMapping'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,69 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# BoolEquals Advanced Filter.
#
class BoolEqualsAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "BoolEquals"
end
attr_accessor :operatorType
# @return [Boolean] The boolean filter value.
attr_accessor :value
#
# Mapper for BoolEqualsAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'BoolEquals',
type: {
name: 'Composite',
class_name: 'BoolEqualsAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
},
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Boolean'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,69 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# ConnectionState information.
#
class ConnectionState
include MsRestAzure
# @return [PersistedConnectionStatus] Status of the connection. Possible
# values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
attr_accessor :status
# @return [String] Description of the connection state.
attr_accessor :description
# @return [String] Actions required (if any).
attr_accessor :actions_required
#
# Mapper for ConnectionState class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'ConnectionState',
type: {
name: 'Composite',
class_name: 'ConnectionState',
model_properties: {
status: {
client_side_validation: true,
required: false,
serialized_name: 'status',
type: {
name: 'String'
}
},
description: {
client_side_validation: true,
required: false,
serialized_name: 'description',
type: {
name: 'String'
}
},
actions_required: {
client_side_validation: true,
required: false,
serialized_name: 'actionsRequired',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,18 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for CreatedByType
#
module CreatedByType
User = "User"
Application = "Application"
ManagedIdentity = "ManagedIdentity"
Key = "Key"
end
end
end

Просмотреть файл

@ -0,0 +1,50 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# 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.
#
class DeadLetterDestination
include MsRestAzure
@@discriminatorMap = Hash.new
@@discriminatorMap["StorageBlob"] = "StorageBlobDeadLetterDestination"
def initialize
@endpointType = "DeadLetterDestination"
end
attr_accessor :endpointType
#
# Mapper for DeadLetterDestination class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DeadLetterDestination',
type: {
name: 'Composite',
polymorphic_discriminator: 'endpointType',
uber_parent: 'DeadLetterDestination',
class_name: 'DeadLetterDestination',
model_properties: {
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,66 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Information about the deadletter destination with resource identity.
#
class DeadLetterWithResourceIdentity
include MsRestAzure
# @return [EventSubscriptionIdentity] The identity to use when
# dead-lettering events.
attr_accessor :identity
# @return [DeadLetterDestination] 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.
attr_accessor :dead_letter_destination
#
# Mapper for DeadLetterWithResourceIdentity class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DeadLetterWithResourceIdentity',
type: {
name: 'Composite',
class_name: 'DeadLetterWithResourceIdentity',
model_properties: {
identity: {
client_side_validation: true,
required: false,
serialized_name: 'identity',
type: {
name: 'Composite',
class_name: 'EventSubscriptionIdentity'
}
},
dead_letter_destination: {
client_side_validation: true,
required: false,
serialized_name: 'deadLetterDestination',
type: {
name: 'Composite',
polymorphic_discriminator: 'endpointType',
uber_parent: 'DeadLetterDestination',
class_name: 'DeadLetterDestination'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,58 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the Get delivery attributes operation.
#
class DeliveryAttributeListResult
include MsRestAzure
# @return [Array<DeliveryAttributeMapping>] A collection of
# DeliveryAttributeMapping
attr_accessor :value
#
# Mapper for DeliveryAttributeListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DeliveryAttributeListResult',
type: {
name: 'Composite',
class_name: 'DeliveryAttributeListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'DeliveryAttributeMappingElementType',
type: {
name: 'Composite',
polymorphic_discriminator: 'type',
uber_parent: 'DeliveryAttributeMapping',
class_name: 'DeliveryAttributeMapping'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,58 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Delivery attribute mapping details.
#
class DeliveryAttributeMapping
include MsRestAzure
@@discriminatorMap = Hash.new
@@discriminatorMap["Static"] = "StaticDeliveryAttributeMapping"
@@discriminatorMap["Dynamic"] = "DynamicDeliveryAttributeMapping"
def initialize
@type = "DeliveryAttributeMapping"
end
attr_accessor :type
# @return [String] Name of the delivery attribute or header.
attr_accessor :name
#
# Mapper for DeliveryAttributeMapping class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DeliveryAttributeMapping',
type: {
name: 'Composite',
polymorphic_discriminator: 'type',
uber_parent: 'DeliveryAttributeMapping',
class_name: 'DeliveryAttributeMapping',
model_properties: {
name: {
client_side_validation: true,
required: false,
serialized_name: 'name',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,67 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Information about the delivery for an event subscription with resource
# identity.
#
class DeliveryWithResourceIdentity
include MsRestAzure
# @return [EventSubscriptionIdentity] The identity to use when delivering
# events.
attr_accessor :identity
# @return [EventSubscriptionDestination] 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.
attr_accessor :destination
#
# Mapper for DeliveryWithResourceIdentity class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DeliveryWithResourceIdentity',
type: {
name: 'Composite',
class_name: 'DeliveryWithResourceIdentity',
model_properties: {
identity: {
client_side_validation: true,
required: false,
serialized_name: 'identity',
type: {
name: 'Composite',
class_name: 'EventSubscriptionIdentity'
}
},
destination: {
client_side_validation: true,
required: false,
serialized_name: 'destination',
type: {
name: 'Composite',
polymorphic_discriminator: 'endpointType',
uber_parent: 'EventSubscriptionDestination',
class_name: 'EventSubscriptionDestination'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,253 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# EventGrid Domain.
#
class Domain < TrackedResource
include MsRestAzure
# @return [Array<PrivateEndpointConnection>] List of private endpoint
# connections.
attr_accessor :private_endpoint_connections
# @return [DomainProvisioningState] Provisioning state of the domain.
# Possible values include: 'Creating', 'Updating', 'Deleting',
# 'Succeeded', 'Canceled', 'Failed'
attr_accessor :provisioning_state
# @return [String] Endpoint for the domain.
attr_accessor :endpoint
# @return [InputSchema] This determines the format that Event Grid should
# expect for incoming events published to the domain. Possible values
# include: 'EventGridSchema', 'CustomEventSchema',
# 'CloudEventSchemaV1_0'. Default value: 'EventGridSchema' .
attr_accessor :input_schema
# @return [InputSchemaMapping] Information about the InputSchemaMapping
# which specified the info about mapping event payload.
attr_accessor :input_schema_mapping
# @return [String] Metric resource id for the domain.
attr_accessor :metric_resource_id
# @return [PublicNetworkAccess] This determines if traffic is allowed
# over public network. By default it is enabled.
# You can further restrict to specific IPs by configuring <seealso
# cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainProperties.InboundIpRules"
# />. Possible values include: 'Enabled', 'Disabled'. Default value:
# 'Enabled' .
attr_accessor :public_network_access
# @return [Array<InboundIpRule>] This can be used to restrict traffic
# from specific IPs instead of all IPs. Note: These are considered only
# if PublicNetworkAccess is enabled.
attr_accessor :inbound_ip_rules
# @return [ResourceSku] The Sku pricing tier for the domain. Default
# value: Basic .
attr_accessor :sku
# @return [IdentityInfo] Identity information for the resource.
attr_accessor :identity
# @return [SystemData] The system metadata relating to Domain resource.
attr_accessor :system_data
#
# Mapper for Domain class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'Domain',
type: {
name: 'Composite',
class_name: 'Domain',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
location: {
client_side_validation: true,
required: true,
serialized_name: 'location',
type: {
name: 'String'
}
},
tags: {
client_side_validation: true,
required: false,
serialized_name: 'tags',
type: {
name: 'Dictionary',
value: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
private_endpoint_connections: {
client_side_validation: true,
required: false,
serialized_name: 'properties.privateEndpointConnections',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'PrivateEndpointConnectionElementType',
type: {
name: 'Composite',
class_name: 'PrivateEndpointConnection'
}
}
}
},
provisioning_state: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.provisioningState',
type: {
name: 'String'
}
},
endpoint: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.endpoint',
type: {
name: 'String'
}
},
input_schema: {
client_side_validation: true,
required: false,
serialized_name: 'properties.inputSchema',
default_value: 'EventGridSchema',
type: {
name: 'String'
}
},
input_schema_mapping: {
client_side_validation: true,
required: false,
serialized_name: 'properties.inputSchemaMapping',
type: {
name: 'Composite',
polymorphic_discriminator: 'inputSchemaMappingType',
uber_parent: 'InputSchemaMapping',
class_name: 'InputSchemaMapping'
}
},
metric_resource_id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.metricResourceId',
type: {
name: 'String'
}
},
public_network_access: {
client_side_validation: true,
required: false,
serialized_name: 'properties.publicNetworkAccess',
default_value: 'Enabled',
type: {
name: 'String'
}
},
inbound_ip_rules: {
client_side_validation: true,
required: false,
serialized_name: 'properties.inboundIpRules',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'InboundIpRuleElementType',
type: {
name: 'Composite',
class_name: 'InboundIpRule'
}
}
}
},
sku: {
client_side_validation: true,
required: false,
serialized_name: 'sku',
default_value: Basic,
type: {
name: 'Composite',
class_name: 'ResourceSku'
}
},
identity: {
client_side_validation: true,
required: false,
serialized_name: 'identity',
type: {
name: 'Composite',
class_name: 'IdentityInfo'
}
},
system_data: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'systemData',
type: {
name: 'Composite',
class_name: 'SystemData'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,20 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for DomainProvisioningState
#
module DomainProvisioningState
Creating = "Creating"
Updating = "Updating"
Deleting = "Deleting"
Succeeded = "Succeeded"
Canceled = "Canceled"
Failed = "Failed"
end
end
end

Просмотреть файл

@ -0,0 +1,46 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Domain regenerate share access key request.
#
class DomainRegenerateKeyRequest
include MsRestAzure
# @return [String] Key name to regenerate key1 or key2.
attr_accessor :key_name
#
# Mapper for DomainRegenerateKeyRequest class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DomainRegenerateKeyRequest',
type: {
name: 'Composite',
class_name: 'DomainRegenerateKeyRequest',
model_properties: {
key_name: {
client_side_validation: true,
required: true,
serialized_name: 'keyName',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,57 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Shared access keys of the Domain.
#
class DomainSharedAccessKeys
include MsRestAzure
# @return [String] Shared access key1 for the domain.
attr_accessor :key1
# @return [String] Shared access key2 for the domain.
attr_accessor :key2
#
# Mapper for DomainSharedAccessKeys class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DomainSharedAccessKeys',
type: {
name: 'Composite',
class_name: 'DomainSharedAccessKeys',
model_properties: {
key1: {
client_side_validation: true,
required: false,
serialized_name: 'key1',
type: {
name: 'String'
}
},
key2: {
client_side_validation: true,
required: false,
serialized_name: 'key2',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,89 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Domain Topic.
#
class DomainTopic < Resource
include MsRestAzure
# @return [DomainTopicProvisioningState] Provisioning state of the domain
# topic. Possible values include: 'Creating', 'Updating', 'Deleting',
# 'Succeeded', 'Canceled', 'Failed'
attr_accessor :provisioning_state
# @return [SystemData] The system metadata relating to Domain Topic
# resource.
attr_accessor :system_data
#
# Mapper for DomainTopic class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DomainTopic',
type: {
name: 'Composite',
class_name: 'DomainTopic',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
provisioning_state: {
client_side_validation: true,
required: false,
serialized_name: 'properties.provisioningState',
type: {
name: 'String'
}
},
system_data: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'systemData',
type: {
name: 'Composite',
class_name: 'SystemData'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,20 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for DomainTopicProvisioningState
#
module DomainTopicProvisioningState
Creating = "Creating"
Updating = "Updating"
Deleting = "Deleting"
Succeeded = "Succeeded"
Canceled = "Canceled"
Failed = "Failed"
end
end
end

Просмотреть файл

@ -0,0 +1,98 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the List Domain Topics operation
#
class DomainTopicsListResult
include MsRestAzure
include MsRest::JSONable
# @return [Array<DomainTopic>] A collection of Domain Topics
attr_accessor :value
# @return [String] A link for the next page of domain topics
attr_accessor :next_link
# return [Proc] with next page method call.
attr_accessor :next_method
#
# Gets the rest of the items for the request, enabling auto-pagination.
#
# @return [Array<DomainTopic>] operation results.
#
def get_all_items
items = @value
page = self
while page.next_link != nil && !page.next_link.strip.empty? do
page = page.get_next_page
items.concat(page.value)
end
items
end
#
# Gets the next page of results.
#
# @return [DomainTopicsListResult] with next page content.
#
def get_next_page
response = @next_method.call(@next_link).value! unless @next_method.nil?
unless response.nil?
@next_link = response.body.next_link
@value = response.body.value
self
end
end
#
# Mapper for DomainTopicsListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DomainTopicsListResult',
type: {
name: 'Composite',
class_name: 'DomainTopicsListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'DomainTopicElementType',
type: {
name: 'Composite',
class_name: 'DomainTopic'
}
}
}
},
next_link: {
client_side_validation: true,
required: false,
serialized_name: 'nextLink',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,117 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Properties of the Domain update.
#
class DomainUpdateParameters
include MsRestAzure
# @return [Hash{String => String}] Tags of the domains resource.
attr_accessor :tags
# @return [PublicNetworkAccess] This determines if traffic is allowed
# over public network. By default it is enabled.
# You can further restrict to specific IPs by configuring <seealso
# cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainUpdateParameterProperties.InboundIpRules"
# />. Possible values include: 'Enabled', 'Disabled'. Default value:
# 'Enabled' .
attr_accessor :public_network_access
# @return [Array<InboundIpRule>] This can be used to restrict traffic
# from specific IPs instead of all IPs. Note: These are considered only
# if PublicNetworkAccess is enabled.
attr_accessor :inbound_ip_rules
# @return [IdentityInfo] Identity information for the resource.
attr_accessor :identity
# @return [ResourceSku] The Sku pricing tier for the domain.
attr_accessor :sku
#
# Mapper for DomainUpdateParameters class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DomainUpdateParameters',
type: {
name: 'Composite',
class_name: 'DomainUpdateParameters',
model_properties: {
tags: {
client_side_validation: true,
required: false,
serialized_name: 'tags',
type: {
name: 'Dictionary',
value: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
public_network_access: {
client_side_validation: true,
required: false,
serialized_name: 'properties.publicNetworkAccess',
default_value: 'Enabled',
type: {
name: 'String'
}
},
inbound_ip_rules: {
client_side_validation: true,
required: false,
serialized_name: 'properties.inboundIpRules',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'InboundIpRuleElementType',
type: {
name: 'Composite',
class_name: 'InboundIpRule'
}
}
}
},
identity: {
client_side_validation: true,
required: false,
serialized_name: 'identity',
type: {
name: 'Composite',
class_name: 'IdentityInfo'
}
},
sku: {
client_side_validation: true,
required: false,
serialized_name: 'sku',
type: {
name: 'Composite',
class_name: 'ResourceSku'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,98 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the List Domains operation
#
class DomainsListResult
include MsRestAzure
include MsRest::JSONable
# @return [Array<Domain>] A collection of Domains
attr_accessor :value
# @return [String] A link for the next page of domains
attr_accessor :next_link
# return [Proc] with next page method call.
attr_accessor :next_method
#
# Gets the rest of the items for the request, enabling auto-pagination.
#
# @return [Array<Domain>] operation results.
#
def get_all_items
items = @value
page = self
while page.next_link != nil && !page.next_link.strip.empty? do
page = page.get_next_page
items.concat(page.value)
end
items
end
#
# Gets the next page of results.
#
# @return [DomainsListResult] with next page content.
#
def get_next_page
response = @next_method.call(@next_link).value! unless @next_method.nil?
unless response.nil?
@next_link = response.body.next_link
@value = response.body.value
self
end
end
#
# Mapper for DomainsListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DomainsListResult',
type: {
name: 'Composite',
class_name: 'DomainsListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'DomainElementType',
type: {
name: 'Composite',
class_name: 'Domain'
}
}
}
},
next_link: {
client_side_validation: true,
required: false,
serialized_name: 'nextLink',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,69 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Dynamic delivery attribute mapping details.
#
class DynamicDeliveryAttributeMapping < DeliveryAttributeMapping
include MsRestAzure
def initialize
@type = "Dynamic"
end
attr_accessor :type
# @return [String] JSON path in the event which contains attribute value.
attr_accessor :source_field
#
# Mapper for DynamicDeliveryAttributeMapping class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'Dynamic',
type: {
name: 'Composite',
class_name: 'DynamicDeliveryAttributeMapping',
model_properties: {
name: {
client_side_validation: true,
required: false,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
source_field: {
client_side_validation: true,
required: false,
serialized_name: 'properties.sourceField',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,172 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Event Channel.
#
class EventChannel < Resource
include MsRestAzure
# @return [EventChannelSource] Source of the event channel. This
# represents a unique resource in the partner's resource model.
attr_accessor :source
# @return [EventChannelDestination] Represents the destination of an
# event channel.
attr_accessor :destination
# @return [EventChannelProvisioningState] Provisioning state of the event
# channel. Possible values include: 'Creating', 'Updating', 'Deleting',
# 'Succeeded', 'Canceled', 'Failed'
attr_accessor :provisioning_state
# @return [PartnerTopicReadinessState] The readiness state of the
# corresponding partner topic. Possible values include:
# 'NotActivatedByUserYet', 'ActivatedByUser', 'DeactivatedByUser',
# 'DeletedByUser'
attr_accessor :partner_topic_readiness_state
# @return [DateTime] Expiration time of the event channel. If this timer
# expires while the corresponding partner topic is never activated,
# the event channel and corresponding partner topic are deleted.
attr_accessor :expiration_time_if_not_activated_utc
# @return [EventChannelFilter] Information about the filter for the event
# channel.
attr_accessor :filter
# @return [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.
attr_accessor :partner_topic_friendly_description
# @return [SystemData] The system metadata relating to Event Channel
# resource.
attr_accessor :system_data
#
# Mapper for EventChannel class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventChannel',
type: {
name: 'Composite',
class_name: 'EventChannel',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
source: {
client_side_validation: true,
required: false,
serialized_name: 'properties.source',
type: {
name: 'Composite',
class_name: 'EventChannelSource'
}
},
destination: {
client_side_validation: true,
required: false,
serialized_name: 'properties.destination',
type: {
name: 'Composite',
class_name: 'EventChannelDestination'
}
},
provisioning_state: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.provisioningState',
type: {
name: 'String'
}
},
partner_topic_readiness_state: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.partnerTopicReadinessState',
type: {
name: 'String'
}
},
expiration_time_if_not_activated_utc: {
client_side_validation: true,
required: false,
serialized_name: 'properties.expirationTimeIfNotActivatedUtc',
type: {
name: 'DateTime'
}
},
filter: {
client_side_validation: true,
required: false,
serialized_name: 'properties.filter',
type: {
name: 'Composite',
class_name: 'EventChannelFilter'
}
},
partner_topic_friendly_description: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerTopicFriendlyDescription',
type: {
name: 'String'
}
},
system_data: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'systemData',
type: {
name: 'Composite',
class_name: 'SystemData'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,75 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Properties of the destination of an event channel.
#
class EventChannelDestination
include MsRestAzure
# @return [String] Azure subscription ID of the customer creating the
# event channel. The partner topic
# associated with the event channel will be created under this Azure
# subscription.
attr_accessor :azure_subscription_id
# @return [String] Azure Resource Group of the customer creating the
# event channel. The partner topic
# associated with the event channel will be created under this resource
# group.
attr_accessor :resource_group
# @return [String] Name of the partner topic associated with the event
# channel.
attr_accessor :partner_topic_name
#
# Mapper for EventChannelDestination class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventChannelDestination',
type: {
name: 'Composite',
class_name: 'EventChannelDestination',
model_properties: {
azure_subscription_id: {
client_side_validation: true,
required: false,
serialized_name: 'azureSubscriptionId',
type: {
name: 'String'
}
},
resource_group: {
client_side_validation: true,
required: false,
serialized_name: 'resourceGroup',
type: {
name: 'String'
}
},
partner_topic_name: {
client_side_validation: true,
required: false,
serialized_name: 'partnerTopicName',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,70 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Filter for the Event Channel.
#
class EventChannelFilter
include MsRestAzure
# @return [Boolean] Allows advanced filters to be evaluated against an
# array of values instead of expecting a singular value.
attr_accessor :enable_advanced_filtering_on_arrays
# @return [Array<AdvancedFilter>] An array of advanced filters that are
# used for filtering event channels.
attr_accessor :advanced_filters
#
# Mapper for EventChannelFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventChannelFilter',
type: {
name: 'Composite',
class_name: 'EventChannelFilter',
model_properties: {
enable_advanced_filtering_on_arrays: {
client_side_validation: true,
required: false,
serialized_name: 'enableAdvancedFilteringOnArrays',
type: {
name: 'Boolean'
}
},
advanced_filters: {
client_side_validation: true,
required: false,
serialized_name: 'advancedFilters',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'AdvancedFilterElementType',
type: {
name: 'Composite',
polymorphic_discriminator: 'operatorType',
uber_parent: 'AdvancedFilter',
class_name: 'AdvancedFilter'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,20 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for EventChannelProvisioningState
#
module EventChannelProvisioningState
Creating = "Creating"
Updating = "Updating"
Deleting = "Deleting"
Succeeded = "Succeeded"
Canceled = "Canceled"
Failed = "Failed"
end
end
end

Просмотреть файл

@ -0,0 +1,48 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Properties of the source of an event channel.
#
class EventChannelSource
include MsRestAzure
# @return [String] The identifier of the resource that's the source of
# the events.
# This represents a unique resource in the partner's resource model.
attr_accessor :source
#
# Mapper for EventChannelSource class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventChannelSource',
type: {
name: 'Composite',
class_name: 'EventChannelSource',
model_properties: {
source: {
client_side_validation: true,
required: false,
serialized_name: 'source',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,98 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the List Event Channels operation
#
class EventChannelsListResult
include MsRestAzure
include MsRest::JSONable
# @return [Array<EventChannel>] A collection of Event Channels
attr_accessor :value
# @return [String] A link for the next page of event channels
attr_accessor :next_link
# return [Proc] with next page method call.
attr_accessor :next_method
#
# Gets the rest of the items for the request, enabling auto-pagination.
#
# @return [Array<EventChannel>] operation results.
#
def get_all_items
items = @value
page = self
while page.next_link != nil && !page.next_link.strip.empty? do
page = page.get_next_page
items.concat(page.value)
end
items
end
#
# Gets the next page of results.
#
# @return [EventChannelsListResult] with next page content.
#
def get_next_page
response = @next_method.call(@next_link).value! unless @next_method.nil?
unless response.nil?
@next_link = response.body.next_link
@value = response.body.value
self
end
end
#
# Mapper for EventChannelsListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventChannelsListResult',
type: {
name: 'Composite',
class_name: 'EventChannelsListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'EventChannelElementType',
type: {
name: 'Composite',
class_name: 'EventChannel'
}
}
}
},
next_link: {
client_side_validation: true,
required: false,
serialized_name: 'nextLink',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,17 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for EventDeliverySchema
#
module EventDeliverySchema
EventGridSchema = "EventGridSchema"
CustomInputSchema = "CustomInputSchema"
CloudEventSchemaV10 = "CloudEventSchemaV1_0"
end
end
end

Просмотреть файл

@ -0,0 +1,84 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Information about the event hub destination for an event subscription.
#
class EventHubEventSubscriptionDestination < EventSubscriptionDestination
include MsRestAzure
def initialize
@endpointType = "EventHub"
end
attr_accessor :endpointType
# @return [String] The Azure Resource Id that represents the endpoint of
# an Event Hub destination of an event subscription.
attr_accessor :resource_id
# @return [Array<DeliveryAttributeMapping>] Delivery attribute details.
attr_accessor :delivery_attribute_mappings
#
# Mapper for EventHubEventSubscriptionDestination class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventHub',
type: {
name: 'Composite',
class_name: 'EventHubEventSubscriptionDestination',
model_properties: {
endpointType: {
client_side_validation: true,
required: true,
serialized_name: 'endpointType',
type: {
name: 'String'
}
},
resource_id: {
client_side_validation: true,
required: false,
serialized_name: 'properties.resourceId',
type: {
name: 'String'
}
},
delivery_attribute_mappings: {
client_side_validation: true,
required: false,
serialized_name: 'properties.deliveryAttributeMappings',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'DeliveryAttributeMappingElementType',
type: {
name: 'Composite',
polymorphic_discriminator: 'type',
uber_parent: 'DeliveryAttributeMapping',
class_name: 'DeliveryAttributeMapping'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,244 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Event Subscription
#
class EventSubscription < Resource
include MsRestAzure
# @return [String] Name of the topic of the event subscription.
attr_accessor :topic
# @return [EventSubscriptionProvisioningState] Provisioning state of the
# event subscription. Possible values include: 'Creating', 'Updating',
# 'Deleting', 'Succeeded', 'Canceled', 'Failed', 'AwaitingManualAction'
attr_accessor :provisioning_state
# @return [EventSubscriptionDestination] 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.
attr_accessor :destination
# @return [DeliveryWithResourceIdentity] 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.
attr_accessor :delivery_with_resource_identity
# @return [EventSubscriptionFilter] Information about the filter for the
# event subscription.
attr_accessor :filter
# @return [Array<String>] List of user defined labels.
attr_accessor :labels
# @return [DateTime] Expiration time of the event subscription.
attr_accessor :expiration_time_utc
# @return [EventDeliverySchema] The event delivery schema for the event
# subscription. Possible values include: 'EventGridSchema',
# 'CustomInputSchema', 'CloudEventSchemaV1_0'. Default value:
# 'EventGridSchema' .
attr_accessor :event_delivery_schema
# @return [RetryPolicy] The retry policy for events. This can be used to
# configure maximum number of delivery attempts and time to live for
# events.
attr_accessor :retry_policy
# @return [DeadLetterDestination] 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.
attr_accessor :dead_letter_destination
# @return [DeadLetterWithResourceIdentity] 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.
attr_accessor :dead_letter_with_resource_identity
# @return [SystemData] The system metadata relating to Event Subscription
# resource.
attr_accessor :system_data
#
# Mapper for EventSubscription class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventSubscription',
type: {
name: 'Composite',
class_name: 'EventSubscription',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
topic: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.topic',
type: {
name: 'String'
}
},
provisioning_state: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.provisioningState',
type: {
name: 'String'
}
},
destination: {
client_side_validation: true,
required: false,
serialized_name: 'properties.destination',
type: {
name: 'Composite',
polymorphic_discriminator: 'endpointType',
uber_parent: 'EventSubscriptionDestination',
class_name: 'EventSubscriptionDestination'
}
},
delivery_with_resource_identity: {
client_side_validation: true,
required: false,
serialized_name: 'properties.deliveryWithResourceIdentity',
type: {
name: 'Composite',
class_name: 'DeliveryWithResourceIdentity'
}
},
filter: {
client_side_validation: true,
required: false,
serialized_name: 'properties.filter',
type: {
name: 'Composite',
class_name: 'EventSubscriptionFilter'
}
},
labels: {
client_side_validation: true,
required: false,
serialized_name: 'properties.labels',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
expiration_time_utc: {
client_side_validation: true,
required: false,
serialized_name: 'properties.expirationTimeUtc',
type: {
name: 'DateTime'
}
},
event_delivery_schema: {
client_side_validation: true,
required: false,
serialized_name: 'properties.eventDeliverySchema',
default_value: 'EventGridSchema',
type: {
name: 'String'
}
},
retry_policy: {
client_side_validation: true,
required: false,
serialized_name: 'properties.retryPolicy',
type: {
name: 'Composite',
class_name: 'RetryPolicy'
}
},
dead_letter_destination: {
client_side_validation: true,
required: false,
serialized_name: 'properties.deadLetterDestination',
type: {
name: 'Composite',
polymorphic_discriminator: 'endpointType',
uber_parent: 'DeadLetterDestination',
class_name: 'DeadLetterDestination'
}
},
dead_letter_with_resource_identity: {
client_side_validation: true,
required: false,
serialized_name: 'properties.deadLetterWithResourceIdentity',
type: {
name: 'Composite',
class_name: 'DeadLetterWithResourceIdentity'
}
},
system_data: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'systemData',
type: {
name: 'Composite',
class_name: 'SystemData'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,52 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Information about the destination for an event subscription.
#
class EventSubscriptionDestination
include MsRestAzure
@@discriminatorMap = Hash.new
@@discriminatorMap["WebHook"] = "WebHookEventSubscriptionDestination"
@@discriminatorMap["EventHub"] = "EventHubEventSubscriptionDestination"
@@discriminatorMap["StorageQueue"] = "StorageQueueEventSubscriptionDestination"
@@discriminatorMap["HybridConnection"] = "HybridConnectionEventSubscriptionDestination"
@@discriminatorMap["ServiceBusQueue"] = "ServiceBusQueueEventSubscriptionDestination"
@@discriminatorMap["ServiceBusTopic"] = "ServiceBusTopicEventSubscriptionDestination"
@@discriminatorMap["AzureFunction"] = "AzureFunctionEventSubscriptionDestination"
def initialize
@endpointType = "EventSubscriptionDestination"
end
attr_accessor :endpointType
#
# Mapper for EventSubscriptionDestination class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventSubscriptionDestination',
type: {
name: 'Composite',
polymorphic_discriminator: 'endpointType',
uber_parent: 'EventSubscriptionDestination',
class_name: 'EventSubscriptionDestination',
model_properties: {
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,132 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Filter for the Event Subscription.
#
class EventSubscriptionFilter
include MsRestAzure
# @return [String] 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.
attr_accessor :subject_begins_with
# @return [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.
attr_accessor :subject_ends_with
# @return [Array<String>] 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.
attr_accessor :included_event_types
# @return [Boolean] Specifies if the SubjectBeginsWith and
# SubjectEndsWith properties of the filter
# should be compared in a case sensitive manner. Default value: false .
attr_accessor :is_subject_case_sensitive
# @return [Boolean] Allows advanced filters to be evaluated against an
# array of values instead of expecting a singular value.
attr_accessor :enable_advanced_filtering_on_arrays
# @return [Array<AdvancedFilter>] An array of advanced filters that are
# used for filtering event subscriptions.
attr_accessor :advanced_filters
#
# Mapper for EventSubscriptionFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventSubscriptionFilter',
type: {
name: 'Composite',
class_name: 'EventSubscriptionFilter',
model_properties: {
subject_begins_with: {
client_side_validation: true,
required: false,
serialized_name: 'subjectBeginsWith',
type: {
name: 'String'
}
},
subject_ends_with: {
client_side_validation: true,
required: false,
serialized_name: 'subjectEndsWith',
type: {
name: 'String'
}
},
included_event_types: {
client_side_validation: true,
required: false,
serialized_name: 'includedEventTypes',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
is_subject_case_sensitive: {
client_side_validation: true,
required: false,
serialized_name: 'isSubjectCaseSensitive',
default_value: false,
type: {
name: 'Boolean'
}
},
enable_advanced_filtering_on_arrays: {
client_side_validation: true,
required: false,
serialized_name: 'enableAdvancedFilteringOnArrays',
type: {
name: 'Boolean'
}
},
advanced_filters: {
client_side_validation: true,
required: false,
serialized_name: 'advancedFilters',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'AdvancedFilterElementType',
type: {
name: 'Composite',
polymorphic_discriminator: 'operatorType',
uber_parent: 'AdvancedFilter',
class_name: 'AdvancedFilter'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,47 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Full endpoint url of an event subscription
#
class EventSubscriptionFullUrl
include MsRestAzure
# @return [String] The URL that represents the endpoint of the
# destination of an event subscription.
attr_accessor :endpoint_url
#
# Mapper for EventSubscriptionFullUrl class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventSubscriptionFullUrl',
type: {
name: 'Composite',
class_name: 'EventSubscriptionFullUrl',
model_properties: {
endpoint_url: {
client_side_validation: true,
required: false,
serialized_name: 'endpointUrl',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,61 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# The identity information with the event subscription.
#
class EventSubscriptionIdentity
include MsRestAzure
# @return [EventSubscriptionIdentityType] 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. Possible values include:
# 'SystemAssigned', 'UserAssigned'
attr_accessor :type
# @return [String] The user identity associated with the resource.
attr_accessor :user_assigned_identity
#
# Mapper for EventSubscriptionIdentity class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventSubscriptionIdentity',
type: {
name: 'Composite',
class_name: 'EventSubscriptionIdentity',
model_properties: {
type: {
client_side_validation: true,
required: false,
serialized_name: 'type',
type: {
name: 'String'
}
},
user_assigned_identity: {
client_side_validation: true,
required: false,
serialized_name: 'userAssignedIdentity',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,16 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for EventSubscriptionIdentityType
#
module EventSubscriptionIdentityType
SystemAssigned = "SystemAssigned"
UserAssigned = "UserAssigned"
end
end
end

Просмотреть файл

@ -0,0 +1,21 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for EventSubscriptionProvisioningState
#
module EventSubscriptionProvisioningState
Creating = "Creating"
Updating = "Updating"
Deleting = "Deleting"
Succeeded = "Succeeded"
Canceled = "Canceled"
Failed = "Failed"
AwaitingManualAction = "AwaitingManualAction"
end
end
end

Просмотреть файл

@ -0,0 +1,176 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Properties of the Event Subscription update.
#
class EventSubscriptionUpdateParameters
include MsRestAzure
# @return [EventSubscriptionDestination] 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.
attr_accessor :destination
# @return [DeliveryWithResourceIdentity] 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.
attr_accessor :delivery_with_resource_identity
# @return [EventSubscriptionFilter] Information about the filter for the
# event subscription.
attr_accessor :filter
# @return [Array<String>] List of user defined labels.
attr_accessor :labels
# @return [DateTime] Information about the expiration time for the event
# subscription.
attr_accessor :expiration_time_utc
# @return [EventDeliverySchema] The event delivery schema for the event
# subscription. Possible values include: 'EventGridSchema',
# 'CustomInputSchema', 'CloudEventSchemaV1_0'
attr_accessor :event_delivery_schema
# @return [RetryPolicy] The retry policy for events. This can be used to
# configure maximum number of delivery attempts and time to live for
# events.
attr_accessor :retry_policy
# @return [DeadLetterDestination] 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.
attr_accessor :dead_letter_destination
# @return [DeadLetterWithResourceIdentity] 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.
attr_accessor :dead_letter_with_resource_identity
#
# Mapper for EventSubscriptionUpdateParameters class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventSubscriptionUpdateParameters',
type: {
name: 'Composite',
class_name: 'EventSubscriptionUpdateParameters',
model_properties: {
destination: {
client_side_validation: true,
required: false,
serialized_name: 'destination',
type: {
name: 'Composite',
polymorphic_discriminator: 'endpointType',
uber_parent: 'EventSubscriptionDestination',
class_name: 'EventSubscriptionDestination'
}
},
delivery_with_resource_identity: {
client_side_validation: true,
required: false,
serialized_name: 'deliveryWithResourceIdentity',
type: {
name: 'Composite',
class_name: 'DeliveryWithResourceIdentity'
}
},
filter: {
client_side_validation: true,
required: false,
serialized_name: 'filter',
type: {
name: 'Composite',
class_name: 'EventSubscriptionFilter'
}
},
labels: {
client_side_validation: true,
required: false,
serialized_name: 'labels',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
expiration_time_utc: {
client_side_validation: true,
required: false,
serialized_name: 'expirationTimeUtc',
type: {
name: 'DateTime'
}
},
event_delivery_schema: {
client_side_validation: true,
required: false,
serialized_name: 'eventDeliverySchema',
type: {
name: 'String'
}
},
retry_policy: {
client_side_validation: true,
required: false,
serialized_name: 'retryPolicy',
type: {
name: 'Composite',
class_name: 'RetryPolicy'
}
},
dead_letter_destination: {
client_side_validation: true,
required: false,
serialized_name: 'deadLetterDestination',
type: {
name: 'Composite',
polymorphic_discriminator: 'endpointType',
uber_parent: 'DeadLetterDestination',
class_name: 'DeadLetterDestination'
}
},
dead_letter_with_resource_identity: {
client_side_validation: true,
required: false,
serialized_name: 'deadLetterWithResourceIdentity',
type: {
name: 'Composite',
class_name: 'DeadLetterWithResourceIdentity'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,98 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the List EventSubscriptions operation
#
class EventSubscriptionsListResult
include MsRestAzure
include MsRest::JSONable
# @return [Array<EventSubscription>] A collection of EventSubscriptions
attr_accessor :value
# @return [String] A link for the next page of event subscriptions
attr_accessor :next_link
# return [Proc] with next page method call.
attr_accessor :next_method
#
# Gets the rest of the items for the request, enabling auto-pagination.
#
# @return [Array<EventSubscription>] operation results.
#
def get_all_items
items = @value
page = self
while page.next_link != nil && !page.next_link.strip.empty? do
page = page.get_next_page
items.concat(page.value)
end
items
end
#
# Gets the next page of results.
#
# @return [EventSubscriptionsListResult] with next page content.
#
def get_next_page
response = @next_method.call(@next_link).value! unless @next_method.nil?
unless response.nil?
@next_link = response.body.next_link
@value = response.body.value
self
end
end
#
# Mapper for EventSubscriptionsListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventSubscriptionsListResult',
type: {
name: 'Composite',
class_name: 'EventSubscriptionsListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'EventSubscriptionElementType',
type: {
name: 'Composite',
class_name: 'EventSubscription'
}
}
}
},
next_link: {
client_side_validation: true,
required: false,
serialized_name: 'nextLink',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,106 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Event Type for a subject under a topic
#
class EventType < Resource
include MsRestAzure
# @return [String] Display name of the event type.
attr_accessor :display_name
# @return [String] Description of the event type.
attr_accessor :description
# @return [String] Url of the schema for this event type.
attr_accessor :schema_url
# @return [Boolean] IsInDefaultSet flag of the event type.
attr_accessor :is_in_default_set
#
# Mapper for EventType class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventType',
type: {
name: 'Composite',
class_name: 'EventType',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
display_name: {
client_side_validation: true,
required: false,
serialized_name: 'properties.displayName',
type: {
name: 'String'
}
},
description: {
client_side_validation: true,
required: false,
serialized_name: 'properties.description',
type: {
name: 'String'
}
},
schema_url: {
client_side_validation: true,
required: false,
serialized_name: 'properties.schemaUrl',
type: {
name: 'String'
}
},
is_in_default_set: {
client_side_validation: true,
required: false,
serialized_name: 'properties.isInDefaultSet',
type: {
name: 'Boolean'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,55 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the List Event Types operation
#
class EventTypesListResult
include MsRestAzure
# @return [Array<EventType>] A collection of event types
attr_accessor :value
#
# Mapper for EventTypesListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'EventTypesListResult',
type: {
name: 'Composite',
class_name: 'EventTypesListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'EventTypeElementType',
type: {
name: 'Composite',
class_name: 'EventType'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,57 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Definition of an Extended Location
#
class ExtendedLocation
include MsRestAzure
# @return [String] Fully qualified name of the extended location.
attr_accessor :name
# @return [String] Type of the extended location.
attr_accessor :type
#
# Mapper for ExtendedLocation class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'ExtendedLocation',
type: {
name: 'Composite',
class_name: 'ExtendedLocation',
model_properties: {
name: {
client_side_validation: true,
required: false,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
serialized_name: 'type',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,86 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Event grid Extension Topic. This is used for getting Event Grid related
# metrics for Azure resources.
#
class ExtensionTopic < Resource
include MsRestAzure
# @return [String] Description of the extension topic.
attr_accessor :description
# @return [String] System topic resource id which is mapped to the
# source.
attr_accessor :system_topic
#
# Mapper for ExtensionTopic class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'ExtensionTopic',
type: {
name: 'Composite',
class_name: 'ExtensionTopic',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
description: {
client_side_validation: true,
required: false,
serialized_name: 'properties.description',
type: {
name: 'String'
}
},
system_topic: {
client_side_validation: true,
required: false,
serialized_name: 'properties.systemTopic',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,86 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Information about the HybridConnection destination for an event
# subscription.
#
class HybridConnectionEventSubscriptionDestination < EventSubscriptionDestination
include MsRestAzure
def initialize
@endpointType = "HybridConnection"
end
attr_accessor :endpointType
# @return [String] The Azure Resource ID of an hybrid connection that is
# the destination of an event subscription.
attr_accessor :resource_id
# @return [Array<DeliveryAttributeMapping>] Delivery attribute details.
attr_accessor :delivery_attribute_mappings
#
# Mapper for HybridConnectionEventSubscriptionDestination class as Ruby
# Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'HybridConnection',
type: {
name: 'Composite',
class_name: 'HybridConnectionEventSubscriptionDestination',
model_properties: {
endpointType: {
client_side_validation: true,
required: true,
serialized_name: 'endpointType',
type: {
name: 'String'
}
},
resource_id: {
client_side_validation: true,
required: false,
serialized_name: 'properties.resourceId',
type: {
name: 'String'
}
},
delivery_attribute_mappings: {
client_side_validation: true,
required: false,
serialized_name: 'properties.deliveryAttributeMappings',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'DeliveryAttributeMappingElementType',
type: {
name: 'Composite',
polymorphic_discriminator: 'type',
uber_parent: 'DeliveryAttributeMapping',
class_name: 'DeliveryAttributeMapping'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,96 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# The identity information for the resource.
#
class IdentityInfo
include MsRestAzure
# @return [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. Possible values include: 'None', 'SystemAssigned',
# 'UserAssigned', 'SystemAssigned, UserAssigned'
attr_accessor :type
# @return [String] The principal ID of resource identity.
attr_accessor :principal_id
# @return [String] The tenant ID of resource.
attr_accessor :tenant_id
# @return [Hash{String => UserIdentityProperties}] 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.
attr_accessor :user_assigned_identities
#
# Mapper for IdentityInfo class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'IdentityInfo',
type: {
name: 'Composite',
class_name: 'IdentityInfo',
model_properties: {
type: {
client_side_validation: true,
required: false,
serialized_name: 'type',
type: {
name: 'String'
}
},
principal_id: {
client_side_validation: true,
required: false,
serialized_name: 'principalId',
type: {
name: 'String'
}
},
tenant_id: {
client_side_validation: true,
required: false,
serialized_name: 'tenantId',
type: {
name: 'String'
}
},
user_assigned_identities: {
client_side_validation: true,
required: false,
serialized_name: 'userAssignedIdentities',
type: {
name: 'Dictionary',
value: {
client_side_validation: true,
required: false,
serialized_name: 'UserIdentityPropertiesElementType',
type: {
name: 'Composite',
class_name: 'UserIdentityProperties'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,18 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for IdentityType
#
module IdentityType
None = "None"
SystemAssigned = "SystemAssigned"
UserAssigned = "UserAssigned"
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned"
end
end
end

Просмотреть файл

@ -0,0 +1,59 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Model object.
#
#
class InboundIpRule
include MsRestAzure
# @return [String] IP Address in CIDR notation e.g., 10.0.0.0/8.
attr_accessor :ip_mask
# @return [IpActionType] Action to perform based on the match or no match
# of the IpMask. Possible values include: 'Allow'
attr_accessor :action
#
# Mapper for InboundIpRule class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'InboundIpRule',
type: {
name: 'Composite',
class_name: 'InboundIpRule',
model_properties: {
ip_mask: {
client_side_validation: true,
required: false,
serialized_name: 'ipMask',
type: {
name: 'String'
}
},
action: {
client_side_validation: true,
required: false,
serialized_name: 'action',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,17 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for InputSchema
#
module InputSchema
EventGridSchema = "EventGridSchema"
CustomEventSchema = "CustomEventSchema"
CloudEventSchemaV10 = "CloudEventSchemaV1_0"
end
end
end

Просмотреть файл

@ -0,0 +1,49 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# 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'.
#
class InputSchemaMapping
include MsRestAzure
@@discriminatorMap = Hash.new
@@discriminatorMap["Json"] = "JsonInputSchemaMapping"
def initialize
@inputSchemaMappingType = "InputSchemaMapping"
end
attr_accessor :inputSchemaMappingType
#
# Mapper for InputSchemaMapping class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'InputSchemaMapping',
type: {
name: 'Composite',
polymorphic_discriminator: 'inputSchemaMappingType',
uber_parent: 'InputSchemaMapping',
class_name: 'InputSchemaMapping',
model_properties: {
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,15 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for IpActionType
#
module IpActionType
Allow = "Allow"
end
end
end

Просмотреть файл

@ -0,0 +1,58 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# IsNotNull Advanced Filter.
#
class IsNotNullAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "IsNotNull"
end
attr_accessor :operatorType
#
# Mapper for IsNotNullAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'IsNotNull',
type: {
name: 'Composite',
class_name: 'IsNotNullAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,58 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# IsNullOrUndefined Advanced Filter.
#
class IsNullOrUndefinedAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "IsNullOrUndefined"
end
attr_accessor :operatorType
#
# Mapper for IsNullOrUndefinedAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'IsNullOrUndefined',
type: {
name: 'Composite',
class_name: 'IsNullOrUndefinedAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,50 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# 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.
#
class JsonField
include MsRestAzure
# @return [String] Name of a field in the input event schema that's to be
# used as the source of a mapping.
attr_accessor :source_field
#
# Mapper for JsonField class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'JsonField',
type: {
name: 'Composite',
class_name: 'JsonField',
model_properties: {
source_field: {
client_side_validation: true,
required: false,
serialized_name: 'sourceField',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,67 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# 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.
#
class JsonFieldWithDefault
include MsRestAzure
# @return [String] Name of a field in the input event schema that's to be
# used as the source of a mapping.
attr_accessor :source_field
# @return [String] 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.
attr_accessor :default_value
#
# Mapper for JsonFieldWithDefault class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'JsonFieldWithDefault',
type: {
name: 'Composite',
class_name: 'JsonFieldWithDefault',
model_properties: {
source_field: {
client_side_validation: true,
required: false,
serialized_name: 'sourceField',
type: {
name: 'String'
}
},
default_value: {
client_side_validation: true,
required: false,
serialized_name: 'defaultValue',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,130 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# 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.
#
class JsonInputSchemaMapping < InputSchemaMapping
include MsRestAzure
def initialize
@inputSchemaMappingType = "Json"
end
attr_accessor :inputSchemaMappingType
# @return [JsonField] The mapping information for the Id property of the
# Event Grid Event.
attr_accessor :id
# @return [JsonField] The mapping information for the Topic property of
# the Event Grid Event.
attr_accessor :topic
# @return [JsonField] The mapping information for the EventTime property
# of the Event Grid Event.
attr_accessor :event_time
# @return [JsonFieldWithDefault] The mapping information for the
# EventType property of the Event Grid Event.
attr_accessor :event_type
# @return [JsonFieldWithDefault] The mapping information for the Subject
# property of the Event Grid Event.
attr_accessor :subject
# @return [JsonFieldWithDefault] The mapping information for the
# DataVersion property of the Event Grid Event.
attr_accessor :data_version
#
# Mapper for JsonInputSchemaMapping class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'Json',
type: {
name: 'Composite',
class_name: 'JsonInputSchemaMapping',
model_properties: {
inputSchemaMappingType: {
client_side_validation: true,
required: true,
serialized_name: 'inputSchemaMappingType',
type: {
name: 'String'
}
},
id: {
client_side_validation: true,
required: false,
serialized_name: 'properties.id',
type: {
name: 'Composite',
class_name: 'JsonField'
}
},
topic: {
client_side_validation: true,
required: false,
serialized_name: 'properties.topic',
type: {
name: 'Composite',
class_name: 'JsonField'
}
},
event_time: {
client_side_validation: true,
required: false,
serialized_name: 'properties.eventTime',
type: {
name: 'Composite',
class_name: 'JsonField'
}
},
event_type: {
client_side_validation: true,
required: false,
serialized_name: 'properties.eventType',
type: {
name: 'Composite',
class_name: 'JsonFieldWithDefault'
}
},
subject: {
client_side_validation: true,
required: false,
serialized_name: 'properties.subject',
type: {
name: 'Composite',
class_name: 'JsonFieldWithDefault'
}
},
data_version: {
client_side_validation: true,
required: false,
serialized_name: 'properties.dataVersion',
type: {
name: 'Composite',
class_name: 'JsonFieldWithDefault'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,69 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# NumberGreaterThan Advanced Filter.
#
class NumberGreaterThanAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "NumberGreaterThan"
end
attr_accessor :operatorType
# @return [Float] The filter value.
attr_accessor :value
#
# Mapper for NumberGreaterThanAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'NumberGreaterThan',
type: {
name: 'Composite',
class_name: 'NumberGreaterThanAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
},
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Double'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,69 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# NumberGreaterThanOrEquals Advanced Filter.
#
class NumberGreaterThanOrEqualsAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "NumberGreaterThanOrEquals"
end
attr_accessor :operatorType
# @return [Float] The filter value.
attr_accessor :value
#
# Mapper for NumberGreaterThanOrEqualsAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'NumberGreaterThanOrEquals',
type: {
name: 'Composite',
class_name: 'NumberGreaterThanOrEqualsAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
},
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Double'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,77 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# NumberIn Advanced Filter.
#
class NumberInAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "NumberIn"
end
attr_accessor :operatorType
# @return [Array<Float>] The set of filter values.
attr_accessor :values
#
# Mapper for NumberInAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'NumberIn',
type: {
name: 'Composite',
class_name: 'NumberInAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
},
values: {
client_side_validation: true,
required: false,
serialized_name: 'values',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'FloatElementType',
type: {
name: 'Double'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,85 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# NumberInRange Advanced Filter.
#
class NumberInRangeAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "NumberInRange"
end
attr_accessor :operatorType
# @return [Array<Array<Float>>] The set of filter values.
attr_accessor :values
#
# Mapper for NumberInRangeAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'NumberInRange',
type: {
name: 'Composite',
class_name: 'NumberInRangeAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
},
values: {
client_side_validation: true,
required: false,
serialized_name: 'values',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'ArrayElementType',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'FloatElementType',
type: {
name: 'Double'
}
}
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,69 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# NumberLessThan Advanced Filter.
#
class NumberLessThanAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "NumberLessThan"
end
attr_accessor :operatorType
# @return [Float] The filter value.
attr_accessor :value
#
# Mapper for NumberLessThanAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'NumberLessThan',
type: {
name: 'Composite',
class_name: 'NumberLessThanAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
},
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Double'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,69 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# NumberLessThanOrEquals Advanced Filter.
#
class NumberLessThanOrEqualsAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "NumberLessThanOrEquals"
end
attr_accessor :operatorType
# @return [Float] The filter value.
attr_accessor :value
#
# Mapper for NumberLessThanOrEqualsAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'NumberLessThanOrEquals',
type: {
name: 'Composite',
class_name: 'NumberLessThanOrEqualsAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
},
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Double'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,77 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# NumberNotIn Advanced Filter.
#
class NumberNotInAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "NumberNotIn"
end
attr_accessor :operatorType
# @return [Array<Float>] The set of filter values.
attr_accessor :values
#
# Mapper for NumberNotInAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'NumberNotIn',
type: {
name: 'Composite',
class_name: 'NumberNotInAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
},
values: {
client_side_validation: true,
required: false,
serialized_name: 'values',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'FloatElementType',
type: {
name: 'Double'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,85 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# NumberNotInRange Advanced Filter.
#
class NumberNotInRangeAdvancedFilter < AdvancedFilter
include MsRestAzure
def initialize
@operatorType = "NumberNotInRange"
end
attr_accessor :operatorType
# @return [Array<Array<Float>>] The set of filter values.
attr_accessor :values
#
# Mapper for NumberNotInRangeAdvancedFilter class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'NumberNotInRange',
type: {
name: 'Composite',
class_name: 'NumberNotInRangeAdvancedFilter',
model_properties: {
key: {
client_side_validation: true,
required: false,
serialized_name: 'key',
type: {
name: 'String'
}
},
operatorType: {
client_side_validation: true,
required: true,
serialized_name: 'operatorType',
type: {
name: 'String'
}
},
values: {
client_side_validation: true,
required: false,
serialized_name: 'values',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'ArrayElementType',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'FloatElementType',
type: {
name: 'Double'
}
}
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,80 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Represents an operation returned by the GetOperations request
#
class Operation
include MsRestAzure
# @return [String] Name of the operation
attr_accessor :name
# @return [OperationInfo] Display name of the operation
attr_accessor :display
# @return [String] Origin of the operation
attr_accessor :origin
# @return Properties of the operation
attr_accessor :properties
#
# Mapper for Operation class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'Operation',
type: {
name: 'Composite',
class_name: 'Operation',
model_properties: {
name: {
client_side_validation: true,
required: false,
serialized_name: 'name',
type: {
name: 'String'
}
},
display: {
client_side_validation: true,
required: false,
serialized_name: 'display',
type: {
name: 'Composite',
class_name: 'OperationInfo'
}
},
origin: {
client_side_validation: true,
required: false,
serialized_name: 'origin',
type: {
name: 'String'
}
},
properties: {
client_side_validation: true,
required: false,
serialized_name: 'properties',
type: {
name: 'Object'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,79 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Information about an operation
#
class OperationInfo
include MsRestAzure
# @return [String] Name of the provider
attr_accessor :provider
# @return [String] Name of the resource type
attr_accessor :resource
# @return [String] Name of the operation
attr_accessor :operation
# @return [String] Description of the operation
attr_accessor :description
#
# Mapper for OperationInfo class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'OperationInfo',
type: {
name: 'Composite',
class_name: 'OperationInfo',
model_properties: {
provider: {
client_side_validation: true,
required: false,
serialized_name: 'provider',
type: {
name: 'String'
}
},
resource: {
client_side_validation: true,
required: false,
serialized_name: 'resource',
type: {
name: 'String'
}
},
operation: {
client_side_validation: true,
required: false,
serialized_name: 'operation',
type: {
name: 'String'
}
},
description: {
client_side_validation: true,
required: false,
serialized_name: 'description',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,55 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the List Operations operation
#
class OperationsListResult
include MsRestAzure
# @return [Array<Operation>] A collection of operations
attr_accessor :value
#
# Mapper for OperationsListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'OperationsListResult',
type: {
name: 'Composite',
class_name: 'OperationsListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'OperationElementType',
type: {
name: 'Composite',
class_name: 'Operation'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,140 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# EventGrid Partner Namespace.
#
class PartnerNamespace < TrackedResource
include MsRestAzure
# @return [PartnerNamespaceProvisioningState] Provisioning state of the
# partner namespace. Possible values include: 'Creating', 'Updating',
# 'Deleting', 'Succeeded', 'Canceled', 'Failed'
attr_accessor :provisioning_state
# @return [String] 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}.
attr_accessor :partner_registration_fully_qualified_id
# @return [String] Endpoint for the partner namespace.
attr_accessor :endpoint
# @return [SystemData] The system metadata relating to Partner Namespace
# resource.
attr_accessor :system_data
#
# Mapper for PartnerNamespace class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerNamespace',
type: {
name: 'Composite',
class_name: 'PartnerNamespace',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
location: {
client_side_validation: true,
required: true,
serialized_name: 'location',
type: {
name: 'String'
}
},
tags: {
client_side_validation: true,
required: false,
serialized_name: 'tags',
type: {
name: 'Dictionary',
value: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
provisioning_state: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.provisioningState',
type: {
name: 'String'
}
},
partner_registration_fully_qualified_id: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerRegistrationFullyQualifiedId',
type: {
name: 'String'
}
},
endpoint: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.endpoint',
type: {
name: 'String'
}
},
system_data: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'systemData',
type: {
name: 'Composite',
class_name: 'SystemData'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,20 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for PartnerNamespaceProvisioningState
#
module PartnerNamespaceProvisioningState
Creating = "Creating"
Updating = "Updating"
Deleting = "Deleting"
Succeeded = "Succeeded"
Canceled = "Canceled"
Failed = "Failed"
end
end
end

Просмотреть файл

@ -0,0 +1,46 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# PartnerNamespace regenerate shared access key request.
#
class PartnerNamespaceRegenerateKeyRequest
include MsRestAzure
# @return [String] Key name to regenerate (key1 or key2).
attr_accessor :key_name
#
# Mapper for PartnerNamespaceRegenerateKeyRequest class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerNamespaceRegenerateKeyRequest',
type: {
name: 'Composite',
class_name: 'PartnerNamespaceRegenerateKeyRequest',
model_properties: {
key_name: {
client_side_validation: true,
required: true,
serialized_name: 'keyName',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,57 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Shared access keys of the partner namespace.
#
class PartnerNamespaceSharedAccessKeys
include MsRestAzure
# @return [String] Shared access key1 for the partner namespace.
attr_accessor :key1
# @return [String] Shared access key2 for the partner namespace.
attr_accessor :key2
#
# Mapper for PartnerNamespaceSharedAccessKeys class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerNamespaceSharedAccessKeys',
type: {
name: 'Composite',
class_name: 'PartnerNamespaceSharedAccessKeys',
model_properties: {
key1: {
client_side_validation: true,
required: false,
serialized_name: 'key1',
type: {
name: 'String'
}
},
key2: {
client_side_validation: true,
required: false,
serialized_name: 'key2',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,54 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Properties of the PartnerNamespace update.
#
class PartnerNamespaceUpdateParameters
include MsRestAzure
# @return [Hash{String => String}] Tags of the partner namespace.
attr_accessor :tags
#
# Mapper for PartnerNamespaceUpdateParameters class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerNamespaceUpdateParameters',
type: {
name: 'Composite',
class_name: 'PartnerNamespaceUpdateParameters',
model_properties: {
tags: {
client_side_validation: true,
required: false,
serialized_name: 'tags',
type: {
name: 'Dictionary',
value: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,98 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the List Partner Namespaces operation
#
class PartnerNamespacesListResult
include MsRestAzure
include MsRest::JSONable
# @return [Array<PartnerNamespace>] A collection of partner namespaces.
attr_accessor :value
# @return [String] A link for the next page of partner namespaces.
attr_accessor :next_link
# return [Proc] with next page method call.
attr_accessor :next_method
#
# Gets the rest of the items for the request, enabling auto-pagination.
#
# @return [Array<PartnerNamespace>] operation results.
#
def get_all_items
items = @value
page = self
while page.next_link != nil && !page.next_link.strip.empty? do
page = page.get_next_page
items.concat(page.value)
end
items
end
#
# Gets the next page of results.
#
# @return [PartnerNamespacesListResult] with next page content.
#
def get_next_page
response = @next_method.call(@next_link).value! unless @next_method.nil?
unless response.nil?
@next_link = response.body.next_link
@value = response.body.value
self
end
end
#
# Mapper for PartnerNamespacesListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerNamespacesListResult',
type: {
name: 'Composite',
class_name: 'PartnerNamespacesListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'PartnerNamespaceElementType',
type: {
name: 'Composite',
class_name: 'PartnerNamespace'
}
}
}
},
next_link: {
client_side_validation: true,
required: false,
serialized_name: 'nextLink',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,278 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Information about a partner registration.
#
class PartnerRegistration < TrackedResource
include MsRestAzure
# @return [PartnerRegistrationProvisioningState] Provisioning state of
# the partner registration. Possible values include: 'Creating',
# 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed'
attr_accessor :provisioning_state
# @return [String] Official name of the partner name. For example:
# "Contoso".
attr_accessor :partner_name
# @return [String] Name of the partner resource type.
attr_accessor :partner_resource_type_name
# @return [String] Display name of the partner resource type.
attr_accessor :partner_resource_type_display_name
# @return [String] Short description of the partner resource type. The
# length of this description should not exceed 256 characters.
attr_accessor :partner_resource_type_description
# @return [String] Long description for the custom scenarios and
# integration to be displayed in the portal if needed.
# Length of this description should not exceed 2048 characters.
attr_accessor :long_description
# @return [String] The customer service number of the publisher. The
# expected phone format should start with a '+' sign
# followed by the country code. The remaining digits are then followed.
# Only digits and spaces are allowed and its
# length cannot exceed 16 digits including country code. Examples of
# valid phone numbers are: +1 515 123 4567 and
# +966 7 5115 2471. Examples of invalid phone numbers are: +1 (515)
# 123-4567, 1 515 123 4567 and +966 121 5115 24 7 551 1234 43
attr_accessor :partner_customer_service_number
# @return [String] The extension of the customer service number of the
# publisher. Only digits are allowed and number of digits should not
# exceed 10.
attr_accessor :partner_customer_service_extension
# @return [String] The extension of the customer service URI of the
# publisher.
attr_accessor :customer_service_uri
# @return [String] URI of the partner website that can be used by Azure
# customers to setup Event Grid
# integration on an event source.
attr_accessor :setup_uri
# @return [String] URI of the logo.
attr_accessor :logo_uri
# @return [PartnerRegistrationVisibilityState] Visibility state of the
# partner registration. Possible values include: 'Hidden',
# 'PublicPreview', 'GenerallyAvailable'
attr_accessor :visibility_state
# @return [Array<String>] List of Azure subscription Ids that are
# authorized to create a partner namespace
# associated with this partner registration. This is an optional
# property. Creating
# partner namespaces is always permitted under the same Azure
# subscription as the one used
# for creating the partner registration.
attr_accessor :authorized_azure_subscription_ids
# @return [SystemData] The system metadata relating to Partner
# Registration resource.
attr_accessor :system_data
#
# Mapper for PartnerRegistration class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerRegistration',
type: {
name: 'Composite',
class_name: 'PartnerRegistration',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
location: {
client_side_validation: true,
required: true,
serialized_name: 'location',
type: {
name: 'String'
}
},
tags: {
client_side_validation: true,
required: false,
serialized_name: 'tags',
type: {
name: 'Dictionary',
value: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
provisioning_state: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.provisioningState',
type: {
name: 'String'
}
},
partner_name: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerName',
type: {
name: 'String'
}
},
partner_resource_type_name: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerResourceTypeName',
type: {
name: 'String'
}
},
partner_resource_type_display_name: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerResourceTypeDisplayName',
type: {
name: 'String'
}
},
partner_resource_type_description: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerResourceTypeDescription',
type: {
name: 'String'
}
},
long_description: {
client_side_validation: true,
required: false,
serialized_name: 'properties.longDescription',
type: {
name: 'String'
}
},
partner_customer_service_number: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerCustomerServiceNumber',
type: {
name: 'String'
}
},
partner_customer_service_extension: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerCustomerServiceExtension',
type: {
name: 'String'
}
},
customer_service_uri: {
client_side_validation: true,
required: false,
serialized_name: 'properties.customerServiceUri',
type: {
name: 'String'
}
},
setup_uri: {
client_side_validation: true,
required: false,
serialized_name: 'properties.setupUri',
type: {
name: 'String'
}
},
logo_uri: {
client_side_validation: true,
required: false,
serialized_name: 'properties.logoUri',
type: {
name: 'String'
}
},
visibility_state: {
client_side_validation: true,
required: false,
serialized_name: 'properties.visibilityState',
type: {
name: 'String'
}
},
authorized_azure_subscription_ids: {
client_side_validation: true,
required: false,
serialized_name: 'properties.authorizedAzureSubscriptionIds',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
system_data: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'systemData',
type: {
name: 'Composite',
class_name: 'SystemData'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,68 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the List Partner Registration Event Types operation.
#
class PartnerRegistrationEventTypesListResult
include MsRestAzure
# @return [Array<EventType>] A collection of partner registration event
# types.
attr_accessor :value
# @return [String] A link for the next page of partner registration event
# types.
attr_accessor :next_link
#
# Mapper for PartnerRegistrationEventTypesListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerRegistrationEventTypesListResult',
type: {
name: 'Composite',
class_name: 'PartnerRegistrationEventTypesListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'EventTypeElementType',
type: {
name: 'Composite',
class_name: 'EventType'
}
}
}
},
next_link: {
client_side_validation: true,
required: false,
serialized_name: 'nextLink',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,20 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for PartnerRegistrationProvisioningState
#
module PartnerRegistrationProvisioningState
Creating = "Creating"
Updating = "Updating"
Deleting = "Deleting"
Succeeded = "Succeeded"
Canceled = "Canceled"
Failed = "Failed"
end
end
end

Просмотреть файл

@ -0,0 +1,137 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Properties of the Partner Registration update.
#
class PartnerRegistrationUpdateParameters
include MsRestAzure
# @return [Hash{String => String}] Tags of the partner registration
# resource.
attr_accessor :tags
# @return [String] Name of the partner topic type.
attr_accessor :partner_topic_type_name
# @return [String] Display name of the partner topic type.
attr_accessor :partner_topic_type_display_name
# @return [String] Description of the partner topic type.
attr_accessor :partner_topic_type_description
# @return [String] URI of the partner website that can be used by Azure
# customers to setup Event Grid
# integration on an event source.
attr_accessor :setup_uri
# @return [String] URI of the partner logo.
attr_accessor :logo_uri
# @return [Array<String>] List of IDs of Azure AD applications that are
# authorized to create a partner namespace
# associated with this partner registration. This is an optional
# property. Creating
# partner namespaces is always permitted under the same Azure
# subscription as the one used
# for creating the partner registration.
attr_accessor :authorized_azure_subscription_ids
#
# Mapper for PartnerRegistrationUpdateParameters class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerRegistrationUpdateParameters',
type: {
name: 'Composite',
class_name: 'PartnerRegistrationUpdateParameters',
model_properties: {
tags: {
client_side_validation: true,
required: false,
serialized_name: 'tags',
type: {
name: 'Dictionary',
value: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
partner_topic_type_name: {
client_side_validation: true,
required: false,
serialized_name: 'partnerTopicTypeName',
type: {
name: 'String'
}
},
partner_topic_type_display_name: {
client_side_validation: true,
required: false,
serialized_name: 'partnerTopicTypeDisplayName',
type: {
name: 'String'
}
},
partner_topic_type_description: {
client_side_validation: true,
required: false,
serialized_name: 'partnerTopicTypeDescription',
type: {
name: 'String'
}
},
setup_uri: {
client_side_validation: true,
required: false,
serialized_name: 'setupUri',
type: {
name: 'String'
}
},
logo_uri: {
client_side_validation: true,
required: false,
serialized_name: 'logoUri',
type: {
name: 'String'
}
},
authorized_azure_subscription_ids: {
client_side_validation: true,
required: false,
serialized_name: 'authorizedAzureSubscriptionIds',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,17 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for PartnerRegistrationVisibilityState
#
module PartnerRegistrationVisibilityState
Hidden = "Hidden"
PublicPreview = "PublicPreview"
GenerallyAvailable = "GenerallyAvailable"
end
end
end

Просмотреть файл

@ -0,0 +1,99 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Result of the List Partner Registrations operation.
#
class PartnerRegistrationsListResult
include MsRestAzure
include MsRest::JSONable
# @return [Array<PartnerRegistration>] A collection of partner
# registrations.
attr_accessor :value
# @return [String] A link for the next page of partner registrations.
attr_accessor :next_link
# return [Proc] with next page method call.
attr_accessor :next_method
#
# Gets the rest of the items for the request, enabling auto-pagination.
#
# @return [Array<PartnerRegistration>] operation results.
#
def get_all_items
items = @value
page = self
while page.next_link != nil && !page.next_link.strip.empty? do
page = page.get_next_page
items.concat(page.value)
end
items
end
#
# Gets the next page of results.
#
# @return [PartnerRegistrationsListResult] with next page content.
#
def get_next_page
response = @next_method.call(@next_link).value! unless @next_method.nil?
unless response.nil?
@next_link = response.body.next_link
@value = response.body.value
self
end
end
#
# Mapper for PartnerRegistrationsListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerRegistrationsListResult',
type: {
name: 'Composite',
class_name: 'PartnerRegistrationsListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'PartnerRegistrationElementType',
type: {
name: 'Composite',
class_name: 'PartnerRegistration'
}
}
}
},
next_link: {
client_side_validation: true,
required: false,
serialized_name: 'nextLink',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,179 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# EventGrid Partner Topic.
#
class PartnerTopic < TrackedResource
include MsRestAzure
# @return [String] Source associated with this partner topic. This
# represents a unique partner resource.
attr_accessor :source
# @return [DateTime] 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.
attr_accessor :expiration_time_if_not_activated_utc
# @return [PartnerTopicProvisioningState] Provisioning state of the
# partner topic. Possible values include: 'Creating', 'Updating',
# 'Deleting', 'Succeeded', 'Canceled', 'Failed'
attr_accessor :provisioning_state
# @return [PartnerTopicActivationState] Activation state of the partner
# topic. Possible values include: 'NeverActivated', 'Activated',
# 'Deactivated'
attr_accessor :activation_state
# @return [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.
attr_accessor :partner_topic_friendly_description
# @return [IdentityInfo] Identity information for the resource.
attr_accessor :identity
# @return [SystemData] The system metadata relating to Partner Topic
# resource.
attr_accessor :system_data
#
# Mapper for PartnerTopic class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerTopic',
type: {
name: 'Composite',
class_name: 'PartnerTopic',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
location: {
client_side_validation: true,
required: true,
serialized_name: 'location',
type: {
name: 'String'
}
},
tags: {
client_side_validation: true,
required: false,
serialized_name: 'tags',
type: {
name: 'Dictionary',
value: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
source: {
client_side_validation: true,
required: false,
serialized_name: 'properties.source',
type: {
name: 'String'
}
},
expiration_time_if_not_activated_utc: {
client_side_validation: true,
required: false,
serialized_name: 'properties.expirationTimeIfNotActivatedUtc',
type: {
name: 'DateTime'
}
},
provisioning_state: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'properties.provisioningState',
type: {
name: 'String'
}
},
activation_state: {
client_side_validation: true,
required: false,
serialized_name: 'properties.activationState',
type: {
name: 'String'
}
},
partner_topic_friendly_description: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerTopicFriendlyDescription',
type: {
name: 'String'
}
},
identity: {
client_side_validation: true,
required: false,
serialized_name: 'identity',
type: {
name: 'Composite',
class_name: 'IdentityInfo'
}
},
system_data: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'systemData',
type: {
name: 'Composite',
class_name: 'SystemData'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,17 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for PartnerTopicActivationState
#
module PartnerTopicActivationState
NeverActivated = "NeverActivated"
Activated = "Activated"
Deactivated = "Deactivated"
end
end
end

Просмотреть файл

@ -0,0 +1,20 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for PartnerTopicProvisioningState
#
module PartnerTopicProvisioningState
Creating = "Creating"
Updating = "Updating"
Deleting = "Deleting"
Succeeded = "Succeeded"
Canceled = "Canceled"
Failed = "Failed"
end
end
end

Просмотреть файл

@ -0,0 +1,18 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for PartnerTopicReadinessState
#
module PartnerTopicReadinessState
NotActivatedByUserYet = "NotActivatedByUserYet"
ActivatedByUser = "ActivatedByUser"
DeactivatedByUser = "DeactivatedByUser"
DeletedByUser = "DeletedByUser"
end
end
end

Просмотреть файл

@ -0,0 +1,134 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Properties of a partner topic type.
#
class PartnerTopicType < Resource
include MsRestAzure
# @return [String] Official name of the partner.
attr_accessor :partner_name
# @return [String] Name of the partner topic type. This name should be
# unique among all partner topic types names.
attr_accessor :topic_type_name
# @return [String] Display Name for the partner topic type.
attr_accessor :display_name
# @return [String] Description of the partner topic type.
attr_accessor :description
# @return [String] URI of the partner website that can be used by Azure
# customers to setup Event Grid
# integration on an event source.
attr_accessor :setup_uri
# @return [PartnerTopicTypeAuthorizationState] Status of whether the
# customer has authorized a partner to create partner topics
# in the customer's subscription. Possible values include:
# 'NotApplicable', 'NotAuthorized', 'Authorized'
attr_accessor :authorization_state
#
# Mapper for PartnerTopicType class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'PartnerTopicType',
type: {
name: 'Composite',
class_name: 'PartnerTopicType',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
partner_name: {
client_side_validation: true,
required: false,
serialized_name: 'properties.partnerName',
type: {
name: 'String'
}
},
topic_type_name: {
client_side_validation: true,
required: false,
serialized_name: 'properties.topicTypeName',
type: {
name: 'String'
}
},
display_name: {
client_side_validation: true,
required: false,
serialized_name: 'properties.displayName',
type: {
name: 'String'
}
},
description: {
client_side_validation: true,
required: false,
serialized_name: 'properties.description',
type: {
name: 'String'
}
},
setup_uri: {
client_side_validation: true,
required: false,
serialized_name: 'properties.setupUri',
type: {
name: 'String'
}
},
authorization_state: {
client_side_validation: true,
required: false,
serialized_name: 'properties.authorizationState',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,17 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::EventGrid::Mgmt::V2020_10_15_preview
module Models
#
# Defines values for PartnerTopicTypeAuthorizationState
#
module PartnerTopicTypeAuthorizationState
NotApplicable = "NotApplicable"
NotAuthorized = "NotAuthorized"
Authorized = "Authorized"
end
end
end

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше