azure_mgmt_notification_hubs 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_notification_hubs.gemspec +4 -5
  3. data/lib/azure_mgmt_notification_hubs.rb +3 -56
  4. data/lib/generated/azure_mgmt_notification_hubs.rb +58 -0
  5. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/models/access_rights.rb +0 -0
  6. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential.rb +46 -0
  7. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +64 -0
  8. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential.rb +46 -0
  9. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +74 -0
  10. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb +46 -0
  11. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +64 -0
  12. data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +83 -0
  13. data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_resource.rb +102 -0
  14. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb +46 -0
  15. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +54 -0
  16. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb +46 -0
  17. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +64 -0
  18. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +72 -0
  19. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb +95 -0
  20. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_properties.rb +153 -0
  21. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +102 -0
  22. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/models/namespace_type.rb +0 -0
  23. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +73 -0
  24. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +95 -0
  25. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_properties.rb +145 -0
  26. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +105 -0
  27. data/lib/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb +56 -0
  28. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +67 -0
  29. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +97 -0
  30. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +133 -0
  31. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +107 -0
  32. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential.rb +46 -0
  33. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +64 -0
  34. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/module_definition.rb +0 -0
  35. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/namespaces.rb +166 -82
  36. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/notification_hubs.rb +119 -72
  37. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/notification_hubs_management_client.rb +4 -4
  38. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/version.rb +1 -1
  39. metadata +56 -76
  40. data/lib/azure_mgmt_notification_hubs/models/adm_credential.rb +0 -63
  41. data/lib/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +0 -74
  42. data/lib/azure_mgmt_notification_hubs/models/apns_credential.rb +0 -63
  43. data/lib/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +0 -83
  44. data/lib/azure_mgmt_notification_hubs/models/baidu_credential.rb +0 -63
  45. data/lib/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +0 -74
  46. data/lib/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +0 -86
  47. data/lib/azure_mgmt_notification_hubs/models/check_availability_resource.rb +0 -102
  48. data/lib/azure_mgmt_notification_hubs/models/gcm_credential.rb +0 -63
  49. data/lib/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +0 -65
  50. data/lib/azure_mgmt_notification_hubs/models/mpns_credential.rb +0 -63
  51. data/lib/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +0 -74
  52. data/lib/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +0 -83
  53. data/lib/azure_mgmt_notification_hubs/models/namespace_list_result.rb +0 -87
  54. data/lib/azure_mgmt_notification_hubs/models/namespace_properties.rb +0 -159
  55. data/lib/azure_mgmt_notification_hubs/models/namespace_resource.rb +0 -108
  56. data/lib/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +0 -84
  57. data/lib/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +0 -87
  58. data/lib/azure_mgmt_notification_hubs/models/notification_hub_properties.rb +0 -197
  59. data/lib/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +0 -111
  60. data/lib/azure_mgmt_notification_hubs/models/resource_list_keys.rb +0 -67
  61. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +0 -83
  62. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +0 -87
  63. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +0 -145
  64. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +0 -113
  65. data/lib/azure_mgmt_notification_hubs/models/wns_credential.rb +0 -63
  66. data/lib/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +0 -74
@@ -0,0 +1,97 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::NotificationHubs
7
+ module Models
8
+ #
9
+ # The response of the List Namespace operation.
10
+ #
11
+ class SharedAccessAuthorizationRuleListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<SharedAccessAuthorizationRuleResource>] Gets or sets
16
+ # result of the List AuthorizationRules operation.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Gets or sets link to the next set of results. Not
20
+ # empty if Value contains incomplete list of AuthorizationRules
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<SharedAccessAuthorizationRuleResource>] operation
30
+ # results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [SharedAccessAuthorizationRuleListResult] with next page
46
+ # content.
47
+ #
48
+ def get_next_page
49
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
50
+ unless response.nil?
51
+ @next_link = response.body.next_link
52
+ @value = response.body.value
53
+ self
54
+ end
55
+ end
56
+
57
+ #
58
+ # Mapper for SharedAccessAuthorizationRuleListResult class as Ruby Hash.
59
+ # This will be used for serialization/deserialization.
60
+ #
61
+ def self.mapper()
62
+ {
63
+ required: false,
64
+ serialized_name: 'SharedAccessAuthorizationRuleListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'SharedAccessAuthorizationRuleListResult',
68
+ model_properties: {
69
+ value: {
70
+ required: false,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ required: false,
76
+ serialized_name: 'SharedAccessAuthorizationRuleResourceElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'SharedAccessAuthorizationRuleResource'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ next_link: {
85
+ required: false,
86
+ serialized_name: 'nextLink',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,133 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::NotificationHubs
7
+ module Models
8
+ #
9
+ # SharedAccessAuthorizationRule properties.
10
+ #
11
+ class SharedAccessAuthorizationRuleProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The primary key that was used.
16
+ attr_accessor :primary_key
17
+
18
+ # @return [String] The secondary key that was used.
19
+ attr_accessor :secondary_key
20
+
21
+ # @return [String] The name of the key that was used.
22
+ attr_accessor :key_name
23
+
24
+ # @return [String] The type of the claim.
25
+ attr_accessor :claim_type
26
+
27
+ # @return [String] The value of the claim.
28
+ attr_accessor :claim_value
29
+
30
+ # @return [Array<AccessRights>] The rights associated with the rule.
31
+ attr_accessor :rights
32
+
33
+ # @return [DateTime] The time at which the authorization rule was
34
+ # created.
35
+ attr_accessor :created_time
36
+
37
+ # @return [DateTime] The most recent time the rule was updated.
38
+ attr_accessor :modified_time
39
+
40
+ # @return [Integer] The revision number for the rule.
41
+ attr_accessor :revision
42
+
43
+
44
+ #
45
+ # Mapper for SharedAccessAuthorizationRuleProperties class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ required: false,
51
+ serialized_name: 'SharedAccessAuthorizationRuleProperties',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'SharedAccessAuthorizationRuleProperties',
55
+ model_properties: {
56
+ primary_key: {
57
+ required: false,
58
+ serialized_name: 'primaryKey',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ secondary_key: {
64
+ required: false,
65
+ serialized_name: 'secondaryKey',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ key_name: {
71
+ required: false,
72
+ serialized_name: 'keyName',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ claim_type: {
78
+ required: false,
79
+ serialized_name: 'claimType',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ claim_value: {
85
+ required: false,
86
+ serialized_name: 'claimValue',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ rights: {
92
+ required: false,
93
+ serialized_name: 'rights',
94
+ type: {
95
+ name: 'Sequence',
96
+ element: {
97
+ required: false,
98
+ serialized_name: 'AccessRightsElementType',
99
+ type: {
100
+ name: 'Enum',
101
+ module: 'AccessRights'
102
+ }
103
+ }
104
+ }
105
+ },
106
+ created_time: {
107
+ required: false,
108
+ serialized_name: 'createdTime',
109
+ type: {
110
+ name: 'DateTime'
111
+ }
112
+ },
113
+ modified_time: {
114
+ required: false,
115
+ serialized_name: 'modifiedTime',
116
+ type: {
117
+ name: 'DateTime'
118
+ }
119
+ },
120
+ revision: {
121
+ required: false,
122
+ serialized_name: 'revision',
123
+ type: {
124
+ name: 'Number'
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ end
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,107 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::NotificationHubs
7
+ module Models
8
+ #
9
+ # Description of a Namespace AuthorizationRules.
10
+ #
11
+ class SharedAccessAuthorizationRuleResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the id of the created Namespace
16
+ # AuthorizationRules.
17
+ attr_accessor :id
18
+
19
+ # @return [String] Gets or sets datacenter location of the Namespace
20
+ # AuthorizationRules.
21
+ attr_accessor :location
22
+
23
+ # @return [String] Gets or sets name of the Namespace AuthorizationRules.
24
+ attr_accessor :name
25
+
26
+ # @return [String] Gets or sets resource type of the Namespace
27
+ # AuthorizationRules.
28
+ attr_accessor :type
29
+
30
+ # @return [Hash{String => String}] Gets or sets tags of the Namespace
31
+ # AuthorizationRules.
32
+ attr_accessor :tags
33
+
34
+ # @return [SharedAccessAuthorizationRuleProperties] Gets or sets
35
+ # properties of the Namespace.
36
+ attr_accessor :properties
37
+
38
+
39
+ #
40
+ # Mapper for SharedAccessAuthorizationRuleResource class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ required: false,
46
+ serialized_name: 'SharedAccessAuthorizationRuleResource',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'SharedAccessAuthorizationRuleResource',
50
+ model_properties: {
51
+ id: {
52
+ required: false,
53
+ serialized_name: 'id',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ location: {
59
+ required: false,
60
+ serialized_name: 'location',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ name: {
66
+ required: false,
67
+ serialized_name: 'name',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ type: {
73
+ required: false,
74
+ serialized_name: 'type',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ tags: {
80
+ required: false,
81
+ serialized_name: 'tags',
82
+ type: {
83
+ name: 'Dictionary',
84
+ value: {
85
+ required: false,
86
+ serialized_name: 'StringElementType',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ }
91
+ }
92
+ },
93
+ properties: {
94
+ required: false,
95
+ serialized_name: 'properties',
96
+ type: {
97
+ name: 'Composite',
98
+ class_name: 'SharedAccessAuthorizationRuleProperties'
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ end
105
+ end
106
+ end
107
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::NotificationHubs
7
+ module Models
8
+ #
9
+ # Description of a NotificationHub WnsCredential.
10
+ #
11
+ class WnsCredential
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [WnsCredentialProperties] Gets or sets properties of
16
+ # NotificationHub WnsCredential.
17
+ attr_accessor :properties
18
+
19
+
20
+ #
21
+ # Mapper for WnsCredential class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'WnsCredential',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'WnsCredential',
31
+ model_properties: {
32
+ properties: {
33
+ required: false,
34
+ serialized_name: 'properties',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'WnsCredentialProperties'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,64 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::NotificationHubs
7
+ module Models
8
+ #
9
+ # Description of a NotificationHub WnsCredential.
10
+ #
11
+ class WnsCredentialProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the package ID for this credential.
16
+ attr_accessor :package_sid
17
+
18
+ # @return [String] Gets or sets the secret key.
19
+ attr_accessor :secret_key
20
+
21
+ # @return [String] Gets or sets the Windows Live endpoint.
22
+ attr_accessor :windows_live_endpoint
23
+
24
+
25
+ #
26
+ # Mapper for WnsCredentialProperties class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ required: false,
32
+ serialized_name: 'WnsCredentialProperties',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'WnsCredentialProperties',
36
+ model_properties: {
37
+ package_sid: {
38
+ required: false,
39
+ serialized_name: 'packageSid',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ secret_key: {
45
+ required: false,
46
+ serialized_name: 'secretKey',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ windows_live_endpoint: {
52
+ required: false,
53
+ serialized_name: 'windowsLiveEndpoint',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ end
62
+ end
63
+ end
64
+ end