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

package operations

import (
	"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared"
	"net/http"
)

type ListPermissionsRequest struct {
	// User Id in permission.
	UserID *string `queryParam:"style=form,explode=true,name=userId"`
	// This is required if you want to read someone else's permissions, and you should have organization admin or a higher role.
	OrganizationID *string `queryParam:"style=form,explode=true,name=organizationId"`
}

func (o *ListPermissionsRequest) GetUserID() *string {
	if o == nil {
		return nil
	}
	return o.UserID
}

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

type ListPermissionsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// List Permissions.
	PermissionsResponse *shared.PermissionsResponse
}

func (o *ListPermissionsResponse) GetContentType() string {
	if o == nil {
		return ""
	}
	return o.ContentType
}

func (o *ListPermissionsResponse) GetStatusCode() int {
	if o == nil {
		return 0
	}
	return o.StatusCode
}

func (o *ListPermissionsResponse) GetRawResponse() *http.Response {
	if o == nil {
		return nil
	}
	return o.RawResponse
}

func (o *ListPermissionsResponse) GetPermissionsResponse() *shared.PermissionsResponse {
	if o == nil {
		return nil
	}
	return o.PermissionsResponse
}
