azure_mgmt_notification_hubs 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_notification_hubs.rb +17 -20
  3. data/lib/generated/azure_mgmt_notification_hubs/models/access_rights.rb +1 -1
  4. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential.rb +26 -8
  5. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential.rb +36 -8
  6. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb +26 -8
  7. data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +40 -7
  8. data/lib/generated/azure_mgmt_notification_hubs/models/{check_availability_resource.rb → check_availability_result.rb} +25 -29
  9. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb +16 -8
  10. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb +26 -8
  11. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +146 -12
  12. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb +5 -5
  13. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb +62 -0
  14. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +128 -24
  15. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_type.rb +1 -1
  16. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +138 -13
  17. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +5 -5
  18. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +120 -27
  19. data/lib/generated/azure_mgmt_notification_hubs/models/{notification_hub_properties.rb → pns_credentials_resource.rb} +45 -31
  20. data/lib/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb +46 -0
  21. data/lib/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb +34 -5
  22. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +45 -12
  23. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +5 -5
  24. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +1 -82
  25. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +32 -34
  26. data/lib/generated/azure_mgmt_notification_hubs/models/sku.rb +85 -0
  27. data/lib/generated/azure_mgmt_notification_hubs/models/sku_name.rb +17 -0
  28. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential.rb +26 -8
  29. data/lib/generated/azure_mgmt_notification_hubs/module_definition.rb +1 -1
  30. data/lib/generated/azure_mgmt_notification_hubs/namespaces.rb +379 -243
  31. data/lib/generated/azure_mgmt_notification_hubs/notification_hubs.rb +192 -71
  32. data/lib/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +15 -2
  33. data/lib/generated/azure_mgmt_notification_hubs/version.rb +2 -2
  34. metadata +10 -13
  35. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +0 -64
  36. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +0 -74
  37. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +0 -64
  38. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +0 -54
  39. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +0 -64
  40. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_properties.rb +0 -153
  41. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +0 -64
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.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
+ # Namespace/NotificationHub Regenerate Keys
10
+ #
11
+ class PolicykeyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the key that has to be regenerated for the
16
+ # Namespace/Notification Hub Authorization Rule. The value can be Primary
17
+ # Key/Secondary Key.
18
+ attr_accessor :policy_key
19
+
20
+
21
+ #
22
+ # Mapper for PolicykeyResource class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'PolicykeyResource',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'PolicykeyResource',
32
+ model_properties: {
33
+ policy_key: {
34
+ required: false,
35
+ serialized_name: 'policyKey',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,14 +12,22 @@ module Azure::ARM::NotificationHubs
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the primaryConnectionString of the
16
- # created Namespace AuthorizationRule.
15
+ # @return [String] PrimaryConnectionString of the AuthorizationRule.
17
16
  attr_accessor :primary_connection_string
18
17
 
19
- # @return [String] Gets or sets the secondaryConnectionString of the
20
- # created Namespace AuthorizationRule
18
+ # @return [String] SecondaryConnectionString of the created
19
+ # AuthorizationRule
21
20
  attr_accessor :secondary_connection_string
22
21
 
22
+ # @return [String] PrimaryKey of the created AuthorizationRule.
23
+ attr_accessor :primary_key
24
+
25
+ # @return [String] SecondaryKey of the created AuthorizationRule
26
+ attr_accessor :secondary_key
27
+
28
+ # @return [String] KeyName of the created AuthorizationRule
29
+ attr_accessor :key_name
30
+
23
31
 
24
32
  #
25
33
  # Mapper for ResourceListKeys class as Ruby Hash.
@@ -46,6 +54,27 @@ module Azure::ARM::NotificationHubs
46
54
  type: {
47
55
  name: 'String'
48
56
  }
57
+ },
58
+ primary_key: {
59
+ required: false,
60
+ serialized_name: 'primaryKey',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ secondary_key: {
66
+ required: false,
67
+ serialized_name: 'secondaryKey',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ key_name: {
73
+ required: false,
74
+ serialized_name: 'keyName',
75
+ type: {
76
+ name: 'String'
77
+ }
49
78
  }
50
79
  }
51
80
  }
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,18 +8,12 @@ module Azure::ARM::NotificationHubs
8
8
  #
9
9
  # Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules.
10
10
  #
11
- class SharedAccessAuthorizationRuleCreateOrUpdateParameters
11
+ class SharedAccessAuthorizationRuleCreateOrUpdateParameters < MsRestAzure::Resource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets Namespace data center location.
16
- attr_accessor :location
17
-
18
- # @return [String] Gets or sets Name of the Namespace AuthorizationRule.
19
- attr_accessor :name
20
-
21
- # @return [SharedAccessAuthorizationRuleProperties] Gets or sets
22
- # properties of the Namespace AuthorizationRules.
15
+ # @return [SharedAccessAuthorizationRuleProperties] Properties of the
16
+ # Namespace AuthorizationRules.
23
17
  attr_accessor :properties
24
18
 
25
19
 
@@ -36,20 +30,59 @@ module Azure::ARM::NotificationHubs
36
30
  name: 'Composite',
37
31
  class_name: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
38
32
  model_properties: {
39
- location: {
33
+ id: {
40
34
  required: false,
41
- serialized_name: 'location',
35
+ read_only: true,
36
+ serialized_name: 'id',
42
37
  type: {
43
38
  name: 'String'
44
39
  }
45
40
  },
46
41
  name: {
47
42
  required: false,
43
+ read_only: true,
48
44
  serialized_name: 'name',
49
45
  type: {
50
46
  name: 'String'
51
47
  }
52
48
  },
49
+ type: {
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'type',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ location: {
58
+ required: true,
59
+ serialized_name: 'location',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ tags: {
65
+ required: false,
66
+ serialized_name: 'tags',
67
+ type: {
68
+ name: 'Dictionary',
69
+ value: {
70
+ required: false,
71
+ serialized_name: 'StringElementType',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ }
76
+ }
77
+ },
78
+ sku: {
79
+ required: false,
80
+ serialized_name: 'sku',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'Sku'
84
+ }
85
+ },
53
86
  properties: {
54
87
  required: true,
55
88
  serialized_name: 'properties',
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,12 +12,12 @@ module Azure::ARM::NotificationHubs
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<SharedAccessAuthorizationRuleResource>] Gets or sets
16
- # result of the List AuthorizationRules operation.
15
+ # @return [Array<SharedAccessAuthorizationRuleResource>] Result of the
16
+ # List AuthorizationRules operation.
17
17
  attr_accessor :value
18
18
 
19
- # @return [String] Gets or sets link to the next set of results. Not
20
- # empty if Value contains incomplete list of AuthorizationRules
19
+ # @return [String] Link to the next set of results. Not empty if Value
20
+ # contains incomplete list of AuthorizationRules
21
21
  attr_accessor :next_link
22
22
 
23
23
  # return [Proc] with next page method call.
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,34 +12,9 @@ module Azure::ARM::NotificationHubs
12
12
 
13
13
  include MsRestAzure
14
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
15
  # @return [Array<AccessRights>] The rights associated with the rule.
31
16
  attr_accessor :rights
32
17
 
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
18
 
44
19
  #
45
20
  # Mapper for SharedAccessAuthorizationRuleProperties class as Ruby Hash.
@@ -53,41 +28,6 @@ module Azure::ARM::NotificationHubs
53
28
  name: 'Composite',
54
29
  class_name: 'SharedAccessAuthorizationRuleProperties',
55
30
  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
31
  rights: {
92
32
  required: false,
93
33
  serialized_name: 'rights',
@@ -102,27 +42,6 @@ module Azure::ARM::NotificationHubs
102
42
  }
103
43
  }
104
44
  }
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
45
  }
127
46
  }
128
47
  }
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,32 +8,12 @@ module Azure::ARM::NotificationHubs
8
8
  #
9
9
  # Description of a Namespace AuthorizationRules.
10
10
  #
11
- class SharedAccessAuthorizationRuleResource
11
+ class SharedAccessAuthorizationRuleResource < MsRestAzure::Resource
12
12
 
13
13
  include MsRestAzure
14
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
15
+ # @return [Array<AccessRights>] The rights associated with the rule.
16
+ attr_accessor :rights
37
17
 
38
18
 
39
19
  #
@@ -50,20 +30,15 @@ module Azure::ARM::NotificationHubs
50
30
  model_properties: {
51
31
  id: {
52
32
  required: false,
33
+ read_only: true,
53
34
  serialized_name: 'id',
54
35
  type: {
55
36
  name: 'String'
56
37
  }
57
38
  },
58
- location: {
59
- required: false,
60
- serialized_name: 'location',
61
- type: {
62
- name: 'String'
63
- }
64
- },
65
39
  name: {
66
40
  required: false,
41
+ read_only: true,
67
42
  serialized_name: 'name',
68
43
  type: {
69
44
  name: 'String'
@@ -71,11 +46,19 @@ module Azure::ARM::NotificationHubs
71
46
  },
72
47
  type: {
73
48
  required: false,
49
+ read_only: true,
74
50
  serialized_name: 'type',
75
51
  type: {
76
52
  name: 'String'
77
53
  }
78
54
  },
55
+ location: {
56
+ required: true,
57
+ serialized_name: 'location',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
79
62
  tags: {
80
63
  required: false,
81
64
  serialized_name: 'tags',
@@ -90,12 +73,27 @@ module Azure::ARM::NotificationHubs
90
73
  }
91
74
  }
92
75
  },
93
- properties: {
76
+ sku: {
94
77
  required: false,
95
- serialized_name: 'properties',
78
+ serialized_name: 'sku',
96
79
  type: {
97
80
  name: 'Composite',
98
- class_name: 'SharedAccessAuthorizationRuleProperties'
81
+ class_name: 'Sku'
82
+ }
83
+ },
84
+ rights: {
85
+ required: false,
86
+ serialized_name: 'properties.rights',
87
+ type: {
88
+ name: 'Sequence',
89
+ element: {
90
+ required: false,
91
+ serialized_name: 'AccessRightsElementType',
92
+ type: {
93
+ name: 'Enum',
94
+ module: 'AccessRights'
95
+ }
96
+ }
99
97
  }
100
98
  }
101
99
  }
@@ -0,0 +1,85 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.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 Sku description for a namespace
10
+ #
11
+ class Sku
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [SkuName] Name of the notification hub sku. Possible values
16
+ # include: 'Free', 'Basic', 'Standard'
17
+ attr_accessor :name
18
+
19
+ # @return [String] The tier of particular sku
20
+ attr_accessor :tier
21
+
22
+ # @return [String] The Sku size
23
+ attr_accessor :size
24
+
25
+ # @return [String] The Sku Family
26
+ attr_accessor :family
27
+
28
+ # @return [Integer] The capacity of the resource
29
+ attr_accessor :capacity
30
+
31
+
32
+ #
33
+ # Mapper for Sku class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ required: false,
39
+ serialized_name: 'Sku',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'Sku',
43
+ model_properties: {
44
+ name: {
45
+ required: true,
46
+ serialized_name: 'name',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ tier: {
52
+ required: false,
53
+ serialized_name: 'tier',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ size: {
59
+ required: false,
60
+ serialized_name: 'size',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ family: {
66
+ required: false,
67
+ serialized_name: 'family',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ capacity: {
73
+ required: false,
74
+ serialized_name: 'capacity',
75
+ type: {
76
+ name: 'Number'
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end