class Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceTriggerDescriptor

The source trigger that caused a run.

Attributes

branch_name[RW]

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

commit_id[RW]

@return [String] The unique ID that identifies a commit.

event_type[RW]

@return [String] The event type of the trigger.

id[RW]

@return [String] The unique ID of the trigger.

provider_type[RW]

@return [String] The source control provider type.

pull_request_id[RW]

@return [String] The unique ID that identifies pull request.

repository_url[RW]

@return [String] The repository URL.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_descriptor.rb, line 41
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SourceTriggerDescriptor',
    type: {
      name: 'Composite',
      class_name: 'SourceTriggerDescriptor',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        event_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'eventType',
          type: {
            name: 'String'
          }
        },
        commit_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'commitId',
          type: {
            name: 'String'
          }
        },
        pull_request_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'pullRequestId',
          type: {
            name: 'String'
          }
        },
        repository_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'repositoryUrl',
          type: {
            name: 'String'
          }
        },
        branch_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'branchName',
          type: {
            name: 'String'
          }
        },
        provider_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'providerType',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end