azure_mgmt_relay 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-07-01/generated/azure_mgmt_relay.rb +55 -0
  3. data/lib/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb +1269 -0
  4. data/lib/{generated → 2016-07-01/generated}/azure_mgmt_relay/models/access_rights.rb +1 -1
  5. data/lib/2016-07-01/generated/azure_mgmt_relay/models/authorization_rule.rb +78 -0
  6. data/lib/2016-07-01/generated/azure_mgmt_relay/models/authorization_rule_keys.rb +88 -0
  7. data/lib/2016-07-01/generated/azure_mgmt_relay/models/authorization_rule_list_result.rb +96 -0
  8. data/lib/2016-07-01/generated/azure_mgmt_relay/models/check_name_availability.rb +47 -0
  9. data/lib/2016-07-01/generated/azure_mgmt_relay/models/check_name_availability_result.rb +71 -0
  10. data/lib/{generated → 2016-07-01/generated}/azure_mgmt_relay/models/error_response.rb +1 -1
  11. data/lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection.rb +120 -0
  12. data/lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection_list_result.rb +95 -0
  13. data/lib/2016-07-01/generated/azure_mgmt_relay/models/operation.rb +56 -0
  14. data/lib/2016-07-01/generated/azure_mgmt_relay/models/operation_display.rb +68 -0
  15. data/lib/2016-07-01/generated/azure_mgmt_relay/models/operation_list_result.rb +99 -0
  16. data/lib/2016-07-01/generated/azure_mgmt_relay/models/policy_key.rb +16 -0
  17. data/lib/2016-07-01/generated/azure_mgmt_relay/models/regenerate_keys_parameters.rb +45 -0
  18. data/lib/2016-07-01/generated/azure_mgmt_relay/models/relay_namespace.rb +148 -0
  19. data/lib/2016-07-01/generated/azure_mgmt_relay/models/relay_namespace_list_result.rb +95 -0
  20. data/lib/2016-07-01/generated/azure_mgmt_relay/models/relay_namespace_update_parameter.rb +64 -0
  21. data/lib/{generated → 2016-07-01/generated}/azure_mgmt_relay/models/relaytype.rb +1 -1
  22. data/lib/2016-07-01/generated/azure_mgmt_relay/models/resource.rb +67 -0
  23. data/lib/2016-07-01/generated/azure_mgmt_relay/models/sku.rb +59 -0
  24. data/lib/2016-07-01/generated/azure_mgmt_relay/models/tracked_resource.rb +85 -0
  25. data/lib/{generated → 2016-07-01/generated}/azure_mgmt_relay/models/unavailable_reason.rb +1 -1
  26. data/lib/2016-07-01/generated/azure_mgmt_relay/models/wcf_relay.rb +149 -0
  27. data/lib/2016-07-01/generated/azure_mgmt_relay/models/wcf_relays_list_result.rb +95 -0
  28. data/lib/2016-07-01/generated/azure_mgmt_relay/module_definition.rb +9 -0
  29. data/lib/2016-07-01/generated/azure_mgmt_relay/namespaces.rb +1725 -0
  30. data/lib/2016-07-01/generated/azure_mgmt_relay/operations.rb +214 -0
  31. data/lib/2016-07-01/generated/azure_mgmt_relay/relay_management_client.rb +143 -0
  32. data/lib/{generated → 2016-07-01/generated}/azure_mgmt_relay/version.rb +2 -2
  33. data/lib/2016-07-01/generated/azure_mgmt_relay/wcfrelays.rb +1263 -0
  34. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay.rb +34 -34
  35. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/hybrid_connections.rb +14 -14
  36. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/access_keys.rb +1 -1
  37. data/lib/2017-04-01/generated/azure_mgmt_relay/models/access_rights.rb +17 -0
  38. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/authorization_rule.rb +1 -1
  39. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/authorization_rule_list_result.rb +1 -1
  40. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/check_name_availability.rb +1 -1
  41. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/check_name_availability_result.rb +1 -1
  42. data/lib/2017-04-01/generated/azure_mgmt_relay/models/error_response.rb +55 -0
  43. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/hybrid_connection.rb +1 -1
  44. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/hybrid_connection_list_result.rb +1 -1
  45. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/key_type.rb +1 -1
  46. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/operation.rb +1 -1
  47. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/operation_display.rb +1 -1
  48. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/operation_list_result.rb +1 -1
  49. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/provisioning_state_enum.rb +1 -1
  50. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/regenerate_access_key_parameters.rb +1 -1
  51. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/relay_namespace.rb +1 -1
  52. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/relay_namespace_list_result.rb +1 -1
  53. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/relay_update_parameters.rb +1 -1
  54. data/lib/2017-04-01/generated/azure_mgmt_relay/models/relaytype.rb +16 -0
  55. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/resource.rb +1 -1
  56. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/resource_namespace_patch.rb +1 -1
  57. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/sku.rb +1 -1
  58. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/sku_tier.rb +1 -1
  59. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/tracked_resource.rb +1 -1
  60. data/lib/2017-04-01/generated/azure_mgmt_relay/models/unavailable_reason.rb +20 -0
  61. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/wcf_relay.rb +1 -1
  62. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/models/wcf_relays_list_result.rb +1 -1
  63. data/lib/2017-04-01/generated/azure_mgmt_relay/module_definition.rb +9 -0
  64. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/namespaces.rb +23 -23
  65. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/operations.rb +3 -3
  66. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/relay_management_client.rb +3 -3
  67. data/lib/{generated/azure_mgmt_relay/module_definition.rb → 2017-04-01/generated/azure_mgmt_relay/version.rb} +3 -3
  68. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_relay/wcfrelays.rb +14 -14
  69. data/lib/azure_mgmt_relay.rb +3 -4
  70. data/lib/module_definition.rb +7 -0
  71. data/lib/profiles/common/configurable.rb +73 -0
  72. data/lib/profiles/common/default.rb +68 -0
  73. data/lib/profiles/latest/modules/relay_profile_module.rb +156 -0
  74. data/lib/profiles/latest/relay_latest_profile_client.rb +33 -0
  75. data/lib/profiles/latest/relay_module_definition.rb +9 -0
  76. data/lib/version.rb +7 -0
  77. metadata +76 -37
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Relay
6
+ module Azure::Relay::Mgmt::V2016_07_01
7
7
  module Models
8
8
  #
9
9
  # Defines values for AccessRights
@@ -0,0 +1,78 @@
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::Relay::Mgmt::V2016_07_01
7
+ module Models
8
+ #
9
+ # Description of a Namespace AuthorizationRules.
10
+ #
11
+ class AuthorizationRule < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<AccessRights>] The rights associated with the rule.
16
+ attr_accessor :rights
17
+
18
+
19
+ #
20
+ # Mapper for AuthorizationRule class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'AuthorizationRule',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'AuthorizationRule',
30
+ model_properties: {
31
+ id: {
32
+ required: false,
33
+ read_only: true,
34
+ serialized_name: 'id',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ },
39
+ name: {
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'name',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ type: {
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'type',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ rights: {
56
+ required: true,
57
+ serialized_name: 'properties.rights',
58
+ constraints: {
59
+ UniqueItems: true
60
+ },
61
+ type: {
62
+ name: 'Sequence',
63
+ element: {
64
+ required: false,
65
+ serialized_name: 'AccessRightsElementType',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,88 @@
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::Relay::Mgmt::V2016_07_01
7
+ module Models
8
+ #
9
+ # Namespace/Relay Connection String
10
+ #
11
+ class AuthorizationRuleKeys
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] PrimaryConnectionString of the created Namespace
16
+ # AuthorizationRule.
17
+ attr_accessor :primary_connection_string
18
+
19
+ # @return [String] SecondaryConnectionString of the created Namespace
20
+ # AuthorizationRule
21
+ attr_accessor :secondary_connection_string
22
+
23
+ # @return [String] A base64-encoded 256-bit primary key for signing and
24
+ # validating the SAS token
25
+ attr_accessor :primary_key
26
+
27
+ # @return [String] A base64-encoded 256-bit secondary key for signing and
28
+ # validating the SAS token
29
+ attr_accessor :secondary_key
30
+
31
+ # @return [String] A string that describes the authorization rule
32
+ attr_accessor :key_name
33
+
34
+
35
+ #
36
+ # Mapper for AuthorizationRuleKeys class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'AuthorizationRuleKeys',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'AuthorizationRuleKeys',
46
+ model_properties: {
47
+ primary_connection_string: {
48
+ required: false,
49
+ serialized_name: 'primaryConnectionString',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ secondary_connection_string: {
55
+ required: false,
56
+ serialized_name: 'secondaryConnectionString',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ primary_key: {
62
+ required: false,
63
+ serialized_name: 'primaryKey',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ secondary_key: {
69
+ required: false,
70
+ serialized_name: 'secondaryKey',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ key_name: {
76
+ required: false,
77
+ serialized_name: 'keyName',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,96 @@
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::Relay::Mgmt::V2016_07_01
7
+ module Models
8
+ #
9
+ # The response of the List Namespace operation.
10
+ #
11
+ class AuthorizationRuleListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<AuthorizationRule>] Result of the List
17
+ # AuthorizationRules operation.
18
+ attr_accessor :value
19
+
20
+ # @return [String] Link to the next set of results. Not empty if Value
21
+ # contains incomplete list of AuthorizationRules
22
+ attr_accessor :next_link
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<AuthorizationRule>] operation 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 [AuthorizationRuleListResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for AuthorizationRuleListResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ required: false,
63
+ serialized_name: 'AuthorizationRuleListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'AuthorizationRuleListResult',
67
+ model_properties: {
68
+ value: {
69
+ required: false,
70
+ serialized_name: 'value',
71
+ type: {
72
+ name: 'Sequence',
73
+ element: {
74
+ required: false,
75
+ serialized_name: 'AuthorizationRuleElementType',
76
+ type: {
77
+ name: 'Composite',
78
+ class_name: 'AuthorizationRule'
79
+ }
80
+ }
81
+ }
82
+ },
83
+ next_link: {
84
+ required: false,
85
+ serialized_name: 'nextLink',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,47 @@
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::Relay::Mgmt::V2016_07_01
7
+ module Models
8
+ #
9
+ # Description of a Check Name availability request properties.
10
+ #
11
+ class CheckNameAvailability
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The Name to check the namespce name availability and
16
+ # The namespace name can contain only letters, numbers, and hyphens. The
17
+ # namespace must start with a letter, and it must end with a letter or
18
+ # number.
19
+ attr_accessor :name
20
+
21
+
22
+ #
23
+ # Mapper for CheckNameAvailability class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'CheckNameAvailability',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'CheckNameAvailability',
33
+ model_properties: {
34
+ name: {
35
+ required: true,
36
+ serialized_name: 'name',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,71 @@
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::Relay::Mgmt::V2016_07_01
7
+ module Models
8
+ #
9
+ # Description of a Check Name availability request properties.
10
+ #
11
+ class CheckNameAvailabilityResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] Value indicating namespace is availability, true if
16
+ # the namespace is available; otherwise, false.
17
+ attr_accessor :name_available
18
+
19
+ # @return [UnavailableReason] The reason for unavailability of a
20
+ # namespace. Possible values include: 'None', 'InvalidName',
21
+ # 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown',
22
+ # 'TooManyNamespaceInCurrentSubscription'
23
+ attr_accessor :reason
24
+
25
+ # @return [String] The detailed info regarding the reason associated with
26
+ # the namespace.
27
+ attr_accessor :message
28
+
29
+
30
+ #
31
+ # Mapper for CheckNameAvailabilityResult class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ required: false,
37
+ serialized_name: 'CheckNameAvailabilityResult',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'CheckNameAvailabilityResult',
41
+ model_properties: {
42
+ name_available: {
43
+ required: false,
44
+ serialized_name: 'nameAvailable',
45
+ type: {
46
+ name: 'Boolean'
47
+ }
48
+ },
49
+ reason: {
50
+ required: false,
51
+ serialized_name: 'reason',
52
+ type: {
53
+ name: 'Enum',
54
+ module: 'UnavailableReason'
55
+ }
56
+ },
57
+ message: {
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'message',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Relay
6
+ module Azure::Relay::Mgmt::V2016_07_01
7
7
  module Models
8
8
  #
9
9
  # Error reponse indicates Relay service is not able to process the incoming
@@ -0,0 +1,120 @@
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::Relay::Mgmt::V2016_07_01
7
+ module Models
8
+ #
9
+ # Description of HybridConnection Resource.
10
+ #
11
+ class HybridConnection < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DateTime] The time the HybridConnection was created.
16
+ attr_accessor :created_at
17
+
18
+ # @return [DateTime] The time the namespace was updated.
19
+ attr_accessor :updated_at
20
+
21
+ # @return [Integer] The number of listeners for this HybridConnection.
22
+ # min : 1 and max:25 supported
23
+ attr_accessor :listener_count
24
+
25
+ # @return [Boolean] true if client authorization is needed for this
26
+ # HybridConnection; otherwise, false.
27
+ attr_accessor :requires_client_authorization
28
+
29
+ # @return [String] usermetadata is a placeholder to store user-defined
30
+ # string data for the HybridConnection endpoint.e.g. it can be used to
31
+ # store descriptive data, such as list of teams and their contact
32
+ # information also user-defined configuration settings can be stored.
33
+ attr_accessor :user_metadata
34
+
35
+
36
+ #
37
+ # Mapper for HybridConnection class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ required: false,
43
+ serialized_name: 'HybridConnection',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'HybridConnection',
47
+ model_properties: {
48
+ id: {
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ name: {
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'name',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ type: {
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'type',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ created_at: {
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'properties.createdAt',
76
+ type: {
77
+ name: 'DateTime'
78
+ }
79
+ },
80
+ updated_at: {
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'properties.updatedAt',
84
+ type: {
85
+ name: 'DateTime'
86
+ }
87
+ },
88
+ listener_count: {
89
+ required: false,
90
+ read_only: true,
91
+ serialized_name: 'properties.listenerCount',
92
+ constraints: {
93
+ InclusiveMaximum: 25,
94
+ InclusiveMinimum: 1
95
+ },
96
+ type: {
97
+ name: 'Number'
98
+ }
99
+ },
100
+ requires_client_authorization: {
101
+ required: false,
102
+ serialized_name: 'properties.requiresClientAuthorization',
103
+ type: {
104
+ name: 'Boolean'
105
+ }
106
+ },
107
+ user_metadata: {
108
+ required: false,
109
+ serialized_name: 'properties.userMetadata',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ end
118
+ end
119
+ end
120
+ end