class Azure::Web::Mgmt::V2020_09_01::Models::StaticSitePatchResource

ARM resource for a static site when patching

Attributes

branch[RW]

@return [String] The target branch in the repository.

build_properties[RW]

@return [StaticSiteBuildProperties] Build properties to configure on the repository.

custom_domains[RW]

@return [Array<String>] The custom domains associated with this static site.

default_hostname[RW]

@return [String] The default autogenerated hostname for the static site.

repository_token[RW]

@return [String] A user's github repository token. This is used to setup the Github Actions workflow file and API secrets.

repository_url[RW]

@return [String] URL for the repository of the static site.

Private Class Methods

mapper() click to toggle source

Mapper for StaticSitePatchResource class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2020-09-01/generated/azure_mgmt_web/models/static_site_patch_resource.rb, line 42
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'StaticSitePatchResource',
    type: {
      name: 'Composite',
      class_name: 'StaticSitePatchResource',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        system_data: {
          client_side_validation: true,
          required: false,
          serialized_name: 'systemData',
          type: {
            name: 'Composite',
            class_name: 'SystemData'
          }
        },
        default_hostname: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.defaultHostname',
          type: {
            name: 'String'
          }
        },
        repository_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.repositoryUrl',
          type: {
            name: 'String'
          }
        },
        branch: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.branch',
          type: {
            name: 'String'
          }
        },
        custom_domains: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.customDomains',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        repository_token: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.repositoryToken',
          type: {
            name: 'String'
          }
        },
        build_properties: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.buildProperties',
          type: {
            name: 'Composite',
            class_name: 'StaticSiteBuildProperties'
          }
        }
      }
    }
  }
end