// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package operations

import (
	"github.com/censys/censys-sdk-go/models/components"
)

type V3GlobaldataAssetCertificateGlobals struct {
	OrganizationID *string `queryParam:"style=form,explode=true,name=organization_id"`
}

func (o *V3GlobaldataAssetCertificateGlobals) GetOrganizationID() *string {
	if o == nil {
		return nil
	}
	return o.OrganizationID
}

type V3GlobaldataAssetCertificateRequest struct {
	// The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-set-your-organization-id) for more information.
	OrganizationID *string `queryParam:"style=form,explode=false,name=organization_id"`
	// The SHA-256 certificate fingerprint.
	CertificateID string `pathParam:"style=simple,explode=false,name=certificate_id"`
}

func (o *V3GlobaldataAssetCertificateRequest) GetOrganizationID() *string {
	if o == nil {
		return nil
	}
	return o.OrganizationID
}

func (o *V3GlobaldataAssetCertificateRequest) GetCertificateID() string {
	if o == nil {
		return ""
	}
	return o.CertificateID
}

type V3GlobaldataAssetCertificateResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// OK
	ResponseEnvelopeCertificateAsset *components.ResponseEnvelopeCertificateAsset
	Headers                          map[string][]string
}

func (o *V3GlobaldataAssetCertificateResponse) GetHTTPMeta() components.HTTPMetadata {
	if o == nil {
		return components.HTTPMetadata{}
	}
	return o.HTTPMeta
}

func (o *V3GlobaldataAssetCertificateResponse) GetResponseEnvelopeCertificateAsset() *components.ResponseEnvelopeCertificateAsset {
	if o == nil {
		return nil
	}
	return o.ResponseEnvelopeCertificateAsset
}

func (o *V3GlobaldataAssetCertificateResponse) GetHeaders() map[string][]string {
	if o == nil {
		return map[string][]string{}
	}
	return o.Headers
}
