webhook_service

package
v0.107.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for webhook service API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) WebhookServiceCreateWebhook

func (a *Client) WebhookServiceCreateWebhook(params *WebhookServiceCreateWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceCreateWebhookOK, error)

WebhookServiceCreateWebhook creates an enabled webhook that is optionally subscribed to the resources lifecycle events

func (*Client) WebhookServiceDeleteWebhook

func (a *Client) WebhookServiceDeleteWebhook(params *WebhookServiceDeleteWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceDeleteWebhookOK, error)

WebhookServiceDeleteWebhook deletes a webhook and all of its delivery records

func (*Client) WebhookServiceGetWebhook

func (a *Client) WebhookServiceGetWebhook(params *WebhookServiceGetWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceGetWebhookOK, error)

WebhookServiceGetWebhook gets an existing webhook

func (*Client) WebhookServiceListWebhookDeliveries

func (a *Client) WebhookServiceListWebhookDeliveries(params *WebhookServiceListWebhookDeliveriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceListWebhookDeliveriesOK, error)

WebhookServiceListWebhookDeliveries lists all the deliveries from the last 90 days for a webhook

func (*Client) WebhookServiceListWebhooks

func (a *Client) WebhookServiceListWebhooks(params *WebhookServiceListWebhooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceListWebhooksOK, error)

WebhookServiceListWebhooks lists all existing webhooks in an h c p project

func (*Client) WebhookServiceUpdateWebhook

func (a *Client) WebhookServiceUpdateWebhook(params *WebhookServiceUpdateWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceUpdateWebhookOK, error)

WebhookServiceUpdateWebhook updates a webhook configuration and subscriptions and sets the status to enabled or disabled

func (*Client) WebhookServiceUpdateWebhookName

func (a *Client) WebhookServiceUpdateWebhookName(params *WebhookServiceUpdateWebhookNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceUpdateWebhookNameOK, error)

WebhookServiceUpdateWebhookName updates a webhook name updating a webhook name changes its resource name

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	WebhookServiceCreateWebhook(params *WebhookServiceCreateWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceCreateWebhookOK, error)

	WebhookServiceDeleteWebhook(params *WebhookServiceDeleteWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceDeleteWebhookOK, error)

	WebhookServiceGetWebhook(params *WebhookServiceGetWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceGetWebhookOK, error)

	WebhookServiceListWebhookDeliveries(params *WebhookServiceListWebhookDeliveriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceListWebhookDeliveriesOK, error)

	WebhookServiceListWebhooks(params *WebhookServiceListWebhooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceListWebhooksOK, error)

	WebhookServiceUpdateWebhook(params *WebhookServiceUpdateWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceUpdateWebhookOK, error)

	WebhookServiceUpdateWebhookName(params *WebhookServiceUpdateWebhookNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookServiceUpdateWebhookNameOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new webhook service API client.

type WebhookServiceCreateWebhookDefault

type WebhookServiceCreateWebhookDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

WebhookServiceCreateWebhookDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewWebhookServiceCreateWebhookDefault

func NewWebhookServiceCreateWebhookDefault(code int) *WebhookServiceCreateWebhookDefault

NewWebhookServiceCreateWebhookDefault creates a WebhookServiceCreateWebhookDefault with default headers values

func (*WebhookServiceCreateWebhookDefault) Code

Code gets the status code for the webhook service create webhook default response

func (*WebhookServiceCreateWebhookDefault) Error

func (*WebhookServiceCreateWebhookDefault) GetPayload

func (*WebhookServiceCreateWebhookDefault) IsClientError

func (o *WebhookServiceCreateWebhookDefault) IsClientError() bool

IsClientError returns true when this webhook service create webhook default response has a 4xx status code

func (*WebhookServiceCreateWebhookDefault) IsCode

IsCode returns true when this webhook service create webhook default response a status code equal to that given

func (*WebhookServiceCreateWebhookDefault) IsRedirect

func (o *WebhookServiceCreateWebhookDefault) IsRedirect() bool

IsRedirect returns true when this webhook service create webhook default response has a 3xx status code

func (*WebhookServiceCreateWebhookDefault) IsServerError

func (o *WebhookServiceCreateWebhookDefault) IsServerError() bool

IsServerError returns true when this webhook service create webhook default response has a 5xx status code

func (*WebhookServiceCreateWebhookDefault) IsSuccess

IsSuccess returns true when this webhook service create webhook default response has a 2xx status code

func (*WebhookServiceCreateWebhookDefault) String

type WebhookServiceCreateWebhookOK

type WebhookServiceCreateWebhookOK struct {
	Payload *models.HashicorpCloudWebhookCreateWebhookResponse
}

WebhookServiceCreateWebhookOK describes a response with status code 200, with default header values.

A successful response.

func NewWebhookServiceCreateWebhookOK

func NewWebhookServiceCreateWebhookOK() *WebhookServiceCreateWebhookOK

NewWebhookServiceCreateWebhookOK creates a WebhookServiceCreateWebhookOK with default headers values

func (*WebhookServiceCreateWebhookOK) Code

Code gets the status code for the webhook service create webhook o k response

func (*WebhookServiceCreateWebhookOK) Error

func (*WebhookServiceCreateWebhookOK) GetPayload

func (*WebhookServiceCreateWebhookOK) IsClientError

func (o *WebhookServiceCreateWebhookOK) IsClientError() bool

IsClientError returns true when this webhook service create webhook o k response has a 4xx status code

func (*WebhookServiceCreateWebhookOK) IsCode

func (o *WebhookServiceCreateWebhookOK) IsCode(code int) bool

IsCode returns true when this webhook service create webhook o k response a status code equal to that given

func (*WebhookServiceCreateWebhookOK) IsRedirect

func (o *WebhookServiceCreateWebhookOK) IsRedirect() bool

IsRedirect returns true when this webhook service create webhook o k response has a 3xx status code

func (*WebhookServiceCreateWebhookOK) IsServerError

func (o *WebhookServiceCreateWebhookOK) IsServerError() bool

IsServerError returns true when this webhook service create webhook o k response has a 5xx status code

func (*WebhookServiceCreateWebhookOK) IsSuccess

func (o *WebhookServiceCreateWebhookOK) IsSuccess() bool

IsSuccess returns true when this webhook service create webhook o k response has a 2xx status code

func (*WebhookServiceCreateWebhookOK) String

type WebhookServiceCreateWebhookParams

type WebhookServiceCreateWebhookParams struct {

	/* Body.

	   The information to create a webhook.
	*/
	Body *models.HashicorpCloudWebhookCreateWebhookRequestBody

	/* ParentResourceName.

	   The parent resource of a webhook is an HCP project. A project's resource name format is `project/<project-id>`.
	*/
	ParentResourceName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

WebhookServiceCreateWebhookParams contains all the parameters to send to the API endpoint

for the webhook service create webhook operation.

Typically these are written to a http.Request.

func NewWebhookServiceCreateWebhookParams

func NewWebhookServiceCreateWebhookParams() *WebhookServiceCreateWebhookParams

NewWebhookServiceCreateWebhookParams creates a new WebhookServiceCreateWebhookParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewWebhookServiceCreateWebhookParamsWithContext

func NewWebhookServiceCreateWebhookParamsWithContext(ctx context.Context) *WebhookServiceCreateWebhookParams

NewWebhookServiceCreateWebhookParamsWithContext creates a new WebhookServiceCreateWebhookParams object with the ability to set a context for a request.

func NewWebhookServiceCreateWebhookParamsWithHTTPClient

func NewWebhookServiceCreateWebhookParamsWithHTTPClient(client *http.Client) *WebhookServiceCreateWebhookParams

NewWebhookServiceCreateWebhookParamsWithHTTPClient creates a new WebhookServiceCreateWebhookParams object with the ability to set a custom HTTPClient for a request.

func NewWebhookServiceCreateWebhookParamsWithTimeout

func NewWebhookServiceCreateWebhookParamsWithTimeout(timeout time.Duration) *WebhookServiceCreateWebhookParams

NewWebhookServiceCreateWebhookParamsWithTimeout creates a new WebhookServiceCreateWebhookParams object with the ability to set a timeout on a request.

func (*WebhookServiceCreateWebhookParams) SetBody

SetBody adds the body to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) SetContext

SetContext adds the context to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) SetDefaults

func (o *WebhookServiceCreateWebhookParams) SetDefaults()

SetDefaults hydrates default values in the webhook service create webhook params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceCreateWebhookParams) SetHTTPClient

func (o *WebhookServiceCreateWebhookParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) SetParentResourceName

func (o *WebhookServiceCreateWebhookParams) SetParentResourceName(parentResourceName string)

SetParentResourceName adds the parentResourceName to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) SetTimeout

func (o *WebhookServiceCreateWebhookParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) WithBody

WithBody adds the body to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) WithContext

WithContext adds the context to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) WithDefaults

WithDefaults hydrates default values in the webhook service create webhook params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceCreateWebhookParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) WithParentResourceName

func (o *WebhookServiceCreateWebhookParams) WithParentResourceName(parentResourceName string) *WebhookServiceCreateWebhookParams

WithParentResourceName adds the parentResourceName to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) WithTimeout

WithTimeout adds the timeout to the webhook service create webhook params

func (*WebhookServiceCreateWebhookParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WebhookServiceCreateWebhookReader

type WebhookServiceCreateWebhookReader struct {
	// contains filtered or unexported fields
}

WebhookServiceCreateWebhookReader is a Reader for the WebhookServiceCreateWebhook structure.

func (*WebhookServiceCreateWebhookReader) ReadResponse

func (o *WebhookServiceCreateWebhookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type WebhookServiceDeleteWebhookDefault

type WebhookServiceDeleteWebhookDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

WebhookServiceDeleteWebhookDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewWebhookServiceDeleteWebhookDefault

func NewWebhookServiceDeleteWebhookDefault(code int) *WebhookServiceDeleteWebhookDefault

NewWebhookServiceDeleteWebhookDefault creates a WebhookServiceDeleteWebhookDefault with default headers values

func (*WebhookServiceDeleteWebhookDefault) Code

Code gets the status code for the webhook service delete webhook default response

func (*WebhookServiceDeleteWebhookDefault) Error

func (*WebhookServiceDeleteWebhookDefault) GetPayload

func (*WebhookServiceDeleteWebhookDefault) IsClientError

func (o *WebhookServiceDeleteWebhookDefault) IsClientError() bool

IsClientError returns true when this webhook service delete webhook default response has a 4xx status code

func (*WebhookServiceDeleteWebhookDefault) IsCode

IsCode returns true when this webhook service delete webhook default response a status code equal to that given

func (*WebhookServiceDeleteWebhookDefault) IsRedirect

func (o *WebhookServiceDeleteWebhookDefault) IsRedirect() bool

IsRedirect returns true when this webhook service delete webhook default response has a 3xx status code

func (*WebhookServiceDeleteWebhookDefault) IsServerError

func (o *WebhookServiceDeleteWebhookDefault) IsServerError() bool

IsServerError returns true when this webhook service delete webhook default response has a 5xx status code

func (*WebhookServiceDeleteWebhookDefault) IsSuccess

IsSuccess returns true when this webhook service delete webhook default response has a 2xx status code

func (*WebhookServiceDeleteWebhookDefault) String

type WebhookServiceDeleteWebhookOK

type WebhookServiceDeleteWebhookOK struct {
	Payload models.HashicorpCloudWebhookDeleteWebhookResponse
}

WebhookServiceDeleteWebhookOK describes a response with status code 200, with default header values.

A successful response.

func NewWebhookServiceDeleteWebhookOK

func NewWebhookServiceDeleteWebhookOK() *WebhookServiceDeleteWebhookOK

NewWebhookServiceDeleteWebhookOK creates a WebhookServiceDeleteWebhookOK with default headers values

func (*WebhookServiceDeleteWebhookOK) Code

Code gets the status code for the webhook service delete webhook o k response

func (*WebhookServiceDeleteWebhookOK) Error

func (*WebhookServiceDeleteWebhookOK) GetPayload

func (*WebhookServiceDeleteWebhookOK) IsClientError

func (o *WebhookServiceDeleteWebhookOK) IsClientError() bool

IsClientError returns true when this webhook service delete webhook o k response has a 4xx status code

func (*WebhookServiceDeleteWebhookOK) IsCode

func (o *WebhookServiceDeleteWebhookOK) IsCode(code int) bool

IsCode returns true when this webhook service delete webhook o k response a status code equal to that given

func (*WebhookServiceDeleteWebhookOK) IsRedirect

func (o *WebhookServiceDeleteWebhookOK) IsRedirect() bool

IsRedirect returns true when this webhook service delete webhook o k response has a 3xx status code

func (*WebhookServiceDeleteWebhookOK) IsServerError

func (o *WebhookServiceDeleteWebhookOK) IsServerError() bool

IsServerError returns true when this webhook service delete webhook o k response has a 5xx status code

func (*WebhookServiceDeleteWebhookOK) IsSuccess

func (o *WebhookServiceDeleteWebhookOK) IsSuccess() bool

IsSuccess returns true when this webhook service delete webhook o k response has a 2xx status code

func (*WebhookServiceDeleteWebhookOK) String

type WebhookServiceDeleteWebhookParams

type WebhookServiceDeleteWebhookParams struct {

	/* ResourceName.

	     The webhook resource name.
	A webhook's resource name format name is `webhook/project/<project-id>/geo/<geography>/webhook/<webhook-name>`.
	*/
	ResourceName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

WebhookServiceDeleteWebhookParams contains all the parameters to send to the API endpoint

for the webhook service delete webhook operation.

Typically these are written to a http.Request.

func NewWebhookServiceDeleteWebhookParams

func NewWebhookServiceDeleteWebhookParams() *WebhookServiceDeleteWebhookParams

NewWebhookServiceDeleteWebhookParams creates a new WebhookServiceDeleteWebhookParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewWebhookServiceDeleteWebhookParamsWithContext

func NewWebhookServiceDeleteWebhookParamsWithContext(ctx context.Context) *WebhookServiceDeleteWebhookParams

NewWebhookServiceDeleteWebhookParamsWithContext creates a new WebhookServiceDeleteWebhookParams object with the ability to set a context for a request.

func NewWebhookServiceDeleteWebhookParamsWithHTTPClient

func NewWebhookServiceDeleteWebhookParamsWithHTTPClient(client *http.Client) *WebhookServiceDeleteWebhookParams

NewWebhookServiceDeleteWebhookParamsWithHTTPClient creates a new WebhookServiceDeleteWebhookParams object with the ability to set a custom HTTPClient for a request.

func NewWebhookServiceDeleteWebhookParamsWithTimeout

func NewWebhookServiceDeleteWebhookParamsWithTimeout(timeout time.Duration) *WebhookServiceDeleteWebhookParams

NewWebhookServiceDeleteWebhookParamsWithTimeout creates a new WebhookServiceDeleteWebhookParams object with the ability to set a timeout on a request.

func (*WebhookServiceDeleteWebhookParams) SetContext

SetContext adds the context to the webhook service delete webhook params

func (*WebhookServiceDeleteWebhookParams) SetDefaults

func (o *WebhookServiceDeleteWebhookParams) SetDefaults()

SetDefaults hydrates default values in the webhook service delete webhook params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceDeleteWebhookParams) SetHTTPClient

func (o *WebhookServiceDeleteWebhookParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the webhook service delete webhook params

func (*WebhookServiceDeleteWebhookParams) SetResourceName

func (o *WebhookServiceDeleteWebhookParams) SetResourceName(resourceName string)

SetResourceName adds the resourceName to the webhook service delete webhook params

func (*WebhookServiceDeleteWebhookParams) SetTimeout

func (o *WebhookServiceDeleteWebhookParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the webhook service delete webhook params

func (*WebhookServiceDeleteWebhookParams) WithContext

WithContext adds the context to the webhook service delete webhook params

func (*WebhookServiceDeleteWebhookParams) WithDefaults

WithDefaults hydrates default values in the webhook service delete webhook params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceDeleteWebhookParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the webhook service delete webhook params

func (*WebhookServiceDeleteWebhookParams) WithResourceName

WithResourceName adds the resourceName to the webhook service delete webhook params

func (*WebhookServiceDeleteWebhookParams) WithTimeout

WithTimeout adds the timeout to the webhook service delete webhook params

func (*WebhookServiceDeleteWebhookParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WebhookServiceDeleteWebhookReader

type WebhookServiceDeleteWebhookReader struct {
	// contains filtered or unexported fields
}

WebhookServiceDeleteWebhookReader is a Reader for the WebhookServiceDeleteWebhook structure.

func (*WebhookServiceDeleteWebhookReader) ReadResponse

func (o *WebhookServiceDeleteWebhookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type WebhookServiceGetWebhookDefault

type WebhookServiceGetWebhookDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

WebhookServiceGetWebhookDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewWebhookServiceGetWebhookDefault

func NewWebhookServiceGetWebhookDefault(code int) *WebhookServiceGetWebhookDefault

NewWebhookServiceGetWebhookDefault creates a WebhookServiceGetWebhookDefault with default headers values

func (*WebhookServiceGetWebhookDefault) Code

Code gets the status code for the webhook service get webhook default response

func (*WebhookServiceGetWebhookDefault) Error

func (*WebhookServiceGetWebhookDefault) GetPayload

func (*WebhookServiceGetWebhookDefault) IsClientError

func (o *WebhookServiceGetWebhookDefault) IsClientError() bool

IsClientError returns true when this webhook service get webhook default response has a 4xx status code

func (*WebhookServiceGetWebhookDefault) IsCode

func (o *WebhookServiceGetWebhookDefault) IsCode(code int) bool

IsCode returns true when this webhook service get webhook default response a status code equal to that given

func (*WebhookServiceGetWebhookDefault) IsRedirect

func (o *WebhookServiceGetWebhookDefault) IsRedirect() bool

IsRedirect returns true when this webhook service get webhook default response has a 3xx status code

func (*WebhookServiceGetWebhookDefault) IsServerError

func (o *WebhookServiceGetWebhookDefault) IsServerError() bool

IsServerError returns true when this webhook service get webhook default response has a 5xx status code

func (*WebhookServiceGetWebhookDefault) IsSuccess

func (o *WebhookServiceGetWebhookDefault) IsSuccess() bool

IsSuccess returns true when this webhook service get webhook default response has a 2xx status code

func (*WebhookServiceGetWebhookDefault) String

type WebhookServiceGetWebhookOK

type WebhookServiceGetWebhookOK struct {
	Payload *models.HashicorpCloudWebhookGetWebhookResponse
}

WebhookServiceGetWebhookOK describes a response with status code 200, with default header values.

A successful response.

func NewWebhookServiceGetWebhookOK

func NewWebhookServiceGetWebhookOK() *WebhookServiceGetWebhookOK

NewWebhookServiceGetWebhookOK creates a WebhookServiceGetWebhookOK with default headers values

func (*WebhookServiceGetWebhookOK) Code

func (o *WebhookServiceGetWebhookOK) Code() int

Code gets the status code for the webhook service get webhook o k response

func (*WebhookServiceGetWebhookOK) Error

func (*WebhookServiceGetWebhookOK) GetPayload

func (*WebhookServiceGetWebhookOK) IsClientError

func (o *WebhookServiceGetWebhookOK) IsClientError() bool

IsClientError returns true when this webhook service get webhook o k response has a 4xx status code

func (*WebhookServiceGetWebhookOK) IsCode

func (o *WebhookServiceGetWebhookOK) IsCode(code int) bool

IsCode returns true when this webhook service get webhook o k response a status code equal to that given

func (*WebhookServiceGetWebhookOK) IsRedirect

func (o *WebhookServiceGetWebhookOK) IsRedirect() bool

IsRedirect returns true when this webhook service get webhook o k response has a 3xx status code

func (*WebhookServiceGetWebhookOK) IsServerError

func (o *WebhookServiceGetWebhookOK) IsServerError() bool

IsServerError returns true when this webhook service get webhook o k response has a 5xx status code

func (*WebhookServiceGetWebhookOK) IsSuccess

func (o *WebhookServiceGetWebhookOK) IsSuccess() bool

IsSuccess returns true when this webhook service get webhook o k response has a 2xx status code

func (*WebhookServiceGetWebhookOK) String

func (o *WebhookServiceGetWebhookOK) String() string

type WebhookServiceGetWebhookParams

type WebhookServiceGetWebhookParams struct {

	/* ResourceName.

	     The webhook resource name.
	A webhook's resource name format name is `webhook/project/<project-id>/geo/<geography>/webhook/<webhook-name>`.
	*/
	ResourceName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

WebhookServiceGetWebhookParams contains all the parameters to send to the API endpoint

for the webhook service get webhook operation.

Typically these are written to a http.Request.

func NewWebhookServiceGetWebhookParams

func NewWebhookServiceGetWebhookParams() *WebhookServiceGetWebhookParams

NewWebhookServiceGetWebhookParams creates a new WebhookServiceGetWebhookParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewWebhookServiceGetWebhookParamsWithContext

func NewWebhookServiceGetWebhookParamsWithContext(ctx context.Context) *WebhookServiceGetWebhookParams

NewWebhookServiceGetWebhookParamsWithContext creates a new WebhookServiceGetWebhookParams object with the ability to set a context for a request.

func NewWebhookServiceGetWebhookParamsWithHTTPClient

func NewWebhookServiceGetWebhookParamsWithHTTPClient(client *http.Client) *WebhookServiceGetWebhookParams

NewWebhookServiceGetWebhookParamsWithHTTPClient creates a new WebhookServiceGetWebhookParams object with the ability to set a custom HTTPClient for a request.

func NewWebhookServiceGetWebhookParamsWithTimeout

func NewWebhookServiceGetWebhookParamsWithTimeout(timeout time.Duration) *WebhookServiceGetWebhookParams

NewWebhookServiceGetWebhookParamsWithTimeout creates a new WebhookServiceGetWebhookParams object with the ability to set a timeout on a request.

func (*WebhookServiceGetWebhookParams) SetContext

func (o *WebhookServiceGetWebhookParams) SetContext(ctx context.Context)

SetContext adds the context to the webhook service get webhook params

func (*WebhookServiceGetWebhookParams) SetDefaults

func (o *WebhookServiceGetWebhookParams) SetDefaults()

SetDefaults hydrates default values in the webhook service get webhook params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceGetWebhookParams) SetHTTPClient

func (o *WebhookServiceGetWebhookParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the webhook service get webhook params

func (*WebhookServiceGetWebhookParams) SetResourceName

func (o *WebhookServiceGetWebhookParams) SetResourceName(resourceName string)

SetResourceName adds the resourceName to the webhook service get webhook params

func (*WebhookServiceGetWebhookParams) SetTimeout

func (o *WebhookServiceGetWebhookParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the webhook service get webhook params

func (*WebhookServiceGetWebhookParams) WithContext

WithContext adds the context to the webhook service get webhook params

func (*WebhookServiceGetWebhookParams) WithDefaults

WithDefaults hydrates default values in the webhook service get webhook params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceGetWebhookParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the webhook service get webhook params

func (*WebhookServiceGetWebhookParams) WithResourceName

func (o *WebhookServiceGetWebhookParams) WithResourceName(resourceName string) *WebhookServiceGetWebhookParams

WithResourceName adds the resourceName to the webhook service get webhook params

func (*WebhookServiceGetWebhookParams) WithTimeout

WithTimeout adds the timeout to the webhook service get webhook params

func (*WebhookServiceGetWebhookParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WebhookServiceGetWebhookReader

type WebhookServiceGetWebhookReader struct {
	// contains filtered or unexported fields
}

WebhookServiceGetWebhookReader is a Reader for the WebhookServiceGetWebhook structure.

func (*WebhookServiceGetWebhookReader) ReadResponse

func (o *WebhookServiceGetWebhookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type WebhookServiceListWebhookDeliveriesDefault

type WebhookServiceListWebhookDeliveriesDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

WebhookServiceListWebhookDeliveriesDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewWebhookServiceListWebhookDeliveriesDefault

func NewWebhookServiceListWebhookDeliveriesDefault(code int) *WebhookServiceListWebhookDeliveriesDefault

NewWebhookServiceListWebhookDeliveriesDefault creates a WebhookServiceListWebhookDeliveriesDefault with default headers values

func (*WebhookServiceListWebhookDeliveriesDefault) Code

Code gets the status code for the webhook service list webhook deliveries default response

func (*WebhookServiceListWebhookDeliveriesDefault) Error

func (*WebhookServiceListWebhookDeliveriesDefault) GetPayload

func (*WebhookServiceListWebhookDeliveriesDefault) IsClientError

IsClientError returns true when this webhook service list webhook deliveries default response has a 4xx status code

func (*WebhookServiceListWebhookDeliveriesDefault) IsCode

IsCode returns true when this webhook service list webhook deliveries default response a status code equal to that given

func (*WebhookServiceListWebhookDeliveriesDefault) IsRedirect

IsRedirect returns true when this webhook service list webhook deliveries default response has a 3xx status code

func (*WebhookServiceListWebhookDeliveriesDefault) IsServerError

IsServerError returns true when this webhook service list webhook deliveries default response has a 5xx status code

func (*WebhookServiceListWebhookDeliveriesDefault) IsSuccess

IsSuccess returns true when this webhook service list webhook deliveries default response has a 2xx status code

func (*WebhookServiceListWebhookDeliveriesDefault) String

type WebhookServiceListWebhookDeliveriesOK

type WebhookServiceListWebhookDeliveriesOK struct {
	Payload *models.HashicorpCloudWebhookListWebhookDeliveriesResponse
}

WebhookServiceListWebhookDeliveriesOK describes a response with status code 200, with default header values.

A successful response.

func NewWebhookServiceListWebhookDeliveriesOK

func NewWebhookServiceListWebhookDeliveriesOK() *WebhookServiceListWebhookDeliveriesOK

NewWebhookServiceListWebhookDeliveriesOK creates a WebhookServiceListWebhookDeliveriesOK with default headers values

func (*WebhookServiceListWebhookDeliveriesOK) Code

Code gets the status code for the webhook service list webhook deliveries o k response

func (*WebhookServiceListWebhookDeliveriesOK) Error

func (*WebhookServiceListWebhookDeliveriesOK) GetPayload

func (*WebhookServiceListWebhookDeliveriesOK) IsClientError

func (o *WebhookServiceListWebhookDeliveriesOK) IsClientError() bool

IsClientError returns true when this webhook service list webhook deliveries o k response has a 4xx status code

func (*WebhookServiceListWebhookDeliveriesOK) IsCode

IsCode returns true when this webhook service list webhook deliveries o k response a status code equal to that given

func (*WebhookServiceListWebhookDeliveriesOK) IsRedirect

IsRedirect returns true when this webhook service list webhook deliveries o k response has a 3xx status code

func (*WebhookServiceListWebhookDeliveriesOK) IsServerError

func (o *WebhookServiceListWebhookDeliveriesOK) IsServerError() bool

IsServerError returns true when this webhook service list webhook deliveries o k response has a 5xx status code

func (*WebhookServiceListWebhookDeliveriesOK) IsSuccess

IsSuccess returns true when this webhook service list webhook deliveries o k response has a 2xx status code

func (*WebhookServiceListWebhookDeliveriesOK) String

type WebhookServiceListWebhookDeliveriesParams

type WebhookServiceListWebhookDeliveriesParams struct {

	/* PaginationNextPageToken.

	     Specifies a page token to use to retrieve the next page. Set this to the
	`next_page_token` returned by previous list requests to get the next page of
	results. If set, `previous_page_token` must not be set.
	*/
	PaginationNextPageToken *string

	/* PaginationPageSize.

	     The max number of results per page that should be returned. If the number
	of available results is larger than `page_size`, a `next_page_token` is
	returned which can be used to get the next page of results in subsequent
	requests. A value of zero will cause `page_size` to be defaulted.

	     Format: int64
	*/
	PaginationPageSize *int64

	/* PaginationPreviousPageToken.

	     Specifies a page token to use to retrieve the previous page. Set this to
	the `previous_page_token` returned by previous list requests to get the
	previous page of results. If set, `next_page_token` must not be set.
	*/
	PaginationPreviousPageToken *string

	/* ParentResourceName.

	     The parent resource of webhook deliveries is a webhook.
	A webhook's resource name format name is `webhook/project/<project-id>/geo/<geography>/webhook/<webhook-name>`.
	*/
	ParentResourceName string

	/* SortingOrderBy.

	     Specifies the list of per field ordering that should be used for sorting.
	The order matters as rows are sorted in order by fields and when the field
	matches, the next field is used to tie break the ordering.
	The per field default ordering is ascending.

	The fields should be immutabile, unique, and orderable. If the field is
	not unique, more than one sort fields should be passed.

	Example: oder_by=name,age desc,created_at asc
	In that case, 'name' will get the default 'ascending' order.
	*/
	SortingOrderBy []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

WebhookServiceListWebhookDeliveriesParams contains all the parameters to send to the API endpoint

for the webhook service list webhook deliveries operation.

Typically these are written to a http.Request.

func NewWebhookServiceListWebhookDeliveriesParams

func NewWebhookServiceListWebhookDeliveriesParams() *WebhookServiceListWebhookDeliveriesParams

NewWebhookServiceListWebhookDeliveriesParams creates a new WebhookServiceListWebhookDeliveriesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewWebhookServiceListWebhookDeliveriesParamsWithContext

func NewWebhookServiceListWebhookDeliveriesParamsWithContext(ctx context.Context) *WebhookServiceListWebhookDeliveriesParams

NewWebhookServiceListWebhookDeliveriesParamsWithContext creates a new WebhookServiceListWebhookDeliveriesParams object with the ability to set a context for a request.

func NewWebhookServiceListWebhookDeliveriesParamsWithHTTPClient

func NewWebhookServiceListWebhookDeliveriesParamsWithHTTPClient(client *http.Client) *WebhookServiceListWebhookDeliveriesParams

NewWebhookServiceListWebhookDeliveriesParamsWithHTTPClient creates a new WebhookServiceListWebhookDeliveriesParams object with the ability to set a custom HTTPClient for a request.

func NewWebhookServiceListWebhookDeliveriesParamsWithTimeout

func NewWebhookServiceListWebhookDeliveriesParamsWithTimeout(timeout time.Duration) *WebhookServiceListWebhookDeliveriesParams

NewWebhookServiceListWebhookDeliveriesParamsWithTimeout creates a new WebhookServiceListWebhookDeliveriesParams object with the ability to set a timeout on a request.

func (*WebhookServiceListWebhookDeliveriesParams) SetContext

SetContext adds the context to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) SetDefaults

SetDefaults hydrates default values in the webhook service list webhook deliveries params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceListWebhookDeliveriesParams) SetHTTPClient

func (o *WebhookServiceListWebhookDeliveriesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) SetPaginationNextPageToken

func (o *WebhookServiceListWebhookDeliveriesParams) SetPaginationNextPageToken(paginationNextPageToken *string)

SetPaginationNextPageToken adds the paginationNextPageToken to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) SetPaginationPageSize

func (o *WebhookServiceListWebhookDeliveriesParams) SetPaginationPageSize(paginationPageSize *int64)

SetPaginationPageSize adds the paginationPageSize to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) SetPaginationPreviousPageToken

func (o *WebhookServiceListWebhookDeliveriesParams) SetPaginationPreviousPageToken(paginationPreviousPageToken *string)

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) SetParentResourceName

func (o *WebhookServiceListWebhookDeliveriesParams) SetParentResourceName(parentResourceName string)

SetParentResourceName adds the parentResourceName to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) SetSortingOrderBy

func (o *WebhookServiceListWebhookDeliveriesParams) SetSortingOrderBy(sortingOrderBy []string)

SetSortingOrderBy adds the sortingOrderBy to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) SetTimeout

SetTimeout adds the timeout to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) WithContext

WithContext adds the context to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) WithDefaults

WithDefaults hydrates default values in the webhook service list webhook deliveries params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceListWebhookDeliveriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) WithPaginationNextPageToken

func (o *WebhookServiceListWebhookDeliveriesParams) WithPaginationNextPageToken(paginationNextPageToken *string) *WebhookServiceListWebhookDeliveriesParams

WithPaginationNextPageToken adds the paginationNextPageToken to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) WithPaginationPageSize

func (o *WebhookServiceListWebhookDeliveriesParams) WithPaginationPageSize(paginationPageSize *int64) *WebhookServiceListWebhookDeliveriesParams

WithPaginationPageSize adds the paginationPageSize to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) WithPaginationPreviousPageToken

func (o *WebhookServiceListWebhookDeliveriesParams) WithPaginationPreviousPageToken(paginationPreviousPageToken *string) *WebhookServiceListWebhookDeliveriesParams

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) WithParentResourceName

WithParentResourceName adds the parentResourceName to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) WithSortingOrderBy

WithSortingOrderBy adds the sortingOrderBy to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) WithTimeout

WithTimeout adds the timeout to the webhook service list webhook deliveries params

func (*WebhookServiceListWebhookDeliveriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WebhookServiceListWebhookDeliveriesReader

type WebhookServiceListWebhookDeliveriesReader struct {
	// contains filtered or unexported fields
}

WebhookServiceListWebhookDeliveriesReader is a Reader for the WebhookServiceListWebhookDeliveries structure.

func (*WebhookServiceListWebhookDeliveriesReader) ReadResponse

func (o *WebhookServiceListWebhookDeliveriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type WebhookServiceListWebhooksDefault

type WebhookServiceListWebhooksDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

WebhookServiceListWebhooksDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewWebhookServiceListWebhooksDefault

func NewWebhookServiceListWebhooksDefault(code int) *WebhookServiceListWebhooksDefault

NewWebhookServiceListWebhooksDefault creates a WebhookServiceListWebhooksDefault with default headers values

func (*WebhookServiceListWebhooksDefault) Code

Code gets the status code for the webhook service list webhooks default response

func (*WebhookServiceListWebhooksDefault) Error

func (*WebhookServiceListWebhooksDefault) GetPayload

func (*WebhookServiceListWebhooksDefault) IsClientError

func (o *WebhookServiceListWebhooksDefault) IsClientError() bool

IsClientError returns true when this webhook service list webhooks default response has a 4xx status code

func (*WebhookServiceListWebhooksDefault) IsCode

func (o *WebhookServiceListWebhooksDefault) IsCode(code int) bool

IsCode returns true when this webhook service list webhooks default response a status code equal to that given

func (*WebhookServiceListWebhooksDefault) IsRedirect

func (o *WebhookServiceListWebhooksDefault) IsRedirect() bool

IsRedirect returns true when this webhook service list webhooks default response has a 3xx status code

func (*WebhookServiceListWebhooksDefault) IsServerError

func (o *WebhookServiceListWebhooksDefault) IsServerError() bool

IsServerError returns true when this webhook service list webhooks default response has a 5xx status code

func (*WebhookServiceListWebhooksDefault) IsSuccess

func (o *WebhookServiceListWebhooksDefault) IsSuccess() bool

IsSuccess returns true when this webhook service list webhooks default response has a 2xx status code

func (*WebhookServiceListWebhooksDefault) String

type WebhookServiceListWebhooksOK

type WebhookServiceListWebhooksOK struct {
	Payload *models.HashicorpCloudWebhookListWebhooksResponse
}

WebhookServiceListWebhooksOK describes a response with status code 200, with default header values.

A successful response.

func NewWebhookServiceListWebhooksOK

func NewWebhookServiceListWebhooksOK() *WebhookServiceListWebhooksOK

NewWebhookServiceListWebhooksOK creates a WebhookServiceListWebhooksOK with default headers values

func (*WebhookServiceListWebhooksOK) Code

Code gets the status code for the webhook service list webhooks o k response

func (*WebhookServiceListWebhooksOK) Error

func (*WebhookServiceListWebhooksOK) GetPayload

func (*WebhookServiceListWebhooksOK) IsClientError

func (o *WebhookServiceListWebhooksOK) IsClientError() bool

IsClientError returns true when this webhook service list webhooks o k response has a 4xx status code

func (*WebhookServiceListWebhooksOK) IsCode

func (o *WebhookServiceListWebhooksOK) IsCode(code int) bool

IsCode returns true when this webhook service list webhooks o k response a status code equal to that given

func (*WebhookServiceListWebhooksOK) IsRedirect

func (o *WebhookServiceListWebhooksOK) IsRedirect() bool

IsRedirect returns true when this webhook service list webhooks o k response has a 3xx status code

func (*WebhookServiceListWebhooksOK) IsServerError

func (o *WebhookServiceListWebhooksOK) IsServerError() bool

IsServerError returns true when this webhook service list webhooks o k response has a 5xx status code

func (*WebhookServiceListWebhooksOK) IsSuccess

func (o *WebhookServiceListWebhooksOK) IsSuccess() bool

IsSuccess returns true when this webhook service list webhooks o k response has a 2xx status code

func (*WebhookServiceListWebhooksOK) String

type WebhookServiceListWebhooksParams

type WebhookServiceListWebhooksParams struct {

	/* PaginationNextPageToken.

	     Specifies a page token to use to retrieve the next page. Set this to the
	`next_page_token` returned by previous list requests to get the next page of
	results. If set, `previous_page_token` must not be set.
	*/
	PaginationNextPageToken *string

	/* PaginationPageSize.

	     The max number of results per page that should be returned. If the number
	of available results is larger than `page_size`, a `next_page_token` is
	returned which can be used to get the next page of results in subsequent
	requests. A value of zero will cause `page_size` to be defaulted.

	     Format: int64
	*/
	PaginationPageSize *int64

	/* PaginationPreviousPageToken.

	     Specifies a page token to use to retrieve the previous page. Set this to
	the `previous_page_token` returned by previous list requests to get the
	previous page of results. If set, `next_page_token` must not be set.
	*/
	PaginationPreviousPageToken *string

	/* ParentResourceName.

	   The parent resource of a webhook is an HCP project. A project's resource name format is `project/<project-id>`.
	*/
	ParentResourceName string

	/* SortingOrderBy.

	     Specifies the list of per field ordering that should be used for sorting.
	The order matters as rows are sorted in order by fields and when the field
	matches, the next field is used to tie break the ordering.
	The per field default ordering is ascending.

	The fields should be immutabile, unique, and orderable. If the field is
	not unique, more than one sort fields should be passed.

	Example: oder_by=name,age desc,created_at asc
	In that case, 'name' will get the default 'ascending' order.
	*/
	SortingOrderBy []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

WebhookServiceListWebhooksParams contains all the parameters to send to the API endpoint

for the webhook service list webhooks operation.

Typically these are written to a http.Request.

func NewWebhookServiceListWebhooksParams

func NewWebhookServiceListWebhooksParams() *WebhookServiceListWebhooksParams

NewWebhookServiceListWebhooksParams creates a new WebhookServiceListWebhooksParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewWebhookServiceListWebhooksParamsWithContext

func NewWebhookServiceListWebhooksParamsWithContext(ctx context.Context) *WebhookServiceListWebhooksParams

NewWebhookServiceListWebhooksParamsWithContext creates a new WebhookServiceListWebhooksParams object with the ability to set a context for a request.

func NewWebhookServiceListWebhooksParamsWithHTTPClient

func NewWebhookServiceListWebhooksParamsWithHTTPClient(client *http.Client) *WebhookServiceListWebhooksParams

NewWebhookServiceListWebhooksParamsWithHTTPClient creates a new WebhookServiceListWebhooksParams object with the ability to set a custom HTTPClient for a request.

func NewWebhookServiceListWebhooksParamsWithTimeout

func NewWebhookServiceListWebhooksParamsWithTimeout(timeout time.Duration) *WebhookServiceListWebhooksParams

NewWebhookServiceListWebhooksParamsWithTimeout creates a new WebhookServiceListWebhooksParams object with the ability to set a timeout on a request.

func (*WebhookServiceListWebhooksParams) SetContext

SetContext adds the context to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) SetDefaults

func (o *WebhookServiceListWebhooksParams) SetDefaults()

SetDefaults hydrates default values in the webhook service list webhooks params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceListWebhooksParams) SetHTTPClient

func (o *WebhookServiceListWebhooksParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) SetPaginationNextPageToken

func (o *WebhookServiceListWebhooksParams) SetPaginationNextPageToken(paginationNextPageToken *string)

SetPaginationNextPageToken adds the paginationNextPageToken to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) SetPaginationPageSize

func (o *WebhookServiceListWebhooksParams) SetPaginationPageSize(paginationPageSize *int64)

SetPaginationPageSize adds the paginationPageSize to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) SetPaginationPreviousPageToken

func (o *WebhookServiceListWebhooksParams) SetPaginationPreviousPageToken(paginationPreviousPageToken *string)

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) SetParentResourceName

func (o *WebhookServiceListWebhooksParams) SetParentResourceName(parentResourceName string)

SetParentResourceName adds the parentResourceName to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) SetSortingOrderBy

func (o *WebhookServiceListWebhooksParams) SetSortingOrderBy(sortingOrderBy []string)

SetSortingOrderBy adds the sortingOrderBy to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) SetTimeout

func (o *WebhookServiceListWebhooksParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) WithContext

WithContext adds the context to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) WithDefaults

WithDefaults hydrates default values in the webhook service list webhooks params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceListWebhooksParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) WithPaginationNextPageToken

func (o *WebhookServiceListWebhooksParams) WithPaginationNextPageToken(paginationNextPageToken *string) *WebhookServiceListWebhooksParams

WithPaginationNextPageToken adds the paginationNextPageToken to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) WithPaginationPageSize

func (o *WebhookServiceListWebhooksParams) WithPaginationPageSize(paginationPageSize *int64) *WebhookServiceListWebhooksParams

WithPaginationPageSize adds the paginationPageSize to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) WithPaginationPreviousPageToken

func (o *WebhookServiceListWebhooksParams) WithPaginationPreviousPageToken(paginationPreviousPageToken *string) *WebhookServiceListWebhooksParams

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) WithParentResourceName

func (o *WebhookServiceListWebhooksParams) WithParentResourceName(parentResourceName string) *WebhookServiceListWebhooksParams

WithParentResourceName adds the parentResourceName to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) WithSortingOrderBy

func (o *WebhookServiceListWebhooksParams) WithSortingOrderBy(sortingOrderBy []string) *WebhookServiceListWebhooksParams

WithSortingOrderBy adds the sortingOrderBy to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) WithTimeout

WithTimeout adds the timeout to the webhook service list webhooks params

func (*WebhookServiceListWebhooksParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WebhookServiceListWebhooksReader

type WebhookServiceListWebhooksReader struct {
	// contains filtered or unexported fields
}

WebhookServiceListWebhooksReader is a Reader for the WebhookServiceListWebhooks structure.

func (*WebhookServiceListWebhooksReader) ReadResponse

func (o *WebhookServiceListWebhooksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type WebhookServiceUpdateWebhookDefault

type WebhookServiceUpdateWebhookDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

WebhookServiceUpdateWebhookDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewWebhookServiceUpdateWebhookDefault

func NewWebhookServiceUpdateWebhookDefault(code int) *WebhookServiceUpdateWebhookDefault

NewWebhookServiceUpdateWebhookDefault creates a WebhookServiceUpdateWebhookDefault with default headers values

func (*WebhookServiceUpdateWebhookDefault) Code

Code gets the status code for the webhook service update webhook default response

func (*WebhookServiceUpdateWebhookDefault) Error

func (*WebhookServiceUpdateWebhookDefault) GetPayload

func (*WebhookServiceUpdateWebhookDefault) IsClientError

func (o *WebhookServiceUpdateWebhookDefault) IsClientError() bool

IsClientError returns true when this webhook service update webhook default response has a 4xx status code

func (*WebhookServiceUpdateWebhookDefault) IsCode

IsCode returns true when this webhook service update webhook default response a status code equal to that given

func (*WebhookServiceUpdateWebhookDefault) IsRedirect

func (o *WebhookServiceUpdateWebhookDefault) IsRedirect() bool

IsRedirect returns true when this webhook service update webhook default response has a 3xx status code

func (*WebhookServiceUpdateWebhookDefault) IsServerError

func (o *WebhookServiceUpdateWebhookDefault) IsServerError() bool

IsServerError returns true when this webhook service update webhook default response has a 5xx status code

func (*WebhookServiceUpdateWebhookDefault) IsSuccess

IsSuccess returns true when this webhook service update webhook default response has a 2xx status code

func (*WebhookServiceUpdateWebhookDefault) String

type WebhookServiceUpdateWebhookNameDefault

type WebhookServiceUpdateWebhookNameDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

WebhookServiceUpdateWebhookNameDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewWebhookServiceUpdateWebhookNameDefault

func NewWebhookServiceUpdateWebhookNameDefault(code int) *WebhookServiceUpdateWebhookNameDefault

NewWebhookServiceUpdateWebhookNameDefault creates a WebhookServiceUpdateWebhookNameDefault with default headers values

func (*WebhookServiceUpdateWebhookNameDefault) Code

Code gets the status code for the webhook service update webhook name default response

func (*WebhookServiceUpdateWebhookNameDefault) Error

func (*WebhookServiceUpdateWebhookNameDefault) GetPayload

func (*WebhookServiceUpdateWebhookNameDefault) IsClientError

func (o *WebhookServiceUpdateWebhookNameDefault) IsClientError() bool

IsClientError returns true when this webhook service update webhook name default response has a 4xx status code

func (*WebhookServiceUpdateWebhookNameDefault) IsCode

IsCode returns true when this webhook service update webhook name default response a status code equal to that given

func (*WebhookServiceUpdateWebhookNameDefault) IsRedirect

IsRedirect returns true when this webhook service update webhook name default response has a 3xx status code

func (*WebhookServiceUpdateWebhookNameDefault) IsServerError

func (o *WebhookServiceUpdateWebhookNameDefault) IsServerError() bool

IsServerError returns true when this webhook service update webhook name default response has a 5xx status code

func (*WebhookServiceUpdateWebhookNameDefault) IsSuccess

IsSuccess returns true when this webhook service update webhook name default response has a 2xx status code

func (*WebhookServiceUpdateWebhookNameDefault) String

type WebhookServiceUpdateWebhookNameOK

type WebhookServiceUpdateWebhookNameOK struct {
	Payload *models.HashicorpCloudWebhookUpdateWebhookNameResponse
}

WebhookServiceUpdateWebhookNameOK describes a response with status code 200, with default header values.

A successful response.

func NewWebhookServiceUpdateWebhookNameOK

func NewWebhookServiceUpdateWebhookNameOK() *WebhookServiceUpdateWebhookNameOK

NewWebhookServiceUpdateWebhookNameOK creates a WebhookServiceUpdateWebhookNameOK with default headers values

func (*WebhookServiceUpdateWebhookNameOK) Code

Code gets the status code for the webhook service update webhook name o k response

func (*WebhookServiceUpdateWebhookNameOK) Error

func (*WebhookServiceUpdateWebhookNameOK) GetPayload

func (*WebhookServiceUpdateWebhookNameOK) IsClientError

func (o *WebhookServiceUpdateWebhookNameOK) IsClientError() bool

IsClientError returns true when this webhook service update webhook name o k response has a 4xx status code

func (*WebhookServiceUpdateWebhookNameOK) IsCode

func (o *WebhookServiceUpdateWebhookNameOK) IsCode(code int) bool

IsCode returns true when this webhook service update webhook name o k response a status code equal to that given

func (*WebhookServiceUpdateWebhookNameOK) IsRedirect

func (o *WebhookServiceUpdateWebhookNameOK) IsRedirect() bool

IsRedirect returns true when this webhook service update webhook name o k response has a 3xx status code

func (*WebhookServiceUpdateWebhookNameOK) IsServerError

func (o *WebhookServiceUpdateWebhookNameOK) IsServerError() bool

IsServerError returns true when this webhook service update webhook name o k response has a 5xx status code

func (*WebhookServiceUpdateWebhookNameOK) IsSuccess

func (o *WebhookServiceUpdateWebhookNameOK) IsSuccess() bool

IsSuccess returns true when this webhook service update webhook name o k response has a 2xx status code

func (*WebhookServiceUpdateWebhookNameOK) String

type WebhookServiceUpdateWebhookNameParams

type WebhookServiceUpdateWebhookNameParams struct {

	/* Body.

	   The information to update a webhook name.
	*/
	Body *models.HashicorpCloudWebhookUpdateWebhookNameRequestBody

	/* ResourceName.

	     The webhook resource name.
	A webhook's resource name format name is `webhook/project/<project-id>/geo/<geography>/webhook/<webhook-name>`.
	*/
	ResourceName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

WebhookServiceUpdateWebhookNameParams contains all the parameters to send to the API endpoint

for the webhook service update webhook name operation.

Typically these are written to a http.Request.

func NewWebhookServiceUpdateWebhookNameParams

func NewWebhookServiceUpdateWebhookNameParams() *WebhookServiceUpdateWebhookNameParams

NewWebhookServiceUpdateWebhookNameParams creates a new WebhookServiceUpdateWebhookNameParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewWebhookServiceUpdateWebhookNameParamsWithContext

func NewWebhookServiceUpdateWebhookNameParamsWithContext(ctx context.Context) *WebhookServiceUpdateWebhookNameParams

NewWebhookServiceUpdateWebhookNameParamsWithContext creates a new WebhookServiceUpdateWebhookNameParams object with the ability to set a context for a request.

func NewWebhookServiceUpdateWebhookNameParamsWithHTTPClient

func NewWebhookServiceUpdateWebhookNameParamsWithHTTPClient(client *http.Client) *WebhookServiceUpdateWebhookNameParams

NewWebhookServiceUpdateWebhookNameParamsWithHTTPClient creates a new WebhookServiceUpdateWebhookNameParams object with the ability to set a custom HTTPClient for a request.

func NewWebhookServiceUpdateWebhookNameParamsWithTimeout

func NewWebhookServiceUpdateWebhookNameParamsWithTimeout(timeout time.Duration) *WebhookServiceUpdateWebhookNameParams

NewWebhookServiceUpdateWebhookNameParamsWithTimeout creates a new WebhookServiceUpdateWebhookNameParams object with the ability to set a timeout on a request.

func (*WebhookServiceUpdateWebhookNameParams) SetBody

SetBody adds the body to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) SetContext

SetContext adds the context to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) SetDefaults

func (o *WebhookServiceUpdateWebhookNameParams) SetDefaults()

SetDefaults hydrates default values in the webhook service update webhook name params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceUpdateWebhookNameParams) SetHTTPClient

func (o *WebhookServiceUpdateWebhookNameParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) SetResourceName

func (o *WebhookServiceUpdateWebhookNameParams) SetResourceName(resourceName string)

SetResourceName adds the resourceName to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) SetTimeout

func (o *WebhookServiceUpdateWebhookNameParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) WithBody

WithBody adds the body to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) WithContext

WithContext adds the context to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) WithDefaults

WithDefaults hydrates default values in the webhook service update webhook name params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceUpdateWebhookNameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) WithResourceName

WithResourceName adds the resourceName to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) WithTimeout

WithTimeout adds the timeout to the webhook service update webhook name params

func (*WebhookServiceUpdateWebhookNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WebhookServiceUpdateWebhookNameReader

type WebhookServiceUpdateWebhookNameReader struct {
	// contains filtered or unexported fields
}

WebhookServiceUpdateWebhookNameReader is a Reader for the WebhookServiceUpdateWebhookName structure.

func (*WebhookServiceUpdateWebhookNameReader) ReadResponse

func (o *WebhookServiceUpdateWebhookNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type WebhookServiceUpdateWebhookOK

type WebhookServiceUpdateWebhookOK struct {
	Payload *models.HashicorpCloudWebhookUpdateWebhookResponse
}

WebhookServiceUpdateWebhookOK describes a response with status code 200, with default header values.

A successful response.

func NewWebhookServiceUpdateWebhookOK

func NewWebhookServiceUpdateWebhookOK() *WebhookServiceUpdateWebhookOK

NewWebhookServiceUpdateWebhookOK creates a WebhookServiceUpdateWebhookOK with default headers values

func (*WebhookServiceUpdateWebhookOK) Code

Code gets the status code for the webhook service update webhook o k response

func (*WebhookServiceUpdateWebhookOK) Error

func (*WebhookServiceUpdateWebhookOK) GetPayload

func (*WebhookServiceUpdateWebhookOK) IsClientError

func (o *WebhookServiceUpdateWebhookOK) IsClientError() bool

IsClientError returns true when this webhook service update webhook o k response has a 4xx status code

func (*WebhookServiceUpdateWebhookOK) IsCode

func (o *WebhookServiceUpdateWebhookOK) IsCode(code int) bool

IsCode returns true when this webhook service update webhook o k response a status code equal to that given

func (*WebhookServiceUpdateWebhookOK) IsRedirect

func (o *WebhookServiceUpdateWebhookOK) IsRedirect() bool

IsRedirect returns true when this webhook service update webhook o k response has a 3xx status code

func (*WebhookServiceUpdateWebhookOK) IsServerError

func (o *WebhookServiceUpdateWebhookOK) IsServerError() bool

IsServerError returns true when this webhook service update webhook o k response has a 5xx status code

func (*WebhookServiceUpdateWebhookOK) IsSuccess

func (o *WebhookServiceUpdateWebhookOK) IsSuccess() bool

IsSuccess returns true when this webhook service update webhook o k response has a 2xx status code

func (*WebhookServiceUpdateWebhookOK) String

type WebhookServiceUpdateWebhookParams

type WebhookServiceUpdateWebhookParams struct {

	/* Body.

	   The information to update a webhook.
	*/
	Body *models.HashicorpCloudWebhookUpdateWebhookRequestBody

	/* ResourceName.

	     The webhook resource name.
	A webhook's resource name format name is `webhook/project/<project-id>/geo/<geography>/webhook/<webhook-name>`.
	*/
	ResourceName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

WebhookServiceUpdateWebhookParams contains all the parameters to send to the API endpoint

for the webhook service update webhook operation.

Typically these are written to a http.Request.

func NewWebhookServiceUpdateWebhookParams

func NewWebhookServiceUpdateWebhookParams() *WebhookServiceUpdateWebhookParams

NewWebhookServiceUpdateWebhookParams creates a new WebhookServiceUpdateWebhookParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewWebhookServiceUpdateWebhookParamsWithContext

func NewWebhookServiceUpdateWebhookParamsWithContext(ctx context.Context) *WebhookServiceUpdateWebhookParams

NewWebhookServiceUpdateWebhookParamsWithContext creates a new WebhookServiceUpdateWebhookParams object with the ability to set a context for a request.

func NewWebhookServiceUpdateWebhookParamsWithHTTPClient

func NewWebhookServiceUpdateWebhookParamsWithHTTPClient(client *http.Client) *WebhookServiceUpdateWebhookParams

NewWebhookServiceUpdateWebhookParamsWithHTTPClient creates a new WebhookServiceUpdateWebhookParams object with the ability to set a custom HTTPClient for a request.

func NewWebhookServiceUpdateWebhookParamsWithTimeout

func NewWebhookServiceUpdateWebhookParamsWithTimeout(timeout time.Duration) *WebhookServiceUpdateWebhookParams

NewWebhookServiceUpdateWebhookParamsWithTimeout creates a new WebhookServiceUpdateWebhookParams object with the ability to set a timeout on a request.

func (*WebhookServiceUpdateWebhookParams) SetBody

SetBody adds the body to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) SetContext

SetContext adds the context to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) SetDefaults

func (o *WebhookServiceUpdateWebhookParams) SetDefaults()

SetDefaults hydrates default values in the webhook service update webhook params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceUpdateWebhookParams) SetHTTPClient

func (o *WebhookServiceUpdateWebhookParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) SetResourceName

func (o *WebhookServiceUpdateWebhookParams) SetResourceName(resourceName string)

SetResourceName adds the resourceName to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) SetTimeout

func (o *WebhookServiceUpdateWebhookParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) WithBody

WithBody adds the body to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) WithContext

WithContext adds the context to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) WithDefaults

WithDefaults hydrates default values in the webhook service update webhook params (not the query body).

All values with no default are reset to their zero value.

func (*WebhookServiceUpdateWebhookParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) WithResourceName

WithResourceName adds the resourceName to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) WithTimeout

WithTimeout adds the timeout to the webhook service update webhook params

func (*WebhookServiceUpdateWebhookParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WebhookServiceUpdateWebhookReader

type WebhookServiceUpdateWebhookReader struct {
	// contains filtered or unexported fields
}

WebhookServiceUpdateWebhookReader is a Reader for the WebhookServiceUpdateWebhook structure.

func (*WebhookServiceUpdateWebhookReader) ReadResponse

func (o *WebhookServiceUpdateWebhookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL