azure_mgmt_event_grid 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid.rb +38 -39
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/event_channels.rb +106 -62
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/connection_state.rb +1 -1
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel.rb +13 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel_filter.rb +119 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration_update_parameters.rb +20 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_endpoint_connection.rb +2 -1
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +1 -2
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_topic_event_subscriptions.rb +173 -8
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/private_endpoint_connections.rb +27 -9
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/system_topic_event_subscriptions.rb +173 -8
- data/lib/profiles/latest/modules/eventgrid_profile_module.rb +126 -130
- data/lib/version.rb +1 -1
- metadata +3 -4
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/sku_definitions_for_resource_type.rb +0 -67
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/sku_definitions_for_resource_type_list_result.rb +0 -67
@@ -0,0 +1,119 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Filter for the Event Channel.
|
10
|
+
#
|
11
|
+
class EventChannelFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] An optional string to filter events for an event
|
16
|
+
# channel based on a resource path prefix.
|
17
|
+
# The format of this depends on the publisher of the events. Wildcard
|
18
|
+
# characters are not supported in this path.
|
19
|
+
attr_accessor :subject_begins_with
|
20
|
+
|
21
|
+
# @return [String] An optional string to filter events for an event
|
22
|
+
# channel based on a resource path suffix.
|
23
|
+
# Wildcard characters are not supported in this path.
|
24
|
+
attr_accessor :subject_ends_with
|
25
|
+
|
26
|
+
# @return [Array<String>] A list of applicable event types that need to
|
27
|
+
# be part of the event channel. If it is desired to subscribe to all
|
28
|
+
# default event types, set the IncludedEventTypes to null.
|
29
|
+
attr_accessor :included_event_types
|
30
|
+
|
31
|
+
# @return [Boolean] Specifies if the SubjectBeginsWith and
|
32
|
+
# SubjectEndsWith properties of the filter
|
33
|
+
# should be compared in a case sensitive manner.
|
34
|
+
attr_accessor :is_subject_case_sensitive
|
35
|
+
|
36
|
+
# @return [Array<AdvancedFilter>] An array of advanced filters that are
|
37
|
+
# used for filtering event channels.
|
38
|
+
attr_accessor :advanced_filters
|
39
|
+
|
40
|
+
|
41
|
+
#
|
42
|
+
# Mapper for EventChannelFilter class as Ruby Hash.
|
43
|
+
# This will be used for serialization/deserialization.
|
44
|
+
#
|
45
|
+
def self.mapper()
|
46
|
+
{
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'EventChannelFilter',
|
50
|
+
type: {
|
51
|
+
name: 'Composite',
|
52
|
+
class_name: 'EventChannelFilter',
|
53
|
+
model_properties: {
|
54
|
+
subject_begins_with: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'subjectBeginsWith',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
subject_ends_with: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'subjectEndsWith',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
included_event_types: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'includedEventTypes',
|
74
|
+
type: {
|
75
|
+
name: 'Sequence',
|
76
|
+
element: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'StringElementType',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
is_subject_case_sensitive: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'isSubjectCaseSensitive',
|
90
|
+
type: {
|
91
|
+
name: 'Boolean'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
advanced_filters: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
serialized_name: 'advancedFilters',
|
98
|
+
type: {
|
99
|
+
name: 'Sequence',
|
100
|
+
element: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'AdvancedFilterElementType',
|
104
|
+
type: {
|
105
|
+
name: 'Composite',
|
106
|
+
polymorphic_discriminator: 'operatorType',
|
107
|
+
uber_parent: 'AdvancedFilter',
|
108
|
+
class_name: 'AdvancedFilter'
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -12,6 +12,10 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
# @return [Hash{String => String}] Tags of the partner registration
|
16
|
+
# resource.
|
17
|
+
attr_accessor :tags
|
18
|
+
|
15
19
|
# @return [String] Name of the partner topic type.
|
16
20
|
attr_accessor :partner_topic_type_name
|
17
21
|
|
@@ -52,6 +56,22 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
52
56
|
name: 'Composite',
|
53
57
|
class_name: 'PartnerRegistrationUpdateParameters',
|
54
58
|
model_properties: {
|
59
|
+
tags: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'tags',
|
63
|
+
type: {
|
64
|
+
name: 'Dictionary',
|
65
|
+
value: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'StringElementType',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
},
|
55
75
|
partner_topic_type_name: {
|
56
76
|
client_side_validation: true,
|
57
77
|
required: false,
|
@@ -12,8 +12,7 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Array<PrivateEndpointConnection>]
|
16
|
-
# connections.
|
15
|
+
# @return [Array<PrivateEndpointConnection>]
|
17
16
|
attr_accessor :private_endpoint_connections
|
18
17
|
|
19
18
|
# @return [TopicProvisioningState] Provisioning state of the topic.
|
data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_topic_event_subscriptions.rb
CHANGED
@@ -417,14 +417,25 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
417
417
|
# @param resource_group_name [String] The name of the resource group within the
|
418
418
|
# user's subscription.
|
419
419
|
# @param partner_topic_name [String] Name of the partner topic.
|
420
|
+
# @param filter [String] The query used to filter the search results using
|
421
|
+
# OData syntax. Filtering is permitted on the 'name' property only and with
|
422
|
+
# limited number of OData operations. These operations are: the 'contains'
|
423
|
+
# function as well as the following logical operations: not, and, or, eq (for
|
424
|
+
# equal), and ne (for not equal). No arithmetic operations are supported. The
|
425
|
+
# following is a valid filter example: $filter=contains(namE, 'PATTERN') and
|
426
|
+
# name ne 'PATTERN-1'. The following is not a valid filter example:
|
427
|
+
# $filter=location eq 'westus'.
|
428
|
+
# @param top [Integer] The number of results to return per page for the list
|
429
|
+
# operation. Valid range for top parameter is 1 to 100. If not specified, the
|
430
|
+
# default number of results to be returned is 20 items per page.
|
420
431
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
421
432
|
# will be added to the HTTP request.
|
422
433
|
#
|
423
|
-
# @return [
|
434
|
+
# @return [Array<EventSubscription>] operation results.
|
424
435
|
#
|
425
|
-
def list_by_partner_topic(resource_group_name, partner_topic_name, custom_headers:nil)
|
426
|
-
|
427
|
-
|
436
|
+
def list_by_partner_topic(resource_group_name, partner_topic_name, filter:nil, top:nil, custom_headers:nil)
|
437
|
+
first_page = list_by_partner_topic_as_lazy(resource_group_name, partner_topic_name, filter:filter, top:top, custom_headers:custom_headers)
|
438
|
+
first_page.get_all_items
|
428
439
|
end
|
429
440
|
|
430
441
|
#
|
@@ -435,13 +446,24 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
435
446
|
# @param resource_group_name [String] The name of the resource group within the
|
436
447
|
# user's subscription.
|
437
448
|
# @param partner_topic_name [String] Name of the partner topic.
|
449
|
+
# @param filter [String] The query used to filter the search results using
|
450
|
+
# OData syntax. Filtering is permitted on the 'name' property only and with
|
451
|
+
# limited number of OData operations. These operations are: the 'contains'
|
452
|
+
# function as well as the following logical operations: not, and, or, eq (for
|
453
|
+
# equal), and ne (for not equal). No arithmetic operations are supported. The
|
454
|
+
# following is a valid filter example: $filter=contains(namE, 'PATTERN') and
|
455
|
+
# name ne 'PATTERN-1'. The following is not a valid filter example:
|
456
|
+
# $filter=location eq 'westus'.
|
457
|
+
# @param top [Integer] The number of results to return per page for the list
|
458
|
+
# operation. Valid range for top parameter is 1 to 100. If not specified, the
|
459
|
+
# default number of results to be returned is 20 items per page.
|
438
460
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
439
461
|
# will be added to the HTTP request.
|
440
462
|
#
|
441
463
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
442
464
|
#
|
443
|
-
def list_by_partner_topic_with_http_info(resource_group_name, partner_topic_name, custom_headers:nil)
|
444
|
-
list_by_partner_topic_async(resource_group_name, partner_topic_name, custom_headers:custom_headers).value!
|
465
|
+
def list_by_partner_topic_with_http_info(resource_group_name, partner_topic_name, filter:nil, top:nil, custom_headers:nil)
|
466
|
+
list_by_partner_topic_async(resource_group_name, partner_topic_name, filter:filter, top:top, custom_headers:custom_headers).value!
|
445
467
|
end
|
446
468
|
|
447
469
|
#
|
@@ -452,12 +474,23 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
452
474
|
# @param resource_group_name [String] The name of the resource group within the
|
453
475
|
# user's subscription.
|
454
476
|
# @param partner_topic_name [String] Name of the partner topic.
|
477
|
+
# @param filter [String] The query used to filter the search results using
|
478
|
+
# OData syntax. Filtering is permitted on the 'name' property only and with
|
479
|
+
# limited number of OData operations. These operations are: the 'contains'
|
480
|
+
# function as well as the following logical operations: not, and, or, eq (for
|
481
|
+
# equal), and ne (for not equal). No arithmetic operations are supported. The
|
482
|
+
# following is a valid filter example: $filter=contains(namE, 'PATTERN') and
|
483
|
+
# name ne 'PATTERN-1'. The following is not a valid filter example:
|
484
|
+
# $filter=location eq 'westus'.
|
485
|
+
# @param top [Integer] The number of results to return per page for the list
|
486
|
+
# operation. Valid range for top parameter is 1 to 100. If not specified, the
|
487
|
+
# default number of results to be returned is 20 items per page.
|
455
488
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
456
489
|
# to the HTTP request.
|
457
490
|
#
|
458
491
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
459
492
|
#
|
460
|
-
def list_by_partner_topic_async(resource_group_name, partner_topic_name, custom_headers:nil)
|
493
|
+
def list_by_partner_topic_async(resource_group_name, partner_topic_name, filter:nil, top:nil, custom_headers:nil)
|
461
494
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
462
495
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
463
496
|
fail ArgumentError, 'partner_topic_name is nil' if partner_topic_name.nil?
|
@@ -477,7 +510,7 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
477
510
|
options = {
|
478
511
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
479
512
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'partnerTopicName' => partner_topic_name},
|
480
|
-
query_params: {'api-version' => @client.api_version},
|
513
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top},
|
481
514
|
headers: request_headers.merge(custom_headers || {}),
|
482
515
|
base_url: request_url
|
483
516
|
}
|
@@ -874,5 +907,137 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
874
907
|
promise.execute
|
875
908
|
end
|
876
909
|
|
910
|
+
#
|
911
|
+
# List event subscriptions of a partner topic.
|
912
|
+
#
|
913
|
+
# List event subscriptions that belong to a specific partner topic.
|
914
|
+
#
|
915
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
916
|
+
# to List operation.
|
917
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
918
|
+
# will be added to the HTTP request.
|
919
|
+
#
|
920
|
+
# @return [EventSubscriptionsListResult] operation results.
|
921
|
+
#
|
922
|
+
def list_by_partner_topic_next(next_page_link, custom_headers:nil)
|
923
|
+
response = list_by_partner_topic_next_async(next_page_link, custom_headers:custom_headers).value!
|
924
|
+
response.body unless response.nil?
|
925
|
+
end
|
926
|
+
|
927
|
+
#
|
928
|
+
# List event subscriptions of a partner topic.
|
929
|
+
#
|
930
|
+
# List event subscriptions that belong to a specific partner topic.
|
931
|
+
#
|
932
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
933
|
+
# to List operation.
|
934
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
935
|
+
# will be added to the HTTP request.
|
936
|
+
#
|
937
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
938
|
+
#
|
939
|
+
def list_by_partner_topic_next_with_http_info(next_page_link, custom_headers:nil)
|
940
|
+
list_by_partner_topic_next_async(next_page_link, custom_headers:custom_headers).value!
|
941
|
+
end
|
942
|
+
|
943
|
+
#
|
944
|
+
# List event subscriptions of a partner topic.
|
945
|
+
#
|
946
|
+
# List event subscriptions that belong to a specific partner topic.
|
947
|
+
#
|
948
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
949
|
+
# to List operation.
|
950
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
951
|
+
# to the HTTP request.
|
952
|
+
#
|
953
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
954
|
+
#
|
955
|
+
def list_by_partner_topic_next_async(next_page_link, custom_headers:nil)
|
956
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
957
|
+
|
958
|
+
|
959
|
+
request_headers = {}
|
960
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
961
|
+
|
962
|
+
# Set Headers
|
963
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
964
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
965
|
+
path_template = '{nextLink}'
|
966
|
+
|
967
|
+
request_url = @base_url || @client.base_url
|
968
|
+
|
969
|
+
options = {
|
970
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
971
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
972
|
+
headers: request_headers.merge(custom_headers || {}),
|
973
|
+
base_url: request_url
|
974
|
+
}
|
975
|
+
promise = @client.make_request_async(:get, path_template, options)
|
976
|
+
|
977
|
+
promise = promise.then do |result|
|
978
|
+
http_response = result.response
|
979
|
+
status_code = http_response.status
|
980
|
+
response_content = http_response.body
|
981
|
+
unless status_code == 200
|
982
|
+
error_model = JSON.load(response_content)
|
983
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
984
|
+
end
|
985
|
+
|
986
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
987
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
988
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
989
|
+
# Deserialize Response
|
990
|
+
if status_code == 200
|
991
|
+
begin
|
992
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
993
|
+
result_mapper = Azure::EventGrid::Mgmt::V2020_04_01_preview::Models::EventSubscriptionsListResult.mapper()
|
994
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
995
|
+
rescue Exception => e
|
996
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
997
|
+
end
|
998
|
+
end
|
999
|
+
|
1000
|
+
result
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
promise.execute
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
#
|
1007
|
+
# List event subscriptions of a partner topic.
|
1008
|
+
#
|
1009
|
+
# List event subscriptions that belong to a specific partner topic.
|
1010
|
+
#
|
1011
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1012
|
+
# user's subscription.
|
1013
|
+
# @param partner_topic_name [String] Name of the partner topic.
|
1014
|
+
# @param filter [String] The query used to filter the search results using
|
1015
|
+
# OData syntax. Filtering is permitted on the 'name' property only and with
|
1016
|
+
# limited number of OData operations. These operations are: the 'contains'
|
1017
|
+
# function as well as the following logical operations: not, and, or, eq (for
|
1018
|
+
# equal), and ne (for not equal). No arithmetic operations are supported. The
|
1019
|
+
# following is a valid filter example: $filter=contains(namE, 'PATTERN') and
|
1020
|
+
# name ne 'PATTERN-1'. The following is not a valid filter example:
|
1021
|
+
# $filter=location eq 'westus'.
|
1022
|
+
# @param top [Integer] The number of results to return per page for the list
|
1023
|
+
# operation. Valid range for top parameter is 1 to 100. If not specified, the
|
1024
|
+
# default number of results to be returned is 20 items per page.
|
1025
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1026
|
+
# will be added to the HTTP request.
|
1027
|
+
#
|
1028
|
+
# @return [EventSubscriptionsListResult] which provide lazy access to pages of
|
1029
|
+
# the response.
|
1030
|
+
#
|
1031
|
+
def list_by_partner_topic_as_lazy(resource_group_name, partner_topic_name, filter:nil, top:nil, custom_headers:nil)
|
1032
|
+
response = list_by_partner_topic_async(resource_group_name, partner_topic_name, filter:filter, top:top, custom_headers:custom_headers).value!
|
1033
|
+
unless response.nil?
|
1034
|
+
page = response.body
|
1035
|
+
page.next_method = Proc.new do |next_page_link|
|
1036
|
+
list_by_partner_topic_next_async(next_page_link, custom_headers:custom_headers)
|
1037
|
+
end
|
1038
|
+
page
|
1039
|
+
end
|
1040
|
+
end
|
1041
|
+
|
877
1042
|
end
|
878
1043
|
end
|
@@ -154,13 +154,15 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
154
154
|
# the topic name or domain name).
|
155
155
|
# @param private_endpoint_connection_name [String] The name of the private
|
156
156
|
# endpoint connection connection.
|
157
|
+
# @param private_endpoint_connection [PrivateEndpointConnection] The private
|
158
|
+
# endpoint connection object to update.
|
157
159
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
158
160
|
# will be added to the HTTP request.
|
159
161
|
#
|
160
162
|
# @return [PrivateEndpointConnection] operation results.
|
161
163
|
#
|
162
|
-
def update(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, custom_headers:nil)
|
163
|
-
response = update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
164
|
+
def update(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers:nil)
|
165
|
+
response = update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers:custom_headers).value!
|
164
166
|
response.body unless response.nil?
|
165
167
|
end
|
166
168
|
|
@@ -173,15 +175,17 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
173
175
|
# the topic name or domain name).
|
174
176
|
# @param private_endpoint_connection_name [String] The name of the private
|
175
177
|
# endpoint connection connection.
|
178
|
+
# @param private_endpoint_connection [PrivateEndpointConnection] The private
|
179
|
+
# endpoint connection object to update.
|
176
180
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
177
181
|
# will be added to the HTTP request.
|
178
182
|
#
|
179
183
|
# @return [Concurrent::Promise] promise which provides async access to http
|
180
184
|
# response.
|
181
185
|
#
|
182
|
-
def update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, custom_headers:nil)
|
186
|
+
def update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers:nil)
|
183
187
|
# Send request
|
184
|
-
promise = begin_update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, custom_headers:custom_headers)
|
188
|
+
promise = begin_update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers:custom_headers)
|
185
189
|
|
186
190
|
promise = promise.then do |response|
|
187
191
|
# Defining deserialization method.
|
@@ -408,13 +412,15 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
408
412
|
# the topic name or domain name).
|
409
413
|
# @param private_endpoint_connection_name [String] The name of the private
|
410
414
|
# endpoint connection connection.
|
415
|
+
# @param private_endpoint_connection [PrivateEndpointConnection] The private
|
416
|
+
# endpoint connection object to update.
|
411
417
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
412
418
|
# will be added to the HTTP request.
|
413
419
|
#
|
414
420
|
# @return [PrivateEndpointConnection] operation results.
|
415
421
|
#
|
416
|
-
def begin_update(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, custom_headers:nil)
|
417
|
-
response = begin_update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
422
|
+
def begin_update(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers:nil)
|
423
|
+
response = begin_update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers:custom_headers).value!
|
418
424
|
response.body unless response.nil?
|
419
425
|
end
|
420
426
|
|
@@ -431,13 +437,15 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
431
437
|
# the topic name or domain name).
|
432
438
|
# @param private_endpoint_connection_name [String] The name of the private
|
433
439
|
# endpoint connection connection.
|
440
|
+
# @param private_endpoint_connection [PrivateEndpointConnection] The private
|
441
|
+
# endpoint connection object to update.
|
434
442
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
435
443
|
# will be added to the HTTP request.
|
436
444
|
#
|
437
445
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
438
446
|
#
|
439
|
-
def begin_update_with_http_info(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, custom_headers:nil)
|
440
|
-
begin_update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
447
|
+
def begin_update_with_http_info(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers:nil)
|
448
|
+
begin_update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers:custom_headers).value!
|
441
449
|
end
|
442
450
|
|
443
451
|
#
|
@@ -453,17 +461,20 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
453
461
|
# the topic name or domain name).
|
454
462
|
# @param private_endpoint_connection_name [String] The name of the private
|
455
463
|
# endpoint connection connection.
|
464
|
+
# @param private_endpoint_connection [PrivateEndpointConnection] The private
|
465
|
+
# endpoint connection object to update.
|
456
466
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
457
467
|
# to the HTTP request.
|
458
468
|
#
|
459
469
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
460
470
|
#
|
461
|
-
def begin_update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, custom_headers:nil)
|
471
|
+
def begin_update_async(resource_group_name, parent_type, parent_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers:nil)
|
462
472
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
463
473
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
464
474
|
fail ArgumentError, 'parent_type is nil' if parent_type.nil?
|
465
475
|
fail ArgumentError, 'parent_name is nil' if parent_name.nil?
|
466
476
|
fail ArgumentError, 'private_endpoint_connection_name is nil' if private_endpoint_connection_name.nil?
|
477
|
+
fail ArgumentError, 'private_endpoint_connection is nil' if private_endpoint_connection.nil?
|
467
478
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
468
479
|
|
469
480
|
|
@@ -473,6 +484,12 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
473
484
|
# Set Headers
|
474
485
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
475
486
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
487
|
+
|
488
|
+
# Serialize Request
|
489
|
+
request_mapper = Azure::EventGrid::Mgmt::V2020_04_01_preview::Models::PrivateEndpointConnection.mapper()
|
490
|
+
request_content = @client.serialize(request_mapper, private_endpoint_connection)
|
491
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
492
|
+
|
476
493
|
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}'
|
477
494
|
|
478
495
|
request_url = @base_url || @client.base_url
|
@@ -481,6 +498,7 @@ module Azure::EventGrid::Mgmt::V2020_04_01_preview
|
|
481
498
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
482
499
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'parentType' => parent_type,'parentName' => parent_name,'privateEndpointConnectionName' => private_endpoint_connection_name},
|
483
500
|
query_params: {'api-version' => @client.api_version},
|
501
|
+
body: request_content,
|
484
502
|
headers: request_headers.merge(custom_headers || {}),
|
485
503
|
base_url: request_url
|
486
504
|
}
|