class Azure::EventGrid::V2018_01_01::Models::StorageBlobCreatedEventData

Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobCreated event.

Attributes

api[RW]

@return [String] The name of the API/operation that triggered this event.

blob_type[RW]

@return [String] The type of blob.

client_request_id[RW]

@return [String] A request id provided by the client of the storage API operation that triggered this event.

content_length[RW]

@return [Integer] The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob.

content_type[RW]

@return [String] The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob.

e_tag[RW]

@return [String] The etag of the object at the time this event was triggered.

request_id[RW]

@return [String] The request id generated by the Storage service for the storage API operation that triggered this event.

sequencer[RW]

@return [String] An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name.

storage_diagnostics[RW]

@return For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.

url[RW]

@return [String] The path to the blob.

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-01-01/generated/azure_event_grid/models/storage_blob_created_event_data.rb, line 62
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'StorageBlobCreatedEventData',
    type: {
      name: 'Composite',
      class_name: 'StorageBlobCreatedEventData',
      model_properties: {
        api: {
          client_side_validation: true,
          required: false,
          serialized_name: 'api',
          type: {
            name: 'String'
          }
        },
        client_request_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'clientRequestId',
          type: {
            name: 'String'
          }
        },
        request_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'requestId',
          type: {
            name: 'String'
          }
        },
        e_tag: {
          client_side_validation: true,
          required: false,
          serialized_name: 'eTag',
          type: {
            name: 'String'
          }
        },
        content_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'contentType',
          type: {
            name: 'String'
          }
        },
        content_length: {
          client_side_validation: true,
          required: false,
          serialized_name: 'contentLength',
          type: {
            name: 'Number'
          }
        },
        blob_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'blobType',
          type: {
            name: 'String'
          }
        },
        url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'url',
          type: {
            name: 'String'
          }
        },
        sequencer: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sequencer',
          type: {
            name: 'String'
          }
        },
        storage_diagnostics: {
          client_side_validation: true,
          required: false,
          serialized_name: 'storageDiagnostics',
          type: {
            name: 'Object'
          }
        }
      }
    }
  }
end