azure_mgmt_relay 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_relay.rb +8 -0
  4. data/lib/generated/azure_mgmt_relay.rb +58 -0
  5. data/lib/generated/azure_mgmt_relay/hybrid_connections.rb +1269 -0
  6. data/lib/generated/azure_mgmt_relay/models/access_keys.rb +88 -0
  7. data/lib/generated/azure_mgmt_relay/models/access_rights.rb +17 -0
  8. data/lib/generated/azure_mgmt_relay/models/authorization_rule.rb +79 -0
  9. data/lib/generated/azure_mgmt_relay/models/authorization_rule_list_result.rb +96 -0
  10. data/lib/generated/azure_mgmt_relay/models/check_name_availability.rb +47 -0
  11. data/lib/generated/azure_mgmt_relay/models/check_name_availability_result.rb +71 -0
  12. data/lib/generated/azure_mgmt_relay/models/error_response.rb +55 -0
  13. data/lib/generated/azure_mgmt_relay/models/hybrid_connection.rb +121 -0
  14. data/lib/generated/azure_mgmt_relay/models/hybrid_connection_list_result.rb +96 -0
  15. data/lib/generated/azure_mgmt_relay/models/key_type.rb +16 -0
  16. data/lib/generated/azure_mgmt_relay/models/operation.rb +56 -0
  17. data/lib/generated/azure_mgmt_relay/models/operation_display.rb +68 -0
  18. data/lib/generated/azure_mgmt_relay/models/operation_list_result.rb +99 -0
  19. data/lib/generated/azure_mgmt_relay/models/provisioning_state_enum.rb +20 -0
  20. data/lib/generated/azure_mgmt_relay/models/regenerate_access_key_parameters.rb +58 -0
  21. data/lib/generated/azure_mgmt_relay/models/relay_namespace.rb +148 -0
  22. data/lib/generated/azure_mgmt_relay/models/relay_namespace_list_result.rb +95 -0
  23. data/lib/generated/azure_mgmt_relay/models/relay_update_parameters.rb +141 -0
  24. data/lib/generated/azure_mgmt_relay/models/relaytype.rb +16 -0
  25. data/lib/generated/azure_mgmt_relay/models/resource.rb +67 -0
  26. data/lib/generated/azure_mgmt_relay/models/resource_namespace_patch.rb +75 -0
  27. data/lib/generated/azure_mgmt_relay/models/sku.rb +58 -0
  28. data/lib/generated/azure_mgmt_relay/models/sku_tier.rb +15 -0
  29. data/lib/generated/azure_mgmt_relay/models/tracked_resource.rb +85 -0
  30. data/lib/generated/azure_mgmt_relay/models/unavailable_reason.rb +20 -0
  31. data/lib/generated/azure_mgmt_relay/models/wcf_relay.rb +156 -0
  32. data/lib/generated/azure_mgmt_relay/models/wcf_relays_list_result.rb +95 -0
  33. data/lib/generated/azure_mgmt_relay/module_definition.rb +8 -0
  34. data/lib/generated/azure_mgmt_relay/namespaces.rb +1745 -0
  35. data/lib/generated/azure_mgmt_relay/operations.rb +214 -0
  36. data/lib/generated/azure_mgmt_relay/relay_management_client.rb +143 -0
  37. data/lib/generated/azure_mgmt_relay/version.rb +8 -0
  38. data/lib/generated/azure_mgmt_relay/wcfrelays.rb +1263 -0
  39. metadata +150 -0
@@ -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::ARM::Relay
7
+ module Models
8
+ #
9
+ # Namespace/Relay Connection String
10
+ #
11
+ class AccessKeys
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Primary connection string of the created namespace
16
+ # authorization rule.
17
+ attr_accessor :primary_connection_string
18
+
19
+ # @return [String] Secondary connection string of the created namespace
20
+ # authorization rule.
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 AccessKeys class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'AccessKeys',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'AccessKeys',
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,17 @@
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::ARM::Relay
7
+ module Models
8
+ #
9
+ # Defines values for AccessRights
10
+ #
11
+ module AccessRights
12
+ Manage = "Manage"
13
+ Send = "Send"
14
+ Listen = "Listen"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,79 @@
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::ARM::Relay
7
+ module Models
8
+ #
9
+ # Description of a namespace authorization rule.
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: false,
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: 'Enum',
68
+ module: 'AccessRights'
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ 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::ARM::Relay
7
+ module Models
8
+ #
9
+ # The response from 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 authorization
17
+ # rules 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 authorization rules.
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::ARM::Relay
7
+ module Models
8
+ #
9
+ # Description of the check name availability request properties.
10
+ #
11
+ class CheckNameAvailability
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The namespace name to check for availability. The
16
+ # 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::ARM::Relay
7
+ module Models
8
+ #
9
+ # Description of the check name availability request properties.
10
+ #
11
+ class CheckNameAvailabilityResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The detailed info regarding the reason associated with
16
+ # the namespace.
17
+ attr_accessor :message
18
+
19
+ # @return [Boolean] Value indicating namespace is available. Returns true
20
+ # if the namespace is available; otherwise, false.
21
+ attr_accessor :name_available
22
+
23
+ # @return [UnavailableReason] The reason for unavailability of a
24
+ # namespace. Possible values include: 'None', 'InvalidName',
25
+ # 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown',
26
+ # 'TooManyNamespaceInCurrentSubscription'
27
+ attr_accessor :reason
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
+ message: {
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'message',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ name_available: {
51
+ required: false,
52
+ serialized_name: 'nameAvailable',
53
+ type: {
54
+ name: 'Boolean'
55
+ }
56
+ },
57
+ reason: {
58
+ required: false,
59
+ serialized_name: 'reason',
60
+ type: {
61
+ name: 'Enum',
62
+ module: 'UnavailableReason'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,55 @@
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::ARM::Relay
7
+ module Models
8
+ #
9
+ # Error reponse indicates Relay service is not able to process the incoming
10
+ # request. The reason is provided in the error message.
11
+ #
12
+ class ErrorResponse
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Error code.
17
+ attr_accessor :code
18
+
19
+ # @return [String] Error message indicating why the operation failed.
20
+ attr_accessor :message
21
+
22
+
23
+ #
24
+ # Mapper for ErrorResponse class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'ErrorResponse',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ErrorResponse',
34
+ model_properties: {
35
+ code: {
36
+ required: false,
37
+ serialized_name: 'code',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ },
42
+ message: {
43
+ required: false,
44
+ serialized_name: 'message',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end