azure_mgmt_cdn 0.2.0 → 0.2.1
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
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 0a9dc06df264842f4b9ab173bf9438bc7ed82d76
         | 
| 4 | 
            +
              data.tar.gz: eb6d3bf5e5fdb1d69701f4083edf9c9e17553bf2
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 0035c26eece75c31f3d3564c1d9106e5dbf00e5d2994509d70b69199948d4c3535a30989693ccd307c6fd9d0d242a47559c012855b1cfa3de3446064e55a17b6
         | 
| 7 | 
            +
              data.tar.gz: 833e35bc0227cf41fa0007485bb06cfd9b515bfe14d53273f753d5e028bb1b8496892c559097a8f7ece56a26c21463500aa8f87b928a61180a386c73c4dedb91
         | 
| @@ -15,7 +15,8 @@ module Azure::ARM::CDN | |
| 15 15 | 
             
                  # @return [String] The resource name to validate
         | 
| 16 16 | 
             
                  attr_accessor :name
         | 
| 17 17 |  | 
| 18 | 
            -
                  # @return [ | 
| 18 | 
            +
                  # @return [ResourceType] The type of the resource whose name is to be
         | 
| 19 | 
            +
                  # validated. Possible values include: 'Microsoft.Cdn/Profiles/Endpoints'
         | 
| 19 20 | 
             
                  attr_accessor :type
         | 
| 20 21 |  | 
| 21 22 | 
             
                  #
         | 
| @@ -57,6 +58,10 @@ module Azure::ARM::CDN | |
| 57 58 | 
             
                    output_object.name = deserialized_property
         | 
| 58 59 |  | 
| 59 60 | 
             
                    deserialized_property = object['type']
         | 
| 61 | 
            +
                    if (!deserialized_property.nil? && !deserialized_property.empty?)
         | 
| 62 | 
            +
                      enum_is_valid = ResourceType.constants.any? { |e| ResourceType.const_get(e).to_s.downcase == deserialized_property.downcase }
         | 
| 63 | 
            +
                      warn 'Enum ResourceType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
         | 
| 64 | 
            +
                    end
         | 
| 60 65 | 
             
                    output_object.type = deserialized_property
         | 
| 61 66 |  | 
| 62 67 | 
             
                    output_object
         | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
         | 
| 3 | 
            +
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 | 
            +
            # regenerated.
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            module Azure::ARM::CDN
         | 
| 7 | 
            +
              module Models
         | 
| 8 | 
            +
                #
         | 
| 9 | 
            +
                # Defines values for ResourceType
         | 
| 10 | 
            +
                #
         | 
| 11 | 
            +
                module ResourceType
         | 
| 12 | 
            +
                  MicrosoftCdnProfilesEndpoints = "Microsoft.Cdn/Profiles/Endpoints"
         | 
| 13 | 
            +
                end
         | 
| 14 | 
            +
              end
         | 
| 15 | 
            +
            end
         | 
    
        data/lib/azure_mgmt_cdn.rb
    CHANGED
    
    | @@ -16,6 +16,7 @@ require 'faraday' | |
| 16 16 | 
             
            require 'faraday-cookie_jar'
         | 
| 17 17 | 
             
            require 'concurrent'
         | 
| 18 18 | 
             
            require 'ms_rest'
         | 
| 19 | 
            +
            require 'azure_mgmt_cdn/module_definition'
         | 
| 19 20 | 
             
            require 'ms_rest_azure'
         | 
| 20 21 |  | 
| 21 22 | 
             
            module Azure::ARM::CDN
         | 
| @@ -73,5 +74,6 @@ module Azure::ARM::CDN | |
| 73 74 | 
             
                autoload :EndpointResourceState,                              'azure_mgmt_cdn/models/endpoint_resource_state.rb'
         | 
| 74 75 | 
             
                autoload :OriginResourceState,                                'azure_mgmt_cdn/models/origin_resource_state.rb'
         | 
| 75 76 | 
             
                autoload :CustomDomainResourceState,                          'azure_mgmt_cdn/models/custom_domain_resource_state.rb'
         | 
| 77 | 
            +
                autoload :ResourceType,                                       'azure_mgmt_cdn/models/resource_type.rb'
         | 
| 76 78 | 
             
              end
         | 
| 77 79 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: azure_mgmt_cdn
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.2. | 
| 4 | 
            +
              version: 0.2.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Microsoft Corporation
         | 
| @@ -133,6 +133,7 @@ files: | |
| 133 133 | 
             
            - lib/azure_mgmt_cdn/models/provisioning_state.rb
         | 
| 134 134 | 
             
            - lib/azure_mgmt_cdn/models/purge_parameters.rb
         | 
| 135 135 | 
             
            - lib/azure_mgmt_cdn/models/query_string_caching_behavior.rb
         | 
| 136 | 
            +
            - lib/azure_mgmt_cdn/models/resource_type.rb
         | 
| 136 137 | 
             
            - lib/azure_mgmt_cdn/models/sku.rb
         | 
| 137 138 | 
             
            - lib/azure_mgmt_cdn/models/sku_name.rb
         | 
| 138 139 | 
             
            - lib/azure_mgmt_cdn/models/sso_uri.rb
         |