azure_mgmt_notification_hubs 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_notification_hubs.rb +6 -2
- data/lib/generated/azure_mgmt_notification_hubs/hubs.rb +132 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/access_rights.rb +1 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential.rb +45 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/check_name_availability_request_parameters.rb +57 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/check_name_availability_response.rb +68 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/namespace_type.rb +1 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/resource.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/sku.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential.rb +2 -1
- data/lib/generated/azure_mgmt_notification_hubs/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_notification_hubs/name.rb +130 -0
- data/lib/generated/azure_mgmt_notification_hubs/namespaces.rb +54 -55
- data/lib/generated/azure_mgmt_notification_hubs/notification_hubs.rb +47 -48
- data/lib/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +10 -2
- data/lib/generated/azure_mgmt_notification_hubs/version.rb +2 -2
- metadata +8 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The MPNS certificate.
|
16
17
|
attr_accessor :mpns_certificate
|
17
18
|
|
data/lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The name of the namespace.
|
16
17
|
attr_accessor :namespace_create_or_update_parameters_name
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<NamespaceResource>] Result of the List Namespace
|
16
17
|
# operation.
|
17
18
|
attr_accessor :value
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Hash{String => String}] Resource tags
|
16
17
|
attr_accessor :tags
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The name of the namespace.
|
16
17
|
attr_accessor :namespace_resource_name
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The NotificationHub name.
|
16
17
|
attr_accessor :notification_hub_create_or_update_parameters_name
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<NotificationHubResource>] Result of the List
|
16
17
|
# NotificationHub operation.
|
17
18
|
attr_accessor :value
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The NotificationHub name.
|
16
17
|
attr_accessor :notification_hub_resource_name
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [ApnsCredential] The ApnsCredential of the created
|
16
17
|
# NotificationHub
|
17
18
|
attr_accessor :apns_credential
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] Name of the key that has to be regenerated for the
|
16
17
|
# Namespace/Notification Hub Authorization Rule. The value can be Primary
|
17
18
|
# Key/Secondary Key.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -13,6 +13,7 @@ module Azure::ARM::NotificationHubs
|
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
+
include MsRest::JSONable
|
16
17
|
# @return [Sku] The sku of the created namespace
|
17
18
|
attr_accessor :sku
|
18
19
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] PrimaryConnectionString of the AuthorizationRule.
|
16
17
|
attr_accessor :primary_connection_string
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [SharedAccessAuthorizationRuleProperties] Properties of the
|
16
17
|
# Namespace AuthorizationRules.
|
17
18
|
attr_accessor :properties
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<SharedAccessAuthorizationRuleResource>] Result of the
|
16
17
|
# List AuthorizationRules operation.
|
17
18
|
attr_accessor :value
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<AccessRights>] The rights associated with the rule.
|
16
17
|
attr_accessor :rights
|
17
18
|
|
data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<AccessRights>] The rights associated with the rule.
|
16
17
|
attr_accessor :rights
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [SkuName] Name of the notification hub sku. Possible values
|
16
17
|
# include: 'Free', 'Basic', 'Standard'
|
17
18
|
attr_accessor :name
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::NotificationHubs
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The package ID for this credential.
|
16
17
|
attr_accessor :package_sid
|
17
18
|
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::NotificationHubs
|
7
|
+
#
|
8
|
+
# Azure NotificationHub client
|
9
|
+
#
|
10
|
+
class Name
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Name class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [NotificationHubsManagementClient] reference to the NotificationHubsManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Checks the availability of the given service namespace across all Azure
|
26
|
+
# subscriptions. This is useful because the domain name is created based on the
|
27
|
+
# service namespace name.
|
28
|
+
#
|
29
|
+
# @param parameters [CheckNameAvailabilityRequestParameters] The namespace
|
30
|
+
# name.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [CheckNameAvailabilityResponse] operation results.
|
35
|
+
#
|
36
|
+
def check_availability(parameters, custom_headers = nil)
|
37
|
+
response = check_availability_async(parameters, custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Checks the availability of the given service namespace across all Azure
|
43
|
+
# subscriptions. This is useful because the domain name is created based on the
|
44
|
+
# service namespace name.
|
45
|
+
#
|
46
|
+
# @param parameters [CheckNameAvailabilityRequestParameters] The namespace
|
47
|
+
# name.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def check_availability_with_http_info(parameters, custom_headers = nil)
|
54
|
+
check_availability_async(parameters, custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Checks the availability of the given service namespace across all Azure
|
59
|
+
# subscriptions. This is useful because the domain name is created based on the
|
60
|
+
# service namespace name.
|
61
|
+
#
|
62
|
+
# @param parameters [CheckNameAvailabilityRequestParameters] The namespace
|
63
|
+
# name.
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def check_availability_async(parameters, custom_headers = nil)
|
70
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
71
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
72
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
73
|
+
|
74
|
+
|
75
|
+
request_headers = {}
|
76
|
+
|
77
|
+
# Set Headers
|
78
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
79
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
80
|
+
|
81
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
82
|
+
|
83
|
+
# Serialize Request
|
84
|
+
request_mapper = Azure::ARM::NotificationHubs::Models::CheckNameAvailabilityRequestParameters.mapper()
|
85
|
+
request_content = @client.serialize(request_mapper, parameters)
|
86
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
87
|
+
|
88
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNameAvailability'
|
89
|
+
|
90
|
+
request_url = @base_url || @client.base_url
|
91
|
+
|
92
|
+
options = {
|
93
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
94
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
95
|
+
query_params: {'api-version' => @client.api_version},
|
96
|
+
body: request_content,
|
97
|
+
headers: request_headers.merge(custom_headers || {}),
|
98
|
+
base_url: request_url
|
99
|
+
}
|
100
|
+
promise = @client.make_request_async(:post, path_template, options)
|
101
|
+
|
102
|
+
promise = promise.then do |result|
|
103
|
+
http_response = result.response
|
104
|
+
status_code = http_response.status
|
105
|
+
response_content = http_response.body
|
106
|
+
unless status_code == 200
|
107
|
+
error_model = JSON.load(response_content)
|
108
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
109
|
+
end
|
110
|
+
|
111
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
112
|
+
# Deserialize Response
|
113
|
+
if status_code == 200
|
114
|
+
begin
|
115
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
116
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::CheckNameAvailabilityResponse.mapper()
|
117
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
118
|
+
rescue Exception => e
|
119
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
result
|
124
|
+
end
|
125
|
+
|
126
|
+
promise.execute
|
127
|
+
end
|
128
|
+
|
129
|
+
end
|
130
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::NotificationHubs
|
|
8
8
|
# Azure NotificationHub client
|
9
9
|
#
|
10
10
|
class Namespaces
|
11
|
-
include Azure::ARM::NotificationHubs::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -79,11 +78,11 @@ module Azure::ARM::NotificationHubs
|
|
79
78
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
80
79
|
|
81
80
|
# Serialize Request
|
82
|
-
request_mapper = CheckAvailabilityParameters.mapper()
|
83
|
-
request_content = @client.serialize(request_mapper, parameters
|
81
|
+
request_mapper = Azure::ARM::NotificationHubs::Models::CheckAvailabilityParameters.mapper()
|
82
|
+
request_content = @client.serialize(request_mapper, parameters)
|
84
83
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
85
84
|
|
86
|
-
path_template = '
|
85
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability'
|
87
86
|
|
88
87
|
request_url = @base_url || @client.base_url
|
89
88
|
|
@@ -111,8 +110,8 @@ module Azure::ARM::NotificationHubs
|
|
111
110
|
if status_code == 200
|
112
111
|
begin
|
113
112
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
-
result_mapper = CheckAvailabilityResult.mapper()
|
115
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
113
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::CheckAvailabilityResult.mapper()
|
114
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
115
|
rescue Exception => e
|
117
116
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
117
|
end
|
@@ -189,11 +188,11 @@ module Azure::ARM::NotificationHubs
|
|
189
188
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
190
189
|
|
191
190
|
# Serialize Request
|
192
|
-
request_mapper = NamespaceCreateOrUpdateParameters.mapper()
|
193
|
-
request_content = @client.serialize(request_mapper, parameters
|
191
|
+
request_mapper = Azure::ARM::NotificationHubs::Models::NamespaceCreateOrUpdateParameters.mapper()
|
192
|
+
request_content = @client.serialize(request_mapper, parameters)
|
194
193
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
195
194
|
|
196
|
-
path_template = '
|
195
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}'
|
197
196
|
|
198
197
|
request_url = @base_url || @client.base_url
|
199
198
|
|
@@ -221,8 +220,8 @@ module Azure::ARM::NotificationHubs
|
|
221
220
|
if status_code == 201
|
222
221
|
begin
|
223
222
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
224
|
-
result_mapper = NamespaceResource.mapper()
|
225
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
223
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::NamespaceResource.mapper()
|
224
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
226
225
|
rescue Exception => e
|
227
226
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
228
227
|
end
|
@@ -231,8 +230,8 @@ module Azure::ARM::NotificationHubs
|
|
231
230
|
if status_code == 200
|
232
231
|
begin
|
233
232
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
234
|
-
result_mapper = NamespaceResource.mapper()
|
235
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
233
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::NamespaceResource.mapper()
|
234
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
236
235
|
rescue Exception => e
|
237
236
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
238
237
|
end
|
@@ -306,11 +305,11 @@ module Azure::ARM::NotificationHubs
|
|
306
305
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
307
306
|
|
308
307
|
# Serialize Request
|
309
|
-
request_mapper = NamespacePatchParameters.mapper()
|
310
|
-
request_content = @client.serialize(request_mapper, parameters
|
308
|
+
request_mapper = Azure::ARM::NotificationHubs::Models::NamespacePatchParameters.mapper()
|
309
|
+
request_content = @client.serialize(request_mapper, parameters)
|
311
310
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
312
311
|
|
313
|
-
path_template = '
|
312
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}'
|
314
313
|
|
315
314
|
request_url = @base_url || @client.base_url
|
316
315
|
|
@@ -338,8 +337,8 @@ module Azure::ARM::NotificationHubs
|
|
338
337
|
if status_code == 200
|
339
338
|
begin
|
340
339
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
341
|
-
result_mapper = NamespaceResource.mapper()
|
342
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
340
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::NamespaceResource.mapper()
|
341
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
343
342
|
rescue Exception => e
|
344
343
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
345
344
|
end
|
@@ -441,7 +440,7 @@ module Azure::ARM::NotificationHubs
|
|
441
440
|
# Set Headers
|
442
441
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
443
442
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
444
|
-
path_template = '
|
443
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}'
|
445
444
|
|
446
445
|
request_url = @base_url || @client.base_url
|
447
446
|
|
@@ -468,8 +467,8 @@ module Azure::ARM::NotificationHubs
|
|
468
467
|
if status_code == 200
|
469
468
|
begin
|
470
469
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
471
|
-
result_mapper = NamespaceResource.mapper()
|
472
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
470
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::NamespaceResource.mapper()
|
471
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
473
472
|
rescue Exception => e
|
474
473
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
475
474
|
end
|
@@ -547,11 +546,11 @@ module Azure::ARM::NotificationHubs
|
|
547
546
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
548
547
|
|
549
548
|
# Serialize Request
|
550
|
-
request_mapper = SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
|
551
|
-
request_content = @client.serialize(request_mapper, parameters
|
549
|
+
request_mapper = Azure::ARM::NotificationHubs::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
|
550
|
+
request_content = @client.serialize(request_mapper, parameters)
|
552
551
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
553
552
|
|
554
|
-
path_template = '
|
553
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'
|
555
554
|
|
556
555
|
request_url = @base_url || @client.base_url
|
557
556
|
|
@@ -579,8 +578,8 @@ module Azure::ARM::NotificationHubs
|
|
579
578
|
if status_code == 200
|
580
579
|
begin
|
581
580
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
582
|
-
result_mapper = SharedAccessAuthorizationRuleResource.mapper()
|
583
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
581
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::SharedAccessAuthorizationRuleResource.mapper()
|
582
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
584
583
|
rescue Exception => e
|
585
584
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
586
585
|
end
|
@@ -646,7 +645,7 @@ module Azure::ARM::NotificationHubs
|
|
646
645
|
# Set Headers
|
647
646
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
648
647
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
649
|
-
path_template = '
|
648
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'
|
650
649
|
|
651
650
|
request_url = @base_url || @client.base_url
|
652
651
|
|
@@ -731,7 +730,7 @@ module Azure::ARM::NotificationHubs
|
|
731
730
|
# Set Headers
|
732
731
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
733
732
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
734
|
-
path_template = '
|
733
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'
|
735
734
|
|
736
735
|
request_url = @base_url || @client.base_url
|
737
736
|
|
@@ -758,8 +757,8 @@ module Azure::ARM::NotificationHubs
|
|
758
757
|
if status_code == 200
|
759
758
|
begin
|
760
759
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
761
|
-
result_mapper = SharedAccessAuthorizationRuleResource.mapper()
|
762
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
760
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::SharedAccessAuthorizationRuleResource.mapper()
|
761
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
763
762
|
rescue Exception => e
|
764
763
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
765
764
|
end
|
@@ -824,7 +823,7 @@ module Azure::ARM::NotificationHubs
|
|
824
823
|
# Set Headers
|
825
824
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
826
825
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
827
|
-
path_template = '
|
826
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces'
|
828
827
|
|
829
828
|
request_url = @base_url || @client.base_url
|
830
829
|
|
@@ -851,8 +850,8 @@ module Azure::ARM::NotificationHubs
|
|
851
850
|
if status_code == 200
|
852
851
|
begin
|
853
852
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
854
|
-
result_mapper = NamespaceListResult.mapper()
|
855
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
853
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::NamespaceListResult.mapper()
|
854
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
856
855
|
rescue Exception => e
|
857
856
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
858
857
|
end
|
@@ -910,7 +909,7 @@ module Azure::ARM::NotificationHubs
|
|
910
909
|
# Set Headers
|
911
910
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
912
911
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
913
|
-
path_template = '
|
912
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces'
|
914
913
|
|
915
914
|
request_url = @base_url || @client.base_url
|
916
915
|
|
@@ -937,8 +936,8 @@ module Azure::ARM::NotificationHubs
|
|
937
936
|
if status_code == 200
|
938
937
|
begin
|
939
938
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
940
|
-
result_mapper = NamespaceListResult.mapper()
|
941
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
939
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::NamespaceListResult.mapper()
|
940
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
942
941
|
rescue Exception => e
|
943
942
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
944
943
|
end
|
@@ -1001,7 +1000,7 @@ module Azure::ARM::NotificationHubs
|
|
1001
1000
|
# Set Headers
|
1002
1001
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1003
1002
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1004
|
-
path_template = '
|
1003
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules'
|
1005
1004
|
|
1006
1005
|
request_url = @base_url || @client.base_url
|
1007
1006
|
|
@@ -1028,8 +1027,8 @@ module Azure::ARM::NotificationHubs
|
|
1028
1027
|
if status_code == 200
|
1029
1028
|
begin
|
1030
1029
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1031
|
-
result_mapper = SharedAccessAuthorizationRuleListResult.mapper()
|
1032
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1030
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::SharedAccessAuthorizationRuleListResult.mapper()
|
1031
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1033
1032
|
rescue Exception => e
|
1034
1033
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1035
1034
|
end
|
@@ -1099,7 +1098,7 @@ module Azure::ARM::NotificationHubs
|
|
1099
1098
|
# Set Headers
|
1100
1099
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1101
1100
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1102
|
-
path_template = '
|
1101
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys'
|
1103
1102
|
|
1104
1103
|
request_url = @base_url || @client.base_url
|
1105
1104
|
|
@@ -1126,8 +1125,8 @@ module Azure::ARM::NotificationHubs
|
|
1126
1125
|
if status_code == 200
|
1127
1126
|
begin
|
1128
1127
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1129
|
-
result_mapper = ResourceListKeys.mapper()
|
1130
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1128
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::ResourceListKeys.mapper()
|
1129
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1131
1130
|
rescue Exception => e
|
1132
1131
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1133
1132
|
end
|
@@ -1208,11 +1207,11 @@ module Azure::ARM::NotificationHubs
|
|
1208
1207
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1209
1208
|
|
1210
1209
|
# Serialize Request
|
1211
|
-
request_mapper = PolicykeyResource.mapper()
|
1212
|
-
request_content = @client.serialize(request_mapper, parameters
|
1210
|
+
request_mapper = Azure::ARM::NotificationHubs::Models::PolicykeyResource.mapper()
|
1211
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1213
1212
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1214
1213
|
|
1215
|
-
path_template = '
|
1214
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys'
|
1216
1215
|
|
1217
1216
|
request_url = @base_url || @client.base_url
|
1218
1217
|
|
@@ -1240,8 +1239,8 @@ module Azure::ARM::NotificationHubs
|
|
1240
1239
|
if status_code == 200
|
1241
1240
|
begin
|
1242
1241
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1243
|
-
result_mapper = ResourceListKeys.mapper()
|
1244
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1242
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::ResourceListKeys.mapper()
|
1243
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1245
1244
|
rescue Exception => e
|
1246
1245
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1247
1246
|
end
|
@@ -1306,7 +1305,7 @@ module Azure::ARM::NotificationHubs
|
|
1306
1305
|
# Set Headers
|
1307
1306
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1308
1307
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1309
|
-
path_template = '
|
1308
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}'
|
1310
1309
|
|
1311
1310
|
request_url = @base_url || @client.base_url
|
1312
1311
|
|
@@ -1410,8 +1409,8 @@ module Azure::ARM::NotificationHubs
|
|
1410
1409
|
if status_code == 200
|
1411
1410
|
begin
|
1412
1411
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1413
|
-
result_mapper = NamespaceListResult.mapper()
|
1414
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1412
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::NamespaceListResult.mapper()
|
1413
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1415
1414
|
rescue Exception => e
|
1416
1415
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1417
1416
|
end
|
@@ -1500,8 +1499,8 @@ module Azure::ARM::NotificationHubs
|
|
1500
1499
|
if status_code == 200
|
1501
1500
|
begin
|
1502
1501
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1503
|
-
result_mapper = NamespaceListResult.mapper()
|
1504
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1502
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::NamespaceListResult.mapper()
|
1503
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1505
1504
|
rescue Exception => e
|
1506
1505
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1507
1506
|
end
|
@@ -1587,8 +1586,8 @@ module Azure::ARM::NotificationHubs
|
|
1587
1586
|
if status_code == 200
|
1588
1587
|
begin
|
1589
1588
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1590
|
-
result_mapper = SharedAccessAuthorizationRuleListResult.mapper()
|
1591
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1589
|
+
result_mapper = Azure::ARM::NotificationHubs::Models::SharedAccessAuthorizationRuleListResult.mapper()
|
1590
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1592
1591
|
rescue Exception => e
|
1593
1592
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1594
1593
|
end
|