text: # coding=utf-8
  # *** WARNING: this file was generated by the Pulumi SDK Generator. ***
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
  
  import warnings
  import pulumi
  import pulumi.runtime
  from typing import Any, Mapping, Optional, Sequence, Union
  from ... import _utilities, _tables
  from . import outputs
  from ._enums import *
  from ._inputs import *
  
  __all__ = ['Snapshot']
  
  
  class Snapshot(pulumi.CustomResource):
      def __init__(__self__,
                   resource_name: str,
                   opts: Optional[pulumi.ResourceOptions] = None,
                   creation_data: Optional[pulumi.Input[pulumi.InputType['CreationDataArgs']]] = None,
                   disk_size_gb: Optional[pulumi.Input[int]] = None,
                   encryption_settings: Optional[pulumi.Input[pulumi.InputType['EncryptionSettingsArgs']]] = None,
                   location: Optional[pulumi.Input[str]] = None,
                   os_type: Optional[pulumi.Input['OperatingSystemTypes']] = None,
                   resource_group_name: Optional[pulumi.Input[str]] = None,
                   sku: Optional[pulumi.Input[pulumi.InputType['DiskSkuArgs']]] = None,
                   snapshot_name: Optional[pulumi.Input[str]] = None,
                   tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                   __props__=None,
                   __name__=None,
                   __opts__=None):
          """
          Snapshot resource.
  
          :param str resource_name: The name of the resource.
          :param pulumi.ResourceOptions opts: Options for the resource.
          :param pulumi.Input[pulumi.InputType['CreationDataArgs']] creation_data: Disk source information. CreationData information cannot be changed after the disk has been created.
          :param pulumi.Input[int] disk_size_gb: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
          :param pulumi.Input[pulumi.InputType['EncryptionSettingsArgs']] encryption_settings: Encryption settings for disk or snapshot
          :param pulumi.Input[str] location: Resource location
          :param pulumi.Input['OperatingSystemTypes'] os_type: The Operating System type.
          :param pulumi.Input[str] resource_group_name: The name of the resource group.
          :param pulumi.Input[pulumi.InputType['DiskSkuArgs']] sku: The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
          :param pulumi.Input[str] snapshot_name: The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
          :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags
          """
          if __name__ is not None:
              warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning)
              resource_name = __name__
          if __opts__ is not None:
              warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning)
              opts = __opts__
          if opts is None:
              opts = pulumi.ResourceOptions()
          if not isinstance(opts, pulumi.ResourceOptions):
              raise TypeError('Expected resource options to be a ResourceOptions instance')
          if opts.version is None:
              opts.version = _utilities.get_version()
          if opts.id is None:
              if __props__ is not None:
                  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
              __props__ = dict()
  
              if creation_data is None and not opts.urn:
                  raise TypeError("Missing required property 'creation_data'")
              __props__['creation_data'] = creation_data
              __props__['disk_size_gb'] = disk_size_gb
              __props__['encryption_settings'] = encryption_settings
              __props__['location'] = location
              __props__['os_type'] = os_type
              if resource_group_name is None and not opts.urn:
                  raise TypeError("Missing required property 'resource_group_name'")
              __props__['resource_group_name'] = resource_group_name
              __props__['sku'] = sku
              __props__['snapshot_name'] = snapshot_name
              __props__['tags'] = tags
              __props__['managed_by'] = None
              __props__['name'] = None
              __props__['provisioning_state'] = None
              __props__['time_created'] = None
              __props__['type'] = None
          alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:compute/v20170330:Snapshot"), pulumi.Alias(type_="azure-native:compute:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute:Snapshot"), pulumi.Alias(type_="azure-native:compute/latest:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/latest:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20160430preview:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20160430preview:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20180401:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20180401:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20180601:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20180601:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20180930:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20180930:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20190301:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20190301:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20190701:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20190701:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20191101:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20191101:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20200501:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20200501:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20200630:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20200630:Snapshot"), pulumi.Alias(type_="azure-native:compute/v20200930:Snapshot"), pulumi.Alias(type_="azure-nextgen:compute/v20200930:Snapshot")])
          opts = pulumi.ResourceOptions.merge(opts, alias_opts)
          super(Snapshot, __self__).__init__(
              'azure-native:compute/v20170330:Snapshot',
              resource_name,
              __props__,
              opts)
  
      @staticmethod
      def get(resource_name: str,
              id: pulumi.Input[str],
              opts: Optional[pulumi.ResourceOptions] = None) -> 'Snapshot':
          """
          Get an existing Snapshot resource's state with the given name, id, and optional extra
          properties used to qualify the lookup.
  
          :param str resource_name: The unique name of the resulting resource.
          :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
          :param pulumi.ResourceOptions opts: Options for the resource.
          """
          opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
  
          __props__ = dict()
  
          __props__["creation_data"] = None
          __props__["disk_size_gb"] = None
          __props__["encryption_settings"] = None
          __props__["location"] = None
          __props__["managed_by"] = None
          __props__["name"] = None
          __props__["os_type"] = None
          __props__["provisioning_state"] = None
          __props__["sku"] = None
          __props__["tags"] = None
          __props__["time_created"] = None
          __props__["type"] = None
          return Snapshot(resource_name, opts=opts, __props__=__props__)
  
      @property
      @pulumi.getter(name="creationData")
      def creation_data(self) -> pulumi.Output['outputs.CreationDataResponse']:
          """
          Disk source information. CreationData information cannot be changed after the disk has been created.
          """
          return pulumi.get(self, "creation_data")
  
      @property
      @pulumi.getter(name="diskSizeGB")
      def disk_size_gb(self) -> pulumi.Output[Optional[int]]:
          """
          If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
          """
          return pulumi.get(self, "disk_size_gb")
  
      @property
      @pulumi.getter(name="encryptionSettings")
      def encryption_settings(self) -> pulumi.Output[Optional['outputs.EncryptionSettingsResponse']]:
          """
          Encryption settings for disk or snapshot
          """
          return pulumi.get(self, "encryption_settings")
  
      @property
      @pulumi.getter
      def location(self) -> pulumi.Output[str]:
          """
          Resource location
          """
          return pulumi.get(self, "location")
  
      @property
      @pulumi.getter(name="managedBy")
      def managed_by(self) -> pulumi.Output[str]:
          """
          Unused. Always Null.
          """
          return pulumi.get(self, "managed_by")
  
      @property
      @pulumi.getter
      def name(self) -> pulumi.Output[str]:
          """
          Resource name
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter(name="osType")
      def os_type(self) -> pulumi.Output[Optional[str]]:
          """
          The Operating System type.
          """
          return pulumi.get(self, "os_type")
  
      @property
      @pulumi.getter(name="provisioningState")
      def provisioning_state(self) -> pulumi.Output[str]:
          """
          The disk provisioning state.
          """
          return pulumi.get(self, "provisioning_state")
  
      @property
      @pulumi.getter
      def sku(self) -> pulumi.Output[Optional['outputs.DiskSkuResponse']]:
          """
          The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
          """
          return pulumi.get(self, "sku")
  
      @property
      @pulumi.getter
      def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
          """
          Resource tags
          """
          return pulumi.get(self, "tags")
  
      @property
      @pulumi.getter(name="timeCreated")
      def time_created(self) -> pulumi.Output[str]:
          """
          The time when the disk was created.
          """
          return pulumi.get(self, "time_created")
  
      @property
      @pulumi.getter
      def type(self) -> pulumi.Output[str]:
          """
          Resource type
          """
          return pulumi.get(self, "type")
  
      def translate_output_property(self, prop):
          return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
  
      def translate_input_property(self, prop):
          return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
  
  