Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,24 @@
require 'ms_rest_azure'

module Azure::ARM::MediaServices
autoload :Operations, 'generated/azure_mgmt_media_services/operations.rb'
autoload :MediaServiceOperations, 'generated/azure_mgmt_media_services/media_service_operations.rb'
autoload :MediaServicesManagementClient, 'generated/azure_mgmt_media_services/media_services_management_client.rb'

module Models
autoload :MediaServiceCollection, 'generated/azure_mgmt_media_services/models/media_service_collection.rb'
autoload :ApiEndpoint, 'generated/azure_mgmt_media_services/models/api_endpoint.rb'
autoload :RegenerateKeyInput, 'generated/azure_mgmt_media_services/models/regenerate_key_input.rb'
autoload :CheckNameAvailabilityInput, 'generated/azure_mgmt_media_services/models/check_name_availability_input.rb'
autoload :RegenerateKeyOutput, 'generated/azure_mgmt_media_services/models/regenerate_key_output.rb'
autoload :StorageAccount, 'generated/azure_mgmt_media_services/models/storage_account.rb'
autoload :ApiError, 'generated/azure_mgmt_media_services/models/api_error.rb'
autoload :ServiceKeys, 'generated/azure_mgmt_media_services/models/service_keys.rb'
autoload :CheckNameAvailabilityOutput, 'generated/azure_mgmt_media_services/models/check_name_availability_output.rb'
autoload :ServiceKeys, 'generated/azure_mgmt_media_services/models/service_keys.rb'
autoload :MediaServiceCollection, 'generated/azure_mgmt_media_services/models/media_service_collection.rb'
autoload :SyncStorageKeysInput, 'generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb'
autoload :CheckNameAvailabilityInput, 'generated/azure_mgmt_media_services/models/check_name_availability_input.rb'
autoload :OperationDisplay, 'generated/azure_mgmt_media_services/models/operation_display.rb'
autoload :ApiEndpoint, 'generated/azure_mgmt_media_services/models/api_endpoint.rb'
autoload :Operation, 'generated/azure_mgmt_media_services/models/operation.rb'
autoload :StorageAccount, 'generated/azure_mgmt_media_services/models/storage_account.rb'
autoload :OperationListResult, 'generated/azure_mgmt_media_services/models/operation_list_result.rb'
autoload :MediaService, 'generated/azure_mgmt_media_services/models/media_service.rb'
autoload :ResourceType, 'generated/azure_mgmt_media_services/models/resource_type.rb'
autoload :EntityNameUnavailabilityReason, 'generated/azure_mgmt_media_services/models/entity_name_unavailability_reason.rb'
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MediaServicesManagementClient < MsRestAzure::AzureServiceClient
attr_accessor :subscription_id

# @return [String] Version of the API to be used with the client request.
# Current version is 2015-10-01
# The current version is 2015-10-01.
attr_reader :api_version

# @return [String] Gets or sets the preferred language for the response.
Expand All @@ -36,6 +36,9 @@ class MediaServicesManagementClient < MsRestAzure::AzureServiceClient
# is generated and included in each request. Default is true.
attr_accessor :generate_client_request_id

# @return [Operations] operations
attr_reader :operations

# @return [MediaServiceOperations] media_service_operations
attr_reader :media_service_operations

Expand All @@ -52,6 +55,7 @@ def initialize(credentials = nil, base_url = nil, options = nil)
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
@credentials = credentials

@operations = Operations.new(self)
@media_service_operations = MediaServiceOperations.new(self)
@api_version = '2015-10-01'
@accept_language = 'en-US'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def self.mapper()
constraints: {
MaxLength: 24,
MinLength: 3,
Pattern: '^[a-z0-9]'
Pattern: '^[a-z0-9]{3,24}$'
},
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ def self.mapper()
model_properties: {
name_available: {
required: false,
serialized_name: 'NameAvailable',
serialized_name: 'nameAvailable',
type: {
name: 'Boolean'
}
},
reason: {
required: false,
serialized_name: 'Reason',
serialized_name: 'reason',
type: {
name: 'Enum',
module: 'EntityNameUnavailabilityReason'
}
},
message: {
required: false,
serialized_name: 'Message',
serialized_name: 'message',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class MediaServiceCollection
include MsRestAzure

include MsRest::JSONable
# @return [Array<MediaService>]
# @return [Array<MediaService>] The collection of Media Service
# resources.
attr_accessor :value


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::MediaServices
module Models
#
# A Media Services REST API operation
#
class Operation

include MsRestAzure

include MsRest::JSONable
# @return [String] Operation name: {provider}/{resource}/{operation}
attr_accessor :name

# @return [OperationDisplay] The object that represents the operation.
attr_accessor :display


#
# Mapper for Operation class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
serialized_name: 'Operation',
type: {
name: 'Composite',
class_name: 'Operation',
model_properties: {
name: {
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
display: {
required: false,
serialized_name: 'display',
type: {
name: 'Composite',
class_name: 'OperationDisplay'
}
}
}
}
}
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::MediaServices
module Models
#
# The object that represents the operation.
#
class OperationDisplay

include MsRestAzure

include MsRest::JSONable
# @return [String] Service provider: Microsoft.Media
attr_accessor :provider

# @return [String] Resource on which the operation is performed: Invoice,
# etc.
attr_accessor :resource

# @return [String] Operation type: Read, write, delete, etc.
attr_accessor :operation


#
# Mapper for OperationDisplay class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
serialized_name: 'Operation_display',
type: {
name: 'Composite',
class_name: 'OperationDisplay',
model_properties: {
provider: {
required: false,
read_only: true,
serialized_name: 'provider',
type: {
name: 'String'
}
},
resource: {
required: false,
read_only: true,
serialized_name: 'resource',
type: {
name: 'String'
}
},
operation: {
required: false,
read_only: true,
serialized_name: 'operation',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::MediaServices
module Models
#
# Result of the request to list Media Services operations.
#
class OperationListResult

include MsRestAzure

include MsRest::JSONable
# @return [Array<Operation>] List of Media Services operations supported
# by the Microsoft.Media resource provider.
attr_accessor :value

# @return [String] URL to get the next set of operation list results if
# there are any.
attr_accessor :next_link


#
# Mapper for OperationListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
serialized_name: 'OperationListResult',
type: {
name: 'Composite',
class_name: 'OperationListResult',
model_properties: {
value: {
required: false,
read_only: true,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
required: false,
serialized_name: 'OperationElementType',
type: {
name: 'Composite',
class_name: 'Operation'
}
}
}
},
next_link: {
required: false,
read_only: true,
serialized_name: 'nextLink',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end
Loading