azure_mgmt_media_services 0.4.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.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_media_services.gemspec +34 -0
- data/lib/azure_mgmt_media_services.rb +5 -0
- data/lib/generated/azure_mgmt_media_services.rb +42 -0
- data/lib/generated/azure_mgmt_media_services/media_service_operations.rb +966 -0
- data/lib/generated/azure_mgmt_media_services/media_services_management_client.rb +67 -0
- data/lib/generated/azure_mgmt_media_services/models/api_endpoint.rb +54 -0
- data/lib/generated/azure_mgmt_media_services/models/api_error.rb +54 -0
- data/lib/generated/azure_mgmt_media_services/models/check_name_availability_input.rb +60 -0
- data/lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb +68 -0
- data/lib/generated/azure_mgmt_media_services/models/entity_name_unavailability_reason.rb +17 -0
- data/lib/generated/azure_mgmt_media_services/models/key_type.rb +16 -0
- data/lib/generated/azure_mgmt_media_services/models/media_service.rb +116 -0
- data/lib/generated/azure_mgmt_media_services/models/media_service_collection.rb +52 -0
- data/lib/generated/azure_mgmt_media_services/models/regenerate_key_input.rb +47 -0
- data/lib/generated/azure_mgmt_media_services/models/regenerate_key_output.rb +44 -0
- data/lib/generated/azure_mgmt_media_services/models/service_keys.rb +84 -0
- data/lib/generated/azure_mgmt_media_services/models/storage_account.rb +55 -0
- data/lib/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb +44 -0
- data/lib/generated/azure_mgmt_media_services/models/tracked_resource.rb +85 -0
- data/lib/generated/azure_mgmt_media_services/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_media_services/version.rb +8 -0
- metadata +138 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::MediaServices
|
|
7
|
+
#
|
|
8
|
+
# A service client - single point of access to the REST API.
|
|
9
|
+
#
|
|
10
|
+
class MediaServicesManagementClient < MsRestAzure::AzureServiceClient
|
|
11
|
+
include MsRest::Serialization
|
|
12
|
+
include MsRestAzure
|
|
13
|
+
|
|
14
|
+
# @return [String] the base URI of the service.
|
|
15
|
+
attr_accessor :base_url
|
|
16
|
+
|
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
|
18
|
+
attr_reader :credentials
|
|
19
|
+
|
|
20
|
+
# @return [String] Azure subscription id.
|
|
21
|
+
attr_accessor :subscription_id
|
|
22
|
+
|
|
23
|
+
# @return [String] Version of the API to be used with the client request.
|
|
24
|
+
# Current version is 2015-10-01
|
|
25
|
+
attr_reader :api_version
|
|
26
|
+
|
|
27
|
+
# @return [String] Gets or sets the preferred language for the response.
|
|
28
|
+
attr_accessor :accept_language
|
|
29
|
+
|
|
30
|
+
# @return [Integer] Gets or sets the retry timeout in seconds for Long
|
|
31
|
+
# Running Operations. Default value is 30.
|
|
32
|
+
attr_accessor :long_running_operation_retry_timeout
|
|
33
|
+
|
|
34
|
+
# @return [Boolean] When set to true a unique x-ms-client-request-id value
|
|
35
|
+
# is generated and included in each request. Default is true.
|
|
36
|
+
attr_accessor :generate_client_request_id
|
|
37
|
+
|
|
38
|
+
# @return Subscription credentials which uniquely identify client
|
|
39
|
+
# subscription.
|
|
40
|
+
attr_accessor :credentials
|
|
41
|
+
|
|
42
|
+
# @return [MediaServiceOperations] media_service_operations
|
|
43
|
+
attr_reader :media_service_operations
|
|
44
|
+
|
|
45
|
+
#
|
|
46
|
+
# Creates initializes a new instance of the MediaServicesManagementClient class.
|
|
47
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
|
48
|
+
# @param base_url [String] the base URI of the service.
|
|
49
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
|
50
|
+
#
|
|
51
|
+
def initialize(credentials, base_url = nil, options = nil)
|
|
52
|
+
super(credentials, options)
|
|
53
|
+
@base_url = base_url || 'https://management.azure.com'
|
|
54
|
+
|
|
55
|
+
fail ArgumentError, 'credentials is nil' if credentials.nil?
|
|
56
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
|
57
|
+
@credentials = credentials
|
|
58
|
+
|
|
59
|
+
@media_service_operations = MediaServiceOperations.new(self)
|
|
60
|
+
@api_version = '2015-10-01'
|
|
61
|
+
@accept_language = 'en-US'
|
|
62
|
+
@long_running_operation_retry_timeout = 30
|
|
63
|
+
@generate_client_request_id = true
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::MediaServices
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The properties for a Media Services REST API endpoint.
|
|
10
|
+
#
|
|
11
|
+
class ApiEndpoint
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] The Media Services REST endpoint.
|
|
16
|
+
attr_accessor :endpoint
|
|
17
|
+
|
|
18
|
+
# @return [String] The version of Media Services REST API.
|
|
19
|
+
attr_accessor :major_version
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Mapper for ApiEndpoint class as Ruby Hash.
|
|
24
|
+
# This will be used for serialization/deserialization.
|
|
25
|
+
#
|
|
26
|
+
def self.mapper()
|
|
27
|
+
{
|
|
28
|
+
required: false,
|
|
29
|
+
serialized_name: 'ApiEndpoint',
|
|
30
|
+
type: {
|
|
31
|
+
name: 'Composite',
|
|
32
|
+
class_name: 'ApiEndpoint',
|
|
33
|
+
model_properties: {
|
|
34
|
+
endpoint: {
|
|
35
|
+
required: false,
|
|
36
|
+
serialized_name: 'endpoint',
|
|
37
|
+
type: {
|
|
38
|
+
name: 'String'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
major_version: {
|
|
42
|
+
required: false,
|
|
43
|
+
serialized_name: 'majorVersion',
|
|
44
|
+
type: {
|
|
45
|
+
name: 'String'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::MediaServices
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The error returned from a failed Media Services REST API call.
|
|
10
|
+
#
|
|
11
|
+
class ApiError
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Error code.
|
|
16
|
+
attr_accessor :code
|
|
17
|
+
|
|
18
|
+
# @return [String] Error message.
|
|
19
|
+
attr_accessor :message
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Mapper for ApiError class as Ruby Hash.
|
|
24
|
+
# This will be used for serialization/deserialization.
|
|
25
|
+
#
|
|
26
|
+
def self.mapper()
|
|
27
|
+
{
|
|
28
|
+
required: false,
|
|
29
|
+
serialized_name: 'ApiError',
|
|
30
|
+
type: {
|
|
31
|
+
name: 'Composite',
|
|
32
|
+
class_name: 'ApiError',
|
|
33
|
+
model_properties: {
|
|
34
|
+
code: {
|
|
35
|
+
required: false,
|
|
36
|
+
serialized_name: 'code',
|
|
37
|
+
type: {
|
|
38
|
+
name: 'String'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
message: {
|
|
42
|
+
required: false,
|
|
43
|
+
serialized_name: 'message',
|
|
44
|
+
type: {
|
|
45
|
+
name: 'String'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::MediaServices
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The request body for CheckNameAvailability API.
|
|
10
|
+
#
|
|
11
|
+
class CheckNameAvailabilityInput
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] The name of the resource. A name must be globally
|
|
16
|
+
# unique.
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
|
|
19
|
+
# @return [String] Specifies the type of the resource.
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Mapper for CheckNameAvailabilityInput class as Ruby Hash.
|
|
25
|
+
# This will be used for serialization/deserialization.
|
|
26
|
+
#
|
|
27
|
+
def self.mapper()
|
|
28
|
+
{
|
|
29
|
+
required: false,
|
|
30
|
+
serialized_name: 'CheckNameAvailabilityInput',
|
|
31
|
+
type: {
|
|
32
|
+
name: 'Composite',
|
|
33
|
+
class_name: 'CheckNameAvailabilityInput',
|
|
34
|
+
model_properties: {
|
|
35
|
+
name: {
|
|
36
|
+
required: false,
|
|
37
|
+
serialized_name: 'name',
|
|
38
|
+
constraints: {
|
|
39
|
+
MaxLength: 24,
|
|
40
|
+
MinLength: 3,
|
|
41
|
+
Pattern: '^[a-z0-9]'
|
|
42
|
+
},
|
|
43
|
+
type: {
|
|
44
|
+
name: 'String'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
type: {
|
|
48
|
+
required: false,
|
|
49
|
+
serialized_name: 'type',
|
|
50
|
+
type: {
|
|
51
|
+
name: 'String'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::MediaServices
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The response body for CheckNameAvailability API.
|
|
10
|
+
#
|
|
11
|
+
class CheckNameAvailabilityOutput
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Boolean] Specifies if the name is available.
|
|
16
|
+
attr_accessor :name_available
|
|
17
|
+
|
|
18
|
+
# @return [EntityNameUnavailabilityReason] Specifies the reason if the
|
|
19
|
+
# name is not available. Possible values include: 'None', 'Invalid',
|
|
20
|
+
# 'AlreadyExists'
|
|
21
|
+
attr_accessor :reason
|
|
22
|
+
|
|
23
|
+
# @return [String] Specifies the detailed reason if the name is not
|
|
24
|
+
# available.
|
|
25
|
+
attr_accessor :message
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Mapper for CheckNameAvailabilityOutput class as Ruby Hash.
|
|
30
|
+
# This will be used for serialization/deserialization.
|
|
31
|
+
#
|
|
32
|
+
def self.mapper()
|
|
33
|
+
{
|
|
34
|
+
required: false,
|
|
35
|
+
serialized_name: 'CheckNameAvailabilityOutput',
|
|
36
|
+
type: {
|
|
37
|
+
name: 'Composite',
|
|
38
|
+
class_name: 'CheckNameAvailabilityOutput',
|
|
39
|
+
model_properties: {
|
|
40
|
+
name_available: {
|
|
41
|
+
required: false,
|
|
42
|
+
serialized_name: 'nameAvailable',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Boolean'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
reason: {
|
|
48
|
+
required: false,
|
|
49
|
+
serialized_name: 'reason',
|
|
50
|
+
type: {
|
|
51
|
+
name: 'Enum',
|
|
52
|
+
module: 'EntityNameUnavailabilityReason'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
message: {
|
|
56
|
+
required: false,
|
|
57
|
+
serialized_name: 'message',
|
|
58
|
+
type: {
|
|
59
|
+
name: 'String'
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::MediaServices
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Defines values for EntityNameUnavailabilityReason
|
|
10
|
+
#
|
|
11
|
+
module EntityNameUnavailabilityReason
|
|
12
|
+
None = "None"
|
|
13
|
+
Invalid = "Invalid"
|
|
14
|
+
AlreadyExists = "AlreadyExists"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::MediaServices
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Defines values for KeyType
|
|
10
|
+
#
|
|
11
|
+
module KeyType
|
|
12
|
+
Primary = "Primary"
|
|
13
|
+
Secondary = "Secondary"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::MediaServices
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The properties of a Media Service resource.
|
|
10
|
+
#
|
|
11
|
+
class MediaService < TrackedResource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Array<ApiEndpoint>] The Media Services REST API endpoints for
|
|
16
|
+
# this resource.
|
|
17
|
+
attr_accessor :api_endpoints
|
|
18
|
+
|
|
19
|
+
# @return [Array<StorageAccount>] The storage accounts for this resource.
|
|
20
|
+
attr_accessor :storage_accounts
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Mapper for MediaService class as Ruby Hash.
|
|
25
|
+
# This will be used for serialization/deserialization.
|
|
26
|
+
#
|
|
27
|
+
def self.mapper()
|
|
28
|
+
{
|
|
29
|
+
required: false,
|
|
30
|
+
serialized_name: 'MediaService',
|
|
31
|
+
type: {
|
|
32
|
+
name: 'Composite',
|
|
33
|
+
class_name: 'MediaService',
|
|
34
|
+
model_properties: {
|
|
35
|
+
id: {
|
|
36
|
+
required: false,
|
|
37
|
+
read_only: true,
|
|
38
|
+
serialized_name: 'id',
|
|
39
|
+
type: {
|
|
40
|
+
name: 'String'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
name: {
|
|
44
|
+
required: false,
|
|
45
|
+
read_only: true,
|
|
46
|
+
serialized_name: 'name',
|
|
47
|
+
type: {
|
|
48
|
+
name: 'String'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
type: {
|
|
52
|
+
required: false,
|
|
53
|
+
read_only: true,
|
|
54
|
+
serialized_name: 'type',
|
|
55
|
+
type: {
|
|
56
|
+
name: 'String'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
location: {
|
|
60
|
+
required: true,
|
|
61
|
+
serialized_name: 'location',
|
|
62
|
+
type: {
|
|
63
|
+
name: 'String'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
tags: {
|
|
67
|
+
required: true,
|
|
68
|
+
serialized_name: 'tags',
|
|
69
|
+
type: {
|
|
70
|
+
name: 'Dictionary',
|
|
71
|
+
value: {
|
|
72
|
+
required: false,
|
|
73
|
+
serialized_name: 'StringElementType',
|
|
74
|
+
type: {
|
|
75
|
+
name: 'String'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
api_endpoints: {
|
|
81
|
+
required: false,
|
|
82
|
+
serialized_name: 'properties.apiEndpoints',
|
|
83
|
+
type: {
|
|
84
|
+
name: 'Sequence',
|
|
85
|
+
element: {
|
|
86
|
+
required: false,
|
|
87
|
+
serialized_name: 'ApiEndpointElementType',
|
|
88
|
+
type: {
|
|
89
|
+
name: 'Composite',
|
|
90
|
+
class_name: 'ApiEndpoint'
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
storage_accounts: {
|
|
96
|
+
required: false,
|
|
97
|
+
serialized_name: 'properties.storageAccounts',
|
|
98
|
+
type: {
|
|
99
|
+
name: 'Sequence',
|
|
100
|
+
element: {
|
|
101
|
+
required: false,
|
|
102
|
+
serialized_name: 'StorageAccountElementType',
|
|
103
|
+
type: {
|
|
104
|
+
name: 'Composite',
|
|
105
|
+
class_name: 'StorageAccount'
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|