azure_mgmt_notification_hubs 0.15.2 → 0.16.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-04-01/generated/azure_mgmt_notification_hubs/hubs.rb +6 -7
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb +6 -7
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb +109 -103
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb +90 -84
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +4 -1
- data/lib/profiles/latest/modules/notificationhubs_profile_module.rb +121 -102
- data/lib/profiles/latest/notificationhubs_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/notificationhubs_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb
CHANGED
@@ -118,6 +118,9 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
118
118
|
fail ArgumentError, 'path is nil' if path.nil?
|
119
119
|
|
120
120
|
request_url = options[:base_url] || @base_url
|
121
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
122
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
123
|
+
end
|
121
124
|
|
122
125
|
request_headers = @request_headers
|
123
126
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -134,7 +137,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
134
137
|
#
|
135
138
|
def add_telemetry
|
136
139
|
sdk_information = 'azure_mgmt_notification_hubs'
|
137
|
-
sdk_information = "#{sdk_information}/0.
|
140
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
138
141
|
add_user_agent_information(sdk_information)
|
139
142
|
end
|
140
143
|
end
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_notification_hubs'
|
6
6
|
|
7
|
-
module Azure::NotificationHubs::Profiles::Latest
|
7
|
+
module Azure::NotificationHubs::Profiles::Latest
|
8
|
+
module Mgmt
|
8
9
|
Namespaces = Azure::NotificationHubs::Mgmt::V2017_04_01::Namespaces
|
9
10
|
Name = Azure::NotificationHubs::Mgmt::V2017_04_01::Name
|
10
11
|
NotificationHubs = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubs
|
@@ -44,9 +45,9 @@ module Azure::NotificationHubs::Profiles::Latest::Mgmt
|
|
44
45
|
end
|
45
46
|
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# NotificationHubsManagementClass
|
48
49
|
#
|
49
|
-
class
|
50
|
+
class NotificationHubsManagementClass
|
50
51
|
attr_reader :namespaces, :name, :notification_hubs, :hubs, :configurable, :base_url, :options, :model_classes
|
51
52
|
|
52
53
|
def initialize(options = {})
|
@@ -58,111 +59,129 @@ module Azure::NotificationHubs::Profiles::Latest::Mgmt
|
|
58
59
|
|
59
60
|
reset!(options)
|
60
61
|
|
61
|
-
@configurable
|
62
|
+
@configurable = self
|
63
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
64
|
+
@options = options[:options].nil? ? nil:options[:options]
|
62
65
|
|
63
|
-
client_0 = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubsManagementClient.new(configurable.credentials, base_url, options)
|
64
|
-
if(client_0.respond_to?(:subscription_id))
|
65
|
-
client_0.subscription_id = configurable.subscription_id
|
66
|
-
end
|
67
|
-
@
|
68
|
-
@
|
69
|
-
@
|
70
|
-
@
|
66
|
+
@client_0 = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubsManagementClient.new(configurable.credentials, base_url, options)
|
67
|
+
if(@client_0.respond_to?(:subscription_id))
|
68
|
+
@client_0.subscription_id = configurable.subscription_id
|
69
|
+
end
|
70
|
+
add_telemetry(@client_0)
|
71
|
+
@namespaces = @client_0.namespaces
|
72
|
+
@name = @client_0.name
|
73
|
+
@notification_hubs = @client_0.notification_hubs
|
74
|
+
@hubs = @client_0.hubs
|
71
75
|
|
72
76
|
@model_classes = ModelClasses.new
|
73
77
|
end
|
74
78
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
def apns_credential
|
86
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential
|
87
|
-
end
|
88
|
-
def check_availability_parameters
|
89
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters
|
90
|
-
end
|
91
|
-
def wns_credential
|
92
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential
|
93
|
-
end
|
94
|
-
def check_name_availability_request_parameters
|
95
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityRequestParameters
|
96
|
-
end
|
97
|
-
def namespace_patch_parameters
|
98
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters
|
99
|
-
end
|
100
|
-
def sku
|
101
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku
|
102
|
-
end
|
103
|
-
def shared_access_authorization_rule_properties
|
104
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties
|
105
|
-
end
|
106
|
-
def sub_resource
|
107
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource
|
108
|
-
end
|
109
|
-
def baidu_credential
|
110
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential
|
111
|
-
end
|
112
|
-
def namespace_list_result
|
113
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult
|
114
|
-
end
|
115
|
-
def notification_hub_list_result
|
116
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult
|
117
|
-
end
|
118
|
-
def gcm_credential
|
119
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential
|
120
|
-
end
|
121
|
-
def shared_access_authorization_rule_list_result
|
122
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult
|
123
|
-
end
|
124
|
-
def mpns_credential
|
125
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::MpnsCredential
|
126
|
-
end
|
127
|
-
def resource
|
128
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource
|
129
|
-
end
|
130
|
-
def adm_credential
|
131
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AdmCredential
|
132
|
-
end
|
133
|
-
def check_availability_result
|
134
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult
|
135
|
-
end
|
136
|
-
def namespace_create_or_update_parameters
|
137
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters
|
138
|
-
end
|
139
|
-
def namespace_resource
|
140
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource
|
141
|
-
end
|
142
|
-
def shared_access_authorization_rule_create_or_update_parameters
|
143
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters
|
144
|
-
end
|
145
|
-
def shared_access_authorization_rule_resource
|
146
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource
|
147
|
-
end
|
148
|
-
def notification_hub_create_or_update_parameters
|
149
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters
|
150
|
-
end
|
151
|
-
def notification_hub_resource
|
152
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource
|
153
|
-
end
|
154
|
-
def pns_credentials_resource
|
155
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource
|
156
|
-
end
|
157
|
-
def sku_name
|
158
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName
|
159
|
-
end
|
160
|
-
def namespace_type
|
161
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType
|
162
|
-
end
|
163
|
-
def access_rights
|
164
|
-
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights
|
79
|
+
def add_telemetry(client)
|
80
|
+
profile_information = 'Profiles/Latest/NotificationHubs/Mgmt'
|
81
|
+
client.add_user_agent_information(profile_information)
|
82
|
+
end
|
83
|
+
|
84
|
+
def method_missing(method, *args)
|
85
|
+
if @client_0.respond_to?method
|
86
|
+
@client_0.send(method, *args)
|
87
|
+
else
|
88
|
+
super
|
165
89
|
end
|
166
90
|
end
|
91
|
+
|
92
|
+
end
|
93
|
+
|
94
|
+
class ModelClasses
|
95
|
+
def resource_list_keys
|
96
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys
|
97
|
+
end
|
98
|
+
def policykey_resource
|
99
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource
|
100
|
+
end
|
101
|
+
def check_name_availability_response
|
102
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResponse
|
103
|
+
end
|
104
|
+
def apns_credential
|
105
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential
|
106
|
+
end
|
107
|
+
def check_availability_parameters
|
108
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters
|
109
|
+
end
|
110
|
+
def wns_credential
|
111
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential
|
112
|
+
end
|
113
|
+
def check_name_availability_request_parameters
|
114
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityRequestParameters
|
115
|
+
end
|
116
|
+
def namespace_patch_parameters
|
117
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters
|
118
|
+
end
|
119
|
+
def sku
|
120
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku
|
121
|
+
end
|
122
|
+
def shared_access_authorization_rule_properties
|
123
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties
|
124
|
+
end
|
125
|
+
def sub_resource
|
126
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource
|
127
|
+
end
|
128
|
+
def baidu_credential
|
129
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential
|
130
|
+
end
|
131
|
+
def namespace_list_result
|
132
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult
|
133
|
+
end
|
134
|
+
def notification_hub_list_result
|
135
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult
|
136
|
+
end
|
137
|
+
def gcm_credential
|
138
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential
|
139
|
+
end
|
140
|
+
def shared_access_authorization_rule_list_result
|
141
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult
|
142
|
+
end
|
143
|
+
def mpns_credential
|
144
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::MpnsCredential
|
145
|
+
end
|
146
|
+
def resource
|
147
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource
|
148
|
+
end
|
149
|
+
def adm_credential
|
150
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AdmCredential
|
151
|
+
end
|
152
|
+
def check_availability_result
|
153
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult
|
154
|
+
end
|
155
|
+
def namespace_create_or_update_parameters
|
156
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters
|
157
|
+
end
|
158
|
+
def namespace_resource
|
159
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource
|
160
|
+
end
|
161
|
+
def shared_access_authorization_rule_create_or_update_parameters
|
162
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters
|
163
|
+
end
|
164
|
+
def shared_access_authorization_rule_resource
|
165
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource
|
166
|
+
end
|
167
|
+
def notification_hub_create_or_update_parameters
|
168
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters
|
169
|
+
end
|
170
|
+
def notification_hub_resource
|
171
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource
|
172
|
+
end
|
173
|
+
def pns_credentials_resource
|
174
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource
|
175
|
+
end
|
176
|
+
def sku_name
|
177
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName
|
178
|
+
end
|
179
|
+
def namespace_type
|
180
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType
|
181
|
+
end
|
182
|
+
def access_rights
|
183
|
+
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights
|
184
|
+
end
|
167
185
|
end
|
186
|
+
end
|
168
187
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/notificationhubs_module_definition'
|
6
6
|
require 'profiles/latest/modules/notificationhubs_profile_module'
|
7
7
|
|
8
|
-
module Azure::NotificationHubs::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::NotificationHubs::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < NotificationHubsManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_notification_hubs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 2.
|
158
|
+
rubygems_version: 2.6.10
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: Official Ruby client library to consume Microsoft Azure Notification Hubs
|