azure_mgmt_media_services 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-10-01/generated/azure_mgmt_media_services/media_service_operations.rb +21 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/media_services_management_client.rb +1 -3
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/api_endpoint.rb +3 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/api_error.rb +3 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb +3 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_output.rb +4 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/media_service.rb +11 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/media_service_collection.rb +3 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/operation.rb +3 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/operation_display.rb +4 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/operation_list_result.rb +4 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/regenerate_key_input.rb +2 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/regenerate_key_output.rb +2 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/resource.rb +7 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/service_keys.rb +6 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/storage_account.rb +3 -0
- data/lib/2015-10-01/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb +2 -0
- data/lib/profiles/latest/mediaservices_latest_profile_client.rb +1 -3
- data/lib/version.rb +1 -1
- metadata +10 -8
- data/lib/2015-10-01/generated/azure_mgmt_media_services/version.rb +0 -8
- data/lib/profiles/common/configurable.rb +0 -86
- data/lib/profiles/common/default.rb +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4461a7579d8768793756b63f23807e16ab3a3cbb
|
4
|
+
data.tar.gz: 9ee4079460f473cd83d8903a1dea4f01fab5de91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85e05fd36015f23a321543a20a9d637464793364985b5a36cc03b67249f0a12803b6d7bacad884fba512c88b2af3de8e4278416453ff5a2c6dbe1ebce153ac2b
|
7
|
+
data.tar.gz: a6bccb16c1af37408880578fe897fad0c0547b9e4c2bdfac2b909be5eddf813aad264ba5c282a6e98550b62c53bdf2f8a6d3ba202d433bf030cde8e069933bf8
|
@@ -260,6 +260,9 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
260
260
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
261
261
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
262
262
|
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
|
263
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MaxLength': '24'" if !media_service_name.nil? && media_service_name.length > 24
|
264
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MinLength': '3'" if !media_service_name.nil? && media_service_name.length < 3
|
265
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]{3,24}$'" if !media_service_name.nil? && media_service_name.match(Regexp.new('^^[a-z0-9]{3,24}$$')).nil?
|
263
266
|
|
264
267
|
|
265
268
|
request_headers = {}
|
@@ -360,6 +363,9 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
360
363
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
361
364
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
362
365
|
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
|
366
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MaxLength': '24'" if !media_service_name.nil? && media_service_name.length > 24
|
367
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MinLength': '3'" if !media_service_name.nil? && media_service_name.length < 3
|
368
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]{3,24}$'" if !media_service_name.nil? && media_service_name.match(Regexp.new('^^[a-z0-9]{3,24}$$')).nil?
|
363
369
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
364
370
|
|
365
371
|
|
@@ -463,6 +469,9 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
463
469
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
464
470
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
465
471
|
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
|
472
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MaxLength': '24'" if !media_service_name.nil? && media_service_name.length > 24
|
473
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MinLength': '3'" if !media_service_name.nil? && media_service_name.length < 3
|
474
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]{3,24}$'" if !media_service_name.nil? && media_service_name.match(Regexp.new('^^[a-z0-9]{3,24}$$')).nil?
|
466
475
|
|
467
476
|
|
468
477
|
request_headers = {}
|
@@ -550,6 +559,9 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
550
559
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
551
560
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
552
561
|
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
|
562
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MaxLength': '24'" if !media_service_name.nil? && media_service_name.length > 24
|
563
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MinLength': '3'" if !media_service_name.nil? && media_service_name.length < 3
|
564
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]{3,24}$'" if !media_service_name.nil? && media_service_name.match(Regexp.new('^^[a-z0-9]{3,24}$$')).nil?
|
553
565
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
554
566
|
|
555
567
|
|
@@ -660,6 +672,9 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
660
672
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
661
673
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
662
674
|
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
|
675
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MaxLength': '24'" if !media_service_name.nil? && media_service_name.length > 24
|
676
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MinLength': '3'" if !media_service_name.nil? && media_service_name.length < 3
|
677
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]{3,24}$'" if !media_service_name.nil? && media_service_name.match(Regexp.new('^^[a-z0-9]{3,24}$$')).nil?
|
663
678
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
664
679
|
|
665
680
|
|
@@ -764,6 +779,9 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
764
779
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
765
780
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
766
781
|
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
|
782
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MaxLength': '24'" if !media_service_name.nil? && media_service_name.length > 24
|
783
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MinLength': '3'" if !media_service_name.nil? && media_service_name.length < 3
|
784
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]{3,24}$'" if !media_service_name.nil? && media_service_name.match(Regexp.new('^^[a-z0-9]{3,24}$$')).nil?
|
767
785
|
|
768
786
|
|
769
787
|
request_headers = {}
|
@@ -866,6 +884,9 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
866
884
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
867
885
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
868
886
|
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
|
887
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MaxLength': '24'" if !media_service_name.nil? && media_service_name.length > 24
|
888
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'MinLength': '3'" if !media_service_name.nil? && media_service_name.length < 3
|
889
|
+
fail ArgumentError, "'media_service_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]{3,24}$'" if !media_service_name.nil? && media_service_name.match(Regexp.new('^^[a-z0-9]{3,24}$$')).nil?
|
869
890
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
870
891
|
|
871
892
|
|
@@ -126,9 +126,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
126
126
|
#
|
127
127
|
def add_telemetry
|
128
128
|
sdk_information = 'azure_mgmt_media_services'
|
129
|
-
|
130
|
-
sdk_information = "#{sdk_information}/#{Azure::MediaServices::Mgmt::V2015_10_01::VERSION}"
|
131
|
-
end
|
129
|
+
sdk_information = "#{sdk_information}/0.15.2"
|
132
130
|
add_user_agent_information(sdk_information)
|
133
131
|
end
|
134
132
|
end
|
@@ -25,6 +25,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
|
+
client_side_validation: true,
|
28
29
|
required: false,
|
29
30
|
serialized_name: 'ApiEndpoint',
|
30
31
|
type: {
|
@@ -32,6 +33,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
32
33
|
class_name: 'ApiEndpoint',
|
33
34
|
model_properties: {
|
34
35
|
endpoint: {
|
36
|
+
client_side_validation: true,
|
35
37
|
required: false,
|
36
38
|
serialized_name: 'endpoint',
|
37
39
|
type: {
|
@@ -39,6 +41,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
39
41
|
}
|
40
42
|
},
|
41
43
|
major_version: {
|
44
|
+
client_side_validation: true,
|
42
45
|
required: false,
|
43
46
|
serialized_name: 'majorVersion',
|
44
47
|
type: {
|
@@ -25,6 +25,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
|
+
client_side_validation: true,
|
28
29
|
required: false,
|
29
30
|
serialized_name: 'ApiError',
|
30
31
|
type: {
|
@@ -32,6 +33,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
32
33
|
class_name: 'ApiError',
|
33
34
|
model_properties: {
|
34
35
|
code: {
|
36
|
+
client_side_validation: true,
|
35
37
|
required: false,
|
36
38
|
serialized_name: 'code',
|
37
39
|
type: {
|
@@ -39,6 +41,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
39
41
|
}
|
40
42
|
},
|
41
43
|
message: {
|
44
|
+
client_side_validation: true,
|
42
45
|
required: false,
|
43
46
|
serialized_name: 'message',
|
44
47
|
type: {
|
data/lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
CHANGED
@@ -27,6 +27,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
27
27
|
#
|
28
28
|
def self.mapper()
|
29
29
|
{
|
30
|
+
client_side_validation: true,
|
30
31
|
required: false,
|
31
32
|
serialized_name: 'CheckNameAvailabilityInput',
|
32
33
|
type: {
|
@@ -34,6 +35,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
34
35
|
class_name: 'CheckNameAvailabilityInput',
|
35
36
|
model_properties: {
|
36
37
|
name: {
|
38
|
+
client_side_validation: true,
|
37
39
|
required: true,
|
38
40
|
serialized_name: 'name',
|
39
41
|
constraints: {
|
@@ -46,6 +48,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
46
48
|
}
|
47
49
|
},
|
48
50
|
type: {
|
51
|
+
client_side_validation: true,
|
49
52
|
required: true,
|
50
53
|
is_constant: true,
|
51
54
|
serialized_name: 'type',
|
data/lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_output.rb
CHANGED
@@ -31,6 +31,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
31
31
|
#
|
32
32
|
def self.mapper()
|
33
33
|
{
|
34
|
+
client_side_validation: true,
|
34
35
|
required: false,
|
35
36
|
serialized_name: 'CheckNameAvailabilityOutput',
|
36
37
|
type: {
|
@@ -38,6 +39,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
38
39
|
class_name: 'CheckNameAvailabilityOutput',
|
39
40
|
model_properties: {
|
40
41
|
name_available: {
|
42
|
+
client_side_validation: true,
|
41
43
|
required: false,
|
42
44
|
serialized_name: 'nameAvailable',
|
43
45
|
type: {
|
@@ -45,6 +47,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
45
47
|
}
|
46
48
|
},
|
47
49
|
reason: {
|
50
|
+
client_side_validation: true,
|
48
51
|
required: false,
|
49
52
|
serialized_name: 'reason',
|
50
53
|
type: {
|
@@ -53,6 +56,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
53
56
|
}
|
54
57
|
},
|
55
58
|
message: {
|
59
|
+
client_side_validation: true,
|
56
60
|
required: false,
|
57
61
|
serialized_name: 'message',
|
58
62
|
type: {
|
@@ -27,6 +27,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
27
27
|
#
|
28
28
|
def self.mapper()
|
29
29
|
{
|
30
|
+
client_side_validation: true,
|
30
31
|
required: false,
|
31
32
|
serialized_name: 'MediaService',
|
32
33
|
type: {
|
@@ -34,6 +35,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
34
35
|
class_name: 'MediaService',
|
35
36
|
model_properties: {
|
36
37
|
id: {
|
38
|
+
client_side_validation: true,
|
37
39
|
required: false,
|
38
40
|
read_only: true,
|
39
41
|
serialized_name: 'id',
|
@@ -42,6 +44,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
42
44
|
}
|
43
45
|
},
|
44
46
|
name: {
|
47
|
+
client_side_validation: true,
|
45
48
|
required: false,
|
46
49
|
read_only: true,
|
47
50
|
serialized_name: 'name',
|
@@ -50,6 +53,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
50
53
|
}
|
51
54
|
},
|
52
55
|
type: {
|
56
|
+
client_side_validation: true,
|
53
57
|
required: false,
|
54
58
|
read_only: true,
|
55
59
|
serialized_name: 'type',
|
@@ -58,6 +62,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
58
62
|
}
|
59
63
|
},
|
60
64
|
location: {
|
65
|
+
client_side_validation: true,
|
61
66
|
required: false,
|
62
67
|
serialized_name: 'location',
|
63
68
|
type: {
|
@@ -65,11 +70,13 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
65
70
|
}
|
66
71
|
},
|
67
72
|
tags: {
|
73
|
+
client_side_validation: true,
|
68
74
|
required: false,
|
69
75
|
serialized_name: 'tags',
|
70
76
|
type: {
|
71
77
|
name: 'Dictionary',
|
72
78
|
value: {
|
79
|
+
client_side_validation: true,
|
73
80
|
required: false,
|
74
81
|
serialized_name: 'StringElementType',
|
75
82
|
type: {
|
@@ -79,12 +86,14 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
79
86
|
}
|
80
87
|
},
|
81
88
|
api_endpoints: {
|
89
|
+
client_side_validation: true,
|
82
90
|
required: false,
|
83
91
|
read_only: true,
|
84
92
|
serialized_name: 'properties.apiEndpoints',
|
85
93
|
type: {
|
86
94
|
name: 'Sequence',
|
87
95
|
element: {
|
96
|
+
client_side_validation: true,
|
88
97
|
required: false,
|
89
98
|
serialized_name: 'ApiEndpointElementType',
|
90
99
|
type: {
|
@@ -95,11 +104,13 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
95
104
|
}
|
96
105
|
},
|
97
106
|
storage_accounts: {
|
107
|
+
client_side_validation: true,
|
98
108
|
required: false,
|
99
109
|
serialized_name: 'properties.storageAccounts',
|
100
110
|
type: {
|
101
111
|
name: 'Sequence',
|
102
112
|
element: {
|
113
|
+
client_side_validation: true,
|
103
114
|
required: false,
|
104
115
|
serialized_name: 'StorageAccountElementType',
|
105
116
|
type: {
|
@@ -23,6 +23,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
23
23
|
#
|
24
24
|
def self.mapper()
|
25
25
|
{
|
26
|
+
client_side_validation: true,
|
26
27
|
required: false,
|
27
28
|
serialized_name: 'MediaServiceCollection',
|
28
29
|
type: {
|
@@ -30,11 +31,13 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
30
31
|
class_name: 'MediaServiceCollection',
|
31
32
|
model_properties: {
|
32
33
|
value: {
|
34
|
+
client_side_validation: true,
|
33
35
|
required: false,
|
34
36
|
serialized_name: 'value',
|
35
37
|
type: {
|
36
38
|
name: 'Sequence',
|
37
39
|
element: {
|
40
|
+
client_side_validation: true,
|
38
41
|
required: false,
|
39
42
|
serialized_name: 'MediaServiceElementType',
|
40
43
|
type: {
|
@@ -25,6 +25,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
|
+
client_side_validation: true,
|
28
29
|
required: false,
|
29
30
|
serialized_name: 'Operation',
|
30
31
|
type: {
|
@@ -32,6 +33,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
32
33
|
class_name: 'Operation',
|
33
34
|
model_properties: {
|
34
35
|
name: {
|
36
|
+
client_side_validation: true,
|
35
37
|
required: false,
|
36
38
|
read_only: true,
|
37
39
|
serialized_name: 'name',
|
@@ -40,6 +42,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
40
42
|
}
|
41
43
|
},
|
42
44
|
display: {
|
45
|
+
client_side_validation: true,
|
43
46
|
required: false,
|
44
47
|
serialized_name: 'display',
|
45
48
|
type: {
|
@@ -29,6 +29,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
29
29
|
#
|
30
30
|
def self.mapper()
|
31
31
|
{
|
32
|
+
client_side_validation: true,
|
32
33
|
required: false,
|
33
34
|
serialized_name: 'Operation_display',
|
34
35
|
type: {
|
@@ -36,6 +37,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
36
37
|
class_name: 'OperationDisplay',
|
37
38
|
model_properties: {
|
38
39
|
provider: {
|
40
|
+
client_side_validation: true,
|
39
41
|
required: false,
|
40
42
|
read_only: true,
|
41
43
|
serialized_name: 'provider',
|
@@ -44,6 +46,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
44
46
|
}
|
45
47
|
},
|
46
48
|
resource: {
|
49
|
+
client_side_validation: true,
|
47
50
|
required: false,
|
48
51
|
read_only: true,
|
49
52
|
serialized_name: 'resource',
|
@@ -52,6 +55,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
52
55
|
}
|
53
56
|
},
|
54
57
|
operation: {
|
58
|
+
client_side_validation: true,
|
55
59
|
required: false,
|
56
60
|
read_only: true,
|
57
61
|
serialized_name: 'operation',
|
@@ -27,6 +27,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
27
27
|
#
|
28
28
|
def self.mapper()
|
29
29
|
{
|
30
|
+
client_side_validation: true,
|
30
31
|
required: false,
|
31
32
|
serialized_name: 'OperationListResult',
|
32
33
|
type: {
|
@@ -34,12 +35,14 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
34
35
|
class_name: 'OperationListResult',
|
35
36
|
model_properties: {
|
36
37
|
value: {
|
38
|
+
client_side_validation: true,
|
37
39
|
required: false,
|
38
40
|
read_only: true,
|
39
41
|
serialized_name: 'value',
|
40
42
|
type: {
|
41
43
|
name: 'Sequence',
|
42
44
|
element: {
|
45
|
+
client_side_validation: true,
|
43
46
|
required: false,
|
44
47
|
serialized_name: 'OperationElementType',
|
45
48
|
type: {
|
@@ -50,6 +53,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
50
53
|
}
|
51
54
|
},
|
52
55
|
next_link: {
|
56
|
+
client_side_validation: true,
|
53
57
|
required: false,
|
54
58
|
read_only: true,
|
55
59
|
serialized_name: 'nextLink',
|
@@ -24,6 +24,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
24
24
|
#
|
25
25
|
def self.mapper()
|
26
26
|
{
|
27
|
+
client_side_validation: true,
|
27
28
|
required: false,
|
28
29
|
serialized_name: 'RegenerateKeyInput',
|
29
30
|
type: {
|
@@ -31,6 +32,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
31
32
|
class_name: 'RegenerateKeyInput',
|
32
33
|
model_properties: {
|
33
34
|
key_type: {
|
35
|
+
client_side_validation: true,
|
34
36
|
required: true,
|
35
37
|
serialized_name: 'keyType',
|
36
38
|
type: {
|
@@ -22,6 +22,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
22
22
|
#
|
23
23
|
def self.mapper()
|
24
24
|
{
|
25
|
+
client_side_validation: true,
|
25
26
|
required: false,
|
26
27
|
serialized_name: 'RegenerateKeyOutput',
|
27
28
|
type: {
|
@@ -29,6 +30,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
29
30
|
class_name: 'RegenerateKeyOutput',
|
30
31
|
model_properties: {
|
31
32
|
key: {
|
33
|
+
client_side_validation: true,
|
32
34
|
required: false,
|
33
35
|
serialized_name: 'key',
|
34
36
|
type: {
|
@@ -37,6 +37,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
37
37
|
#
|
38
38
|
def self.mapper()
|
39
39
|
{
|
40
|
+
client_side_validation: true,
|
40
41
|
required: false,
|
41
42
|
serialized_name: 'Resource',
|
42
43
|
type: {
|
@@ -44,6 +45,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
44
45
|
class_name: 'Resource',
|
45
46
|
model_properties: {
|
46
47
|
id: {
|
48
|
+
client_side_validation: true,
|
47
49
|
required: false,
|
48
50
|
read_only: true,
|
49
51
|
serialized_name: 'id',
|
@@ -52,6 +54,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
52
54
|
}
|
53
55
|
},
|
54
56
|
name: {
|
57
|
+
client_side_validation: true,
|
55
58
|
required: false,
|
56
59
|
read_only: true,
|
57
60
|
serialized_name: 'name',
|
@@ -60,6 +63,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
60
63
|
}
|
61
64
|
},
|
62
65
|
type: {
|
66
|
+
client_side_validation: true,
|
63
67
|
required: false,
|
64
68
|
read_only: true,
|
65
69
|
serialized_name: 'type',
|
@@ -68,6 +72,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
68
72
|
}
|
69
73
|
},
|
70
74
|
location: {
|
75
|
+
client_side_validation: true,
|
71
76
|
required: false,
|
72
77
|
serialized_name: 'location',
|
73
78
|
type: {
|
@@ -75,11 +80,13 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
75
80
|
}
|
76
81
|
},
|
77
82
|
tags: {
|
83
|
+
client_side_validation: true,
|
78
84
|
required: false,
|
79
85
|
serialized_name: 'tags',
|
80
86
|
type: {
|
81
87
|
name: 'Dictionary',
|
82
88
|
value: {
|
89
|
+
client_side_validation: true,
|
83
90
|
required: false,
|
84
91
|
serialized_name: 'StringElementType',
|
85
92
|
type: {
|
@@ -34,6 +34,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
34
34
|
#
|
35
35
|
def self.mapper()
|
36
36
|
{
|
37
|
+
client_side_validation: true,
|
37
38
|
required: false,
|
38
39
|
serialized_name: 'ServiceKeys',
|
39
40
|
type: {
|
@@ -41,6 +42,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
41
42
|
class_name: 'ServiceKeys',
|
42
43
|
model_properties: {
|
43
44
|
primary_auth_endpoint: {
|
45
|
+
client_side_validation: true,
|
44
46
|
required: false,
|
45
47
|
serialized_name: 'primaryAuthEndpoint',
|
46
48
|
type: {
|
@@ -48,6 +50,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
48
50
|
}
|
49
51
|
},
|
50
52
|
secondary_auth_endpoint: {
|
53
|
+
client_side_validation: true,
|
51
54
|
required: false,
|
52
55
|
serialized_name: 'secondaryAuthEndpoint',
|
53
56
|
type: {
|
@@ -55,6 +58,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
55
58
|
}
|
56
59
|
},
|
57
60
|
primary_key: {
|
61
|
+
client_side_validation: true,
|
58
62
|
required: false,
|
59
63
|
serialized_name: 'primaryKey',
|
60
64
|
type: {
|
@@ -62,6 +66,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
62
66
|
}
|
63
67
|
},
|
64
68
|
secondary_key: {
|
69
|
+
client_side_validation: true,
|
65
70
|
required: false,
|
66
71
|
serialized_name: 'secondaryKey',
|
67
72
|
type: {
|
@@ -69,6 +74,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
69
74
|
}
|
70
75
|
},
|
71
76
|
scope: {
|
77
|
+
client_side_validation: true,
|
72
78
|
required: false,
|
73
79
|
serialized_name: 'scope',
|
74
80
|
type: {
|
@@ -31,6 +31,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
31
31
|
#
|
32
32
|
def self.mapper()
|
33
33
|
{
|
34
|
+
client_side_validation: true,
|
34
35
|
required: false,
|
35
36
|
serialized_name: 'StorageAccount',
|
36
37
|
type: {
|
@@ -38,6 +39,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
38
39
|
class_name: 'StorageAccount',
|
39
40
|
model_properties: {
|
40
41
|
id: {
|
42
|
+
client_side_validation: true,
|
41
43
|
required: true,
|
42
44
|
serialized_name: 'id',
|
43
45
|
type: {
|
@@ -45,6 +47,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
45
47
|
}
|
46
48
|
},
|
47
49
|
is_primary: {
|
50
|
+
client_side_validation: true,
|
48
51
|
required: true,
|
49
52
|
serialized_name: 'isPrimary',
|
50
53
|
type: {
|
@@ -22,6 +22,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
22
22
|
#
|
23
23
|
def self.mapper()
|
24
24
|
{
|
25
|
+
client_side_validation: true,
|
25
26
|
required: false,
|
26
27
|
serialized_name: 'SyncStorageKeysInput',
|
27
28
|
type: {
|
@@ -29,6 +30,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
29
30
|
class_name: 'SyncStorageKeysInput',
|
30
31
|
model_properties: {
|
31
32
|
id: {
|
33
|
+
client_side_validation: true,
|
32
34
|
required: true,
|
33
35
|
serialized_name: 'id',
|
34
36
|
type: {
|
@@ -4,15 +4,13 @@
|
|
4
4
|
|
5
5
|
require 'profiles/latest/mediaservices_module_definition'
|
6
6
|
require 'profiles/latest/modules/mediaservices_profile_module'
|
7
|
-
require 'profiles/common/configurable'
|
8
|
-
require 'profiles/common/default'
|
9
7
|
|
10
8
|
module Azure::MediaServices::Profiles::Latest::Mgmt
|
11
9
|
#
|
12
10
|
# Client class for the Latest profile SDK.
|
13
11
|
#
|
14
12
|
class Client < MediaServicesClass
|
15
|
-
include
|
13
|
+
include MsRestAzure::Common::Configurable
|
16
14
|
|
17
15
|
|
18
16
|
def initialize(options = {})
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_media_services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.10.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.10.0
|
83
83
|
description: Microsoft Azure Media Services Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -110,11 +110,8 @@ files:
|
|
110
110
|
- lib/2015-10-01/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb
|
111
111
|
- lib/2015-10-01/generated/azure_mgmt_media_services/module_definition.rb
|
112
112
|
- lib/2015-10-01/generated/azure_mgmt_media_services/operations.rb
|
113
|
-
- lib/2015-10-01/generated/azure_mgmt_media_services/version.rb
|
114
113
|
- lib/azure_mgmt_media_services.rb
|
115
114
|
- lib/module_definition.rb
|
116
|
-
- lib/profiles/common/configurable.rb
|
117
|
-
- lib/profiles/common/default.rb
|
118
115
|
- lib/profiles/latest/mediaservices_latest_profile_client.rb
|
119
116
|
- lib/profiles/latest/mediaservices_module_definition.rb
|
120
117
|
- lib/profiles/latest/modules/mediaservices_profile_module.rb
|
@@ -122,7 +119,12 @@ files:
|
|
122
119
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
123
120
|
licenses:
|
124
121
|
- MIT
|
125
|
-
metadata:
|
122
|
+
metadata:
|
123
|
+
bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
|
124
|
+
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
|
125
|
+
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
126
|
+
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
127
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_media_services
|
126
128
|
post_install_message:
|
127
129
|
rdoc_options: []
|
128
130
|
require_paths:
|
@@ -1,86 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
-
|
5
|
-
module Azure::Common
|
6
|
-
# The Azure::Common::Configurable module provides basic configuration for Azure activities.
|
7
|
-
module Configurable
|
8
|
-
# @return [String] Azure tenant id (also known as domain).
|
9
|
-
attr_accessor :tenant_id
|
10
|
-
|
11
|
-
# @return [String] Azure client id.
|
12
|
-
attr_accessor :client_id
|
13
|
-
|
14
|
-
# @return [String] Azure secret key.
|
15
|
-
attr_accessor :client_secret
|
16
|
-
|
17
|
-
# @return [String] Azure subscription id.
|
18
|
-
attr_accessor :subscription_id
|
19
|
-
|
20
|
-
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
|
21
|
-
attr_accessor :active_directory_settings
|
22
|
-
|
23
|
-
# @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
24
|
-
attr_accessor :credentials
|
25
|
-
|
26
|
-
class << self
|
27
|
-
#
|
28
|
-
# List of configurable keys for {Azure::Common::Client}.
|
29
|
-
# @return [Array] of option keys.
|
30
|
-
#
|
31
|
-
def keys
|
32
|
-
@keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
#
|
37
|
-
# Set configuration options using a block.
|
38
|
-
#
|
39
|
-
def configure
|
40
|
-
yield self
|
41
|
-
end
|
42
|
-
|
43
|
-
#
|
44
|
-
# Resets the configurable options to provided options or defaults.
|
45
|
-
# This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
|
46
|
-
#
|
47
|
-
def reset!(options = {})
|
48
|
-
Azure::Common::Configurable.keys.each do |key|
|
49
|
-
default_value = Azure::Common::Default.options[key]
|
50
|
-
instance_variable_set(:"@#{key}", options.fetch(key, default_value))
|
51
|
-
end
|
52
|
-
|
53
|
-
fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
|
54
|
-
fail ArgumentError, 'client_id is nil' if self.client_id.nil?
|
55
|
-
fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
|
56
|
-
fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
|
57
|
-
fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
|
58
|
-
|
59
|
-
default_value = MsRest::TokenCredentials.new(
|
60
|
-
MsRestAzure::ApplicationTokenProvider.new(
|
61
|
-
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
62
|
-
|
63
|
-
instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
|
64
|
-
|
65
|
-
self
|
66
|
-
end
|
67
|
-
|
68
|
-
def config
|
69
|
-
self
|
70
|
-
end
|
71
|
-
|
72
|
-
private
|
73
|
-
|
74
|
-
#
|
75
|
-
# configures configurable options to default values
|
76
|
-
#
|
77
|
-
def setup_default_options
|
78
|
-
opts = {}
|
79
|
-
Azure::Common::Configurable.keys.map do |key|
|
80
|
-
opts[key] = Azure::Common::Default.options[key]
|
81
|
-
end
|
82
|
-
|
83
|
-
opts
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
-
|
5
|
-
module Azure::Common
|
6
|
-
module Default
|
7
|
-
class << self
|
8
|
-
#
|
9
|
-
# Default Azure Tenant Id.
|
10
|
-
# @return [String] Azure Tenant Id.
|
11
|
-
#
|
12
|
-
def tenant_id
|
13
|
-
ENV['AZURE_TENANT_ID']
|
14
|
-
end
|
15
|
-
|
16
|
-
#
|
17
|
-
# Default Azure Client Id.
|
18
|
-
# @return [String] Azure Client Id.
|
19
|
-
#
|
20
|
-
def client_id
|
21
|
-
ENV['AZURE_CLIENT_ID']
|
22
|
-
end
|
23
|
-
|
24
|
-
#
|
25
|
-
# Default Azure Client Secret.
|
26
|
-
# @return [String] Azure Client Secret.
|
27
|
-
#
|
28
|
-
def client_secret
|
29
|
-
ENV['AZURE_CLIENT_SECRET']
|
30
|
-
end
|
31
|
-
|
32
|
-
#
|
33
|
-
# Default Azure Subscription Id.
|
34
|
-
# @return [String] Azure Subscription Id.
|
35
|
-
#
|
36
|
-
def subscription_id
|
37
|
-
ENV['AZURE_SUBSCRIPTION_ID']
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Default Azure Active Directory Service Settings.
|
42
|
-
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
|
43
|
-
#
|
44
|
-
def active_directory_settings
|
45
|
-
MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
|
46
|
-
end
|
47
|
-
|
48
|
-
#
|
49
|
-
# Configuration options.
|
50
|
-
# @return [Hash] Configuration options.
|
51
|
-
#
|
52
|
-
def options
|
53
|
-
Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|