azure_mgmt_event_grid 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +143 -0
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/event_subscriptions.rb +18 -18
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/endpoint_type.rb +15 -0
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +124 -0
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +68 -0
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_filter.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_full_url.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +1 -1
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +76 -0
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_type.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_types_list_result.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/operation.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/operation_info.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/operation_origin.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/operations_list_result.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/resource.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/resource_region_type.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_provisioning_state.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +1 -1
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +111 -0
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_types_list_result.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topics_list_result.rb +1 -1
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/tracked_resource.rb +1 -1
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -0
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/operations.rb +2 -2
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/topic_types.rb +4 -4
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/topics.rb +11 -11
- data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/version.rb +2 -2
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid.rb +56 -0
- data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/event_grid_management_client.rb +3 -3
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1803 -0
- data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +1 -1
- data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription.rb +1 -1
- data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_destination.rb +1 -1
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +92 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +45 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +20 -0
- data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +1 -1
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +52 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb +88 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +52 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation.rb +76 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +74 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb +17 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +52 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource.rb +67 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic.rb +103 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +44 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +54 -0
- data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/topic_type_info.rb +1 -1
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +52 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +52 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +85 -0
- data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +1 -1
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +115 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +296 -0
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +926 -0
- data/lib/{generated/azure_mgmt_event_grid/module_definition.rb → 2017-09-15-preview/generated/azure_mgmt_event_grid/version.rb} +3 -3
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid.rb +57 -0
- data/lib/azure_mgmt_event_grid.rb +3 -2
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/eventgrid_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/eventgrid_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/eventgrid_profile_module.rb +152 -0
- data/lib/version.rb +7 -0
- metadata +76 -36
- data/lib/generated/azure_mgmt_event_grid.rb +0 -57
@@ -0,0 +1,16 @@
|
|
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::V2017_09_15_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ResourceRegionType
|
10
|
+
#
|
11
|
+
module ResourceRegionType
|
12
|
+
RegionalResource = "RegionalResource"
|
13
|
+
GlobalResource = "GlobalResource"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,103 @@
|
|
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::V2017_09_15_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# EventGrid Topic
|
10
|
+
#
|
11
|
+
class Topic < TrackedResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [TopicProvisioningState] Provisioning state of the topic.
|
16
|
+
# Possible values include: 'Creating', 'Updating', 'Deleting',
|
17
|
+
# 'Succeeded', 'Canceled', 'Failed'
|
18
|
+
attr_accessor :provisioning_state
|
19
|
+
|
20
|
+
# @return [String] Endpoint for the topic.
|
21
|
+
attr_accessor :endpoint
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for Topic class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'Topic',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'Topic',
|
35
|
+
model_properties: {
|
36
|
+
id: {
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
name: {
|
45
|
+
required: false,
|
46
|
+
read_only: true,
|
47
|
+
serialized_name: 'name',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
type: {
|
53
|
+
required: false,
|
54
|
+
read_only: true,
|
55
|
+
serialized_name: 'type',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
location: {
|
61
|
+
required: true,
|
62
|
+
serialized_name: 'location',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
tags: {
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'tags',
|
70
|
+
type: {
|
71
|
+
name: 'Dictionary',
|
72
|
+
value: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'StringElementType',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
provisioning_state: {
|
82
|
+
required: false,
|
83
|
+
read_only: true,
|
84
|
+
serialized_name: 'properties.provisioningState',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
},
|
89
|
+
endpoint: {
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'properties.endpoint',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb
ADDED
@@ -0,0 +1,20 @@
|
|
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::V2017_09_15_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for TopicProvisioningState
|
10
|
+
#
|
11
|
+
module TopicProvisioningState
|
12
|
+
Creating = "Creating"
|
13
|
+
Updating = "Updating"
|
14
|
+
Deleting = "Deleting"
|
15
|
+
Succeeded = "Succeeded"
|
16
|
+
Canceled = "Canceled"
|
17
|
+
Failed = "Failed"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb
ADDED
@@ -0,0 +1,44 @@
|
|
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::V2017_09_15_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Topic regenerate share access key key request
|
10
|
+
#
|
11
|
+
class TopicRegenerateKeyRequest
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Key name to regenerate key1 or key2
|
16
|
+
attr_accessor :key_name
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for TopicRegenerateKeyRequest class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'TopicRegenerateKeyRequest',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'TopicRegenerateKeyRequest',
|
30
|
+
model_properties: {
|
31
|
+
key_name: {
|
32
|
+
required: true,
|
33
|
+
serialized_name: 'keyName',
|
34
|
+
type: {
|
35
|
+
name: 'String'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb
ADDED
@@ -0,0 +1,54 @@
|
|
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::V2017_09_15_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Shared access keys of the Topic
|
10
|
+
#
|
11
|
+
class TopicSharedAccessKeys
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Shared access key1 for the topic.
|
16
|
+
attr_accessor :key1
|
17
|
+
|
18
|
+
# @return [String] Shared access key2 for the topic.
|
19
|
+
attr_accessor :key2
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for TopicSharedAccessKeys class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'TopicSharedAccessKeys',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'TopicSharedAccessKeys',
|
33
|
+
model_properties: {
|
34
|
+
key1: {
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'key1',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
},
|
41
|
+
key2: {
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'key2',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb
ADDED
@@ -0,0 +1,20 @@
|
|
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::V2017_09_15_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for TopicTypeProvisioningState
|
10
|
+
#
|
11
|
+
module TopicTypeProvisioningState
|
12
|
+
Creating = "Creating"
|
13
|
+
Updating = "Updating"
|
14
|
+
Deleting = "Deleting"
|
15
|
+
Succeeded = "Succeeded"
|
16
|
+
Canceled = "Canceled"
|
17
|
+
Failed = "Failed"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,52 @@
|
|
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::V2017_09_15_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the List Topic Types operation
|
10
|
+
#
|
11
|
+
class TopicTypesListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<TopicTypeInfo>] A collection of topic types
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for TopicTypesListResult class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'TopicTypesListResult',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'TopicTypesListResult',
|
30
|
+
model_properties: {
|
31
|
+
value: {
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'value',
|
34
|
+
type: {
|
35
|
+
name: 'Sequence',
|
36
|
+
element: {
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'TopicTypeInfoElementType',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'TopicTypeInfo'
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,52 @@
|
|
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::V2017_09_15_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the List Topics operation
|
10
|
+
#
|
11
|
+
class TopicsListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Topic>] A collection of Topics
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for TopicsListResult class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'TopicsListResult',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'TopicsListResult',
|
30
|
+
model_properties: {
|
31
|
+
value: {
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'value',
|
34
|
+
type: {
|
35
|
+
name: 'Sequence',
|
36
|
+
element: {
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'TopicElementType',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'Topic'
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,85 @@
|
|
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::V2017_09_15_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Definition of a Tracked Resource
|
10
|
+
#
|
11
|
+
class TrackedResource < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Location of the resource
|
16
|
+
attr_accessor :location
|
17
|
+
|
18
|
+
# @return [Hash{String => String}] Tags of the resource
|
19
|
+
attr_accessor :tags
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for TrackedResource class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'TrackedResource',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'TrackedResource',
|
33
|
+
model_properties: {
|
34
|
+
id: {
|
35
|
+
required: false,
|
36
|
+
read_only: true,
|
37
|
+
serialized_name: 'id',
|
38
|
+
type: {
|
39
|
+
name: 'String'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
name: {
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'name',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
type: {
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'type',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
location: {
|
59
|
+
required: true,
|
60
|
+
serialized_name: 'location',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
tags: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'tags',
|
68
|
+
type: {
|
69
|
+
name: 'Dictionary',
|
70
|
+
value: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'StringElementType',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::EventGrid end
|
8
|
+
module Azure::EventGrid::Mgmt end
|
9
|
+
module Azure::EventGrid::Mgmt::V2017_09_15_preview end
|
@@ -0,0 +1,115 @@
|
|
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::V2017_09_15_preview
|
7
|
+
#
|
8
|
+
# Azure EventGrid Management Client
|
9
|
+
#
|
10
|
+
class Operations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Operations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [EventGridManagementClient] reference to the EventGridManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# List available operations
|
26
|
+
#
|
27
|
+
# List the available operations supported by the Microsoft.EventGrid resource
|
28
|
+
# provider
|
29
|
+
#
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [OperationsListResult] operation results.
|
34
|
+
#
|
35
|
+
def list(custom_headers = nil)
|
36
|
+
response = list_async(custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# List available operations
|
42
|
+
#
|
43
|
+
# List the available operations supported by the Microsoft.EventGrid resource
|
44
|
+
# provider
|
45
|
+
#
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def list_with_http_info(custom_headers = nil)
|
52
|
+
list_async(custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# List available operations
|
57
|
+
#
|
58
|
+
# List the available operations supported by the Microsoft.EventGrid resource
|
59
|
+
# provider
|
60
|
+
#
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def list_async(custom_headers = nil)
|
67
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
|
+
|
69
|
+
|
70
|
+
request_headers = {}
|
71
|
+
|
72
|
+
# Set Headers
|
73
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
74
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
75
|
+
path_template = 'providers/Microsoft.EventGrid/operations'
|
76
|
+
|
77
|
+
request_url = @base_url || @client.base_url
|
78
|
+
|
79
|
+
options = {
|
80
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
81
|
+
query_params: {'api-version' => @client.api_version},
|
82
|
+
headers: request_headers.merge(custom_headers || {}),
|
83
|
+
base_url: request_url
|
84
|
+
}
|
85
|
+
promise = @client.make_request_async(:get, path_template, options)
|
86
|
+
|
87
|
+
promise = promise.then do |result|
|
88
|
+
http_response = result.response
|
89
|
+
status_code = http_response.status
|
90
|
+
response_content = http_response.body
|
91
|
+
unless status_code == 200
|
92
|
+
error_model = JSON.load(response_content)
|
93
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
94
|
+
end
|
95
|
+
|
96
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
97
|
+
# Deserialize Response
|
98
|
+
if status_code == 200
|
99
|
+
begin
|
100
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
101
|
+
result_mapper = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationsListResult.mapper()
|
102
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
103
|
+
rescue Exception => e
|
104
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
result
|
109
|
+
end
|
110
|
+
|
111
|
+
promise.execute
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
115
|
+
end
|