azure_mgmt_notification_hubs 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs.rb +15 -12
  3. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +1 -1
  4. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb +1 -1
  5. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/debug_send_response.rb +128 -0
  6. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/error_response.rb +58 -0
  7. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +35 -1
  8. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +35 -1
  9. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +1 -1
  10. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_patch_parameters.rb +216 -0
  11. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +1 -1
  12. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/{check_name_availability_request_parameters.rb → operation.rb} +15 -15
  13. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/{check_name_availability_response.rb → operation_display.rb} +22 -21
  14. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/operation_list_result.rb +103 -0
  15. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb +1 -1
  16. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/resource.rb +1 -1
  17. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +1 -61
  18. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +98 -0
  19. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +99 -1
  20. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb +7 -7
  21. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb +228 -6
  22. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +11 -14
  23. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/operations.rb +215 -0
  24. data/lib/profiles/latest/modules/notificationhubs_profile_module.rb +53 -39
  25. data/lib/version.rb +1 -1
  26. metadata +12 -9
  27. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb +0 -131
  28. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb +0 -129
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::NotificationHubs::Mgmt
6
- VERSION = '0.16.0'
6
+ VERSION = '0.17.0'
7
7
  end
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.16.0
4
+ version: 0.17.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: 2018-02-12 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.10.0
75
+ version: 0.11.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.10.0
82
+ version: 0.11.0
83
83
  description: Microsoft Azure Notification Hubs Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -88,15 +88,14 @@ extra_rdoc_files: []
88
88
  files:
89
89
  - LICENSE.txt
90
90
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs.rb
91
- - lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb
92
91
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/access_rights.rb
93
92
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/adm_credential.rb
94
93
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/apns_credential.rb
95
94
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb
96
95
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb
97
96
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb
98
- - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_request_parameters.rb
99
- - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_response.rb
97
+ - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/debug_send_response.rb
98
+ - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/error_response.rb
100
99
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb
101
100
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb
102
101
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb
@@ -106,7 +105,11 @@ files:
106
105
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_type.rb
107
106
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb
108
107
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb
108
+ - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_patch_parameters.rb
109
109
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb
110
+ - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/operation.rb
111
+ - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/operation_display.rb
112
+ - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/operation_list_result.rb
110
113
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb
111
114
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb
112
115
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/resource.rb
@@ -120,10 +123,10 @@ files:
120
123
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/sub_resource.rb
121
124
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/wns_credential.rb
122
125
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/module_definition.rb
123
- - lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb
124
126
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb
125
127
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb
126
128
  - lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb
129
+ - lib/2017-04-01/generated/azure_mgmt_notification_hubs/operations.rb
127
130
  - lib/azure_mgmt_notification_hubs.rb
128
131
  - lib/module_definition.rb
129
132
  - lib/profiles/latest/modules/notificationhubs_profile_module.rb
@@ -155,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
158
  version: '0'
156
159
  requirements: []
157
160
  rubyforge_project:
158
- rubygems_version: 2.6.10
161
+ rubygems_version: 2.5.1
159
162
  signing_key:
160
163
  specification_version: 4
161
164
  summary: Official Ruby client library to consume Microsoft Azure Notification Hubs
@@ -1,131 +0,0 @@
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::NotificationHubs::Mgmt::V2017_04_01
7
- #
8
- # Azure NotificationHub client
9
- #
10
- class Hubs
11
- include MsRestAzure
12
-
13
- #
14
- # Creates and initializes a new instance of the Hubs 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 notificationHub in a namespace.
26
- #
27
- # @param resource_group_name [String] The name of the resource group.
28
- # @param namespace_name [String] The namespace name.
29
- # @param parameters [CheckNameAvailabilityRequestParameters] The
30
- # notificationHub 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(resource_group_name, namespace_name, parameters, custom_headers:nil)
37
- response = check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
38
- response.body unless response.nil?
39
- end
40
-
41
- #
42
- # Checks the availability of the given notificationHub in a namespace.
43
- #
44
- # @param resource_group_name [String] The name of the resource group.
45
- # @param namespace_name [String] The namespace name.
46
- # @param parameters [CheckNameAvailabilityRequestParameters] The
47
- # notificationHub 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(resource_group_name, namespace_name, parameters, custom_headers:nil)
54
- check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
55
- end
56
-
57
- #
58
- # Checks the availability of the given notificationHub in a namespace.
59
- #
60
- # @param resource_group_name [String] The name of the resource group.
61
- # @param namespace_name [String] The namespace name.
62
- # @param parameters [CheckNameAvailabilityRequestParameters] The
63
- # notificationHub 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(resource_group_name, namespace_name, parameters, custom_headers:nil)
70
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
- fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
72
- fail ArgumentError, 'parameters is nil' if parameters.nil?
73
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
-
76
-
77
- request_headers = {}
78
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
-
80
- # Set Headers
81
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
82
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
83
-
84
- # Serialize Request
85
- request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityRequestParameters.mapper()
86
- request_content = @client.serialize(request_mapper, parameters)
87
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
88
-
89
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkHubAvailability'
90
-
91
- request_url = @base_url || @client.base_url
92
-
93
- options = {
94
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
95
- path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
96
- query_params: {'api-version' => @client.api_version},
97
- body: request_content,
98
- headers: request_headers.merge(custom_headers || {}),
99
- base_url: request_url
100
- }
101
- promise = @client.make_request_async(:post, path_template, options)
102
-
103
- promise = promise.then do |result|
104
- http_response = result.response
105
- status_code = http_response.status
106
- response_content = http_response.body
107
- unless status_code == 200
108
- error_model = JSON.load(response_content)
109
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
110
- end
111
-
112
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
113
- # Deserialize Response
114
- if status_code == 200
115
- begin
116
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
117
- result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResponse.mapper()
118
- result.body = @client.deserialize(result_mapper, parsed_response)
119
- rescue Exception => e
120
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
121
- end
122
- end
123
-
124
- result
125
- end
126
-
127
- promise.execute
128
- end
129
-
130
- end
131
- end
@@ -1,129 +0,0 @@
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::NotificationHubs::Mgmt::V2017_04_01
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: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: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
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
77
-
78
- # Set Headers
79
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
80
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
81
-
82
- # Serialize Request
83
- request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityRequestParameters.mapper()
84
- request_content = @client.serialize(request_mapper, parameters)
85
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
86
-
87
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNameAvailability'
88
-
89
- request_url = @base_url || @client.base_url
90
-
91
- options = {
92
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
93
- path_params: {'subscriptionId' => @client.subscription_id},
94
- query_params: {'api-version' => @client.api_version},
95
- body: request_content,
96
- headers: request_headers.merge(custom_headers || {}),
97
- base_url: request_url
98
- }
99
- promise = @client.make_request_async(:post, path_template, options)
100
-
101
- promise = promise.then do |result|
102
- http_response = result.response
103
- status_code = http_response.status
104
- response_content = http_response.body
105
- unless status_code == 200
106
- error_model = JSON.load(response_content)
107
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
108
- end
109
-
110
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
111
- # Deserialize Response
112
- if status_code == 200
113
- begin
114
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
115
- result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResponse.mapper()
116
- result.body = @client.deserialize(result_mapper, parsed_response)
117
- rescue Exception => e
118
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
119
- end
120
- end
121
-
122
- result
123
- end
124
-
125
- promise.execute
126
- end
127
-
128
- end
129
- end