azure_mgmt_subscriptions 0.18.2 → 0.18.3
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.
- checksums.yaml +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_client.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
- data/lib/2019-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions.rb +44 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +47 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/canceled_subscription_id.rb +47 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/enabled_subscription_id.rb +47 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb +57 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/modern_csp_subscription_creation_parameters.rb +70 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/modern_subscription_creation_parameters.rb +117 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/offer_type.rb +16 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb +69 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +68 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/renamed_subscription_id.rb +47 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_parameters.rb +115 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +47 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/subscription_name.rb +46 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb +9 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/operations.rb +110 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/subscription.rb +788 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +137 -0
- data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/subscription_operation.rb +118 -0
- data/lib/2019-11-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
- data/lib/azure_mgmt_subscriptions.rb +1 -0
- data/lib/version.rb +1 -1
- metadata +22 -2
@@ -0,0 +1,16 @@
|
|
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::Subscriptions::Mgmt::V2019_10_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for OfferType
|
10
|
+
#
|
11
|
+
module OfferType
|
12
|
+
MSAZR0017P = "MS-AZR-0017P"
|
13
|
+
MSAZR0148P = "MS-AZR-0148P"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,58 @@
|
|
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::Subscriptions::Mgmt::V2019_10_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# REST API operation
|
10
|
+
#
|
11
|
+
class Operation
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Operation name: {provider}/{resource}/{operation}
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [OperationDisplay] The object that represents the operation.
|
19
|
+
attr_accessor :display
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for Operation class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'Operation',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'Operation',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'name',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
display: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'display',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'OperationDisplay'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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::Subscriptions::Mgmt::V2019_10_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The object that represents the operation.
|
10
|
+
#
|
11
|
+
class OperationDisplay
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Service provider: Microsoft.Subscription
|
16
|
+
attr_accessor :provider
|
17
|
+
|
18
|
+
# @return [String] Resource on which the operation is performed: Profile,
|
19
|
+
# endpoint, etc.
|
20
|
+
attr_accessor :resource
|
21
|
+
|
22
|
+
# @return [String] Operation type: Read, write, delete, etc.
|
23
|
+
attr_accessor :operation
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for OperationDisplay class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Operation_display',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'OperationDisplay',
|
38
|
+
model_properties: {
|
39
|
+
provider: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'provider',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
resource: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'resource',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
operation: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'operation',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb
ADDED
@@ -0,0 +1,68 @@
|
|
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::Subscriptions::Mgmt::V2019_10_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the request to list operations. It contains a list of
|
10
|
+
# operations and a URL link to get the next set of results.
|
11
|
+
#
|
12
|
+
class OperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<Operation>] List of operations.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] URL to get the next set of operation list results if
|
20
|
+
# there are any.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'OperationListResult',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'OperationListResult',
|
36
|
+
model_properties: {
|
37
|
+
value: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'value',
|
41
|
+
type: {
|
42
|
+
name: 'Sequence',
|
43
|
+
element: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'OperationElementType',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'Operation'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
next_link: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'nextLink',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
data/lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/renamed_subscription_id.rb
ADDED
@@ -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::Subscriptions::Mgmt::V2019_10_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The ID of the subscriptions that is being renamed
|
10
|
+
#
|
11
|
+
class RenamedSubscriptionId
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The ID of the subscriptions that is being renamed
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for RenamedSubscriptionId class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'RenamedSubscriptionId',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'RenamedSubscriptionId',
|
31
|
+
model_properties: {
|
32
|
+
value: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
read_only: true,
|
36
|
+
serialized_name: 'value',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,115 @@
|
|
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::Subscriptions::Mgmt::V2019_10_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Subscription Creation Parameters required to create a new Azure
|
10
|
+
# subscription.
|
11
|
+
#
|
12
|
+
class SubscriptionCreationParameters
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The display name of the subscription.
|
17
|
+
attr_accessor :display_name
|
18
|
+
|
19
|
+
# @return [String] The Management Group Id.
|
20
|
+
attr_accessor :management_group_id
|
21
|
+
|
22
|
+
# @return [Array<AdPrincipal>] The list of principals that should be
|
23
|
+
# granted Owner access on the subscription. Principals should be of type
|
24
|
+
# User, Service Principal or Security Group.
|
25
|
+
attr_accessor :owners
|
26
|
+
|
27
|
+
# @return [OfferType] The offer type of the subscription. For example,
|
28
|
+
# MS-AZR-0017P (EnterpriseAgreement) and MS-AZR-0148P
|
29
|
+
# (EnterpriseAgreement devTest) are available. Only valid when creating a
|
30
|
+
# subscription in a enrollment account scope. Possible values include:
|
31
|
+
# 'MS-AZR-0017P', 'MS-AZR-0148P'
|
32
|
+
attr_accessor :offer_type
|
33
|
+
|
34
|
+
# @return Additional, untyped parameters to support custom subscription
|
35
|
+
# creation scenarios.
|
36
|
+
attr_accessor :additional_parameters
|
37
|
+
|
38
|
+
|
39
|
+
#
|
40
|
+
# Mapper for SubscriptionCreationParameters class as Ruby Hash.
|
41
|
+
# This will be used for serialization/deserialization.
|
42
|
+
#
|
43
|
+
def self.mapper()
|
44
|
+
{
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'SubscriptionCreationParameters',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'SubscriptionCreationParameters',
|
51
|
+
model_properties: {
|
52
|
+
display_name: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'displayName',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
management_group_id: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'managementGroupId',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
owners: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'owners',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'AdPrincipalElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'AdPrincipal'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
offer_type: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'offerType',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
additional_parameters: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'additionalParameters',
|
97
|
+
type: {
|
98
|
+
name: 'Dictionary',
|
99
|
+
value: {
|
100
|
+
client_side_validation: true,
|
101
|
+
required: false,
|
102
|
+
serialized_name: 'ObjectElementType',
|
103
|
+
type: {
|
104
|
+
name: 'Object'
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
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::Subscriptions::Mgmt::V2019_10_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The created subscription object.
|
10
|
+
#
|
11
|
+
class SubscriptionCreationResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The link to the new subscription. Use this link to
|
16
|
+
# check the status of subscription creation operation.
|
17
|
+
attr_accessor :subscription_link
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for SubscriptionCreationResult class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'SubscriptionCreationResult',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'SubscriptionCreationResult',
|
32
|
+
model_properties: {
|
33
|
+
subscription_link: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'subscriptionLink',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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::Subscriptions::Mgmt::V2019_10_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The new name of the subscription.
|
10
|
+
#
|
11
|
+
class SubscriptionName
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] New subscription name
|
16
|
+
attr_accessor :subscription_name
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for SubscriptionName class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'SubscriptionName',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'SubscriptionName',
|
31
|
+
model_properties: {
|
32
|
+
subscription_name: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'subscriptionName',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|