models

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudlocationLocation

type CloudlocationLocation struct {

	// organization_id is the id of the organization.
	OrganizationID string `json:"organization_id,omitempty"`

	// project_id is the projects id.
	ProjectID string `json:"project_id,omitempty"`

	// region is the region that the resource is located in. It is
	// optional if the object being referenced is a global object.
	Region *LocationRegion `json:"region,omitempty"`
}

CloudlocationLocation Location represents a target for an operation in HCP.

swagger:model cloudlocationLocation

func (*CloudlocationLocation) ContextValidate

func (m *CloudlocationLocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cloudlocation location based on the context it is used

func (*CloudlocationLocation) MarshalBinary

func (m *CloudlocationLocation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CloudlocationLocation) UnmarshalBinary

func (m *CloudlocationLocation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CloudlocationLocation) Validate

func (m *CloudlocationLocation) Validate(formats strfmt.Registry) error

Validate validates this cloudlocation location

type CloudoperationOperation

type CloudoperationOperation struct {

	// CreatedAt is the timestamp of when the operation was first created.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// error is the error that occurred in the operation.
	Error *RPCStatus `json:"error,omitempty"`

	// id is the unique ID for this operation used in other RPC calls.
	// This ID is only guaranteed to be unique within the region that
	// the operation is running in.
	ID string `json:"id,omitempty"`

	// Link is the resource link the operation is associated with.
	Link *LocationLink `json:"link,omitempty"`

	// Location is location of the resource that this operation belongs to.
	Location *CloudlocationLocation `json:"location,omitempty"`

	// response is the result of the operation. See the documentation for the API
	// call creating the operation to understand what the value of this is.
	Response *ProtobufAny `json:"response,omitempty"`

	// state is the current state of the operation. This is a simple tri-state:
	// PENDING means the operation is created but not yet started, RUNNING means
	// the operation is currently running (though it may be very long-running),
	// and DONE means the operation is complete whether successfully or not.
	State *OperationState `json:"state,omitempty"`

	// UpdatedAt is the timestamp of when the operation was last updated.
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
}

CloudoperationOperation Operation represents a single operation.

swagger:model cloudoperationOperation

func (*CloudoperationOperation) ContextValidate

func (m *CloudoperationOperation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cloudoperation operation based on the context it is used

func (*CloudoperationOperation) MarshalBinary

func (m *CloudoperationOperation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CloudoperationOperation) UnmarshalBinary

func (m *CloudoperationOperation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CloudoperationOperation) Validate

func (m *CloudoperationOperation) Validate(formats strfmt.Registry) error

Validate validates this cloudoperation operation

type CommonPaginationRequest

type CommonPaginationRequest struct {

	// 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.
	NextPageToken string `json:"next_page_token,omitempty"`

	// 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.
	PageSize int64 `json:"page_size,omitempty"`

	// 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.
	PreviousPageToken string `json:"previous_page_token,omitempty"`
}

CommonPaginationRequest PaginationRequest are the parameters for a paginated list request.

swagger:model commonPaginationRequest

func (*CommonPaginationRequest) ContextValidate

func (m *CommonPaginationRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this common pagination request based on context it is used

func (*CommonPaginationRequest) MarshalBinary

func (m *CommonPaginationRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommonPaginationRequest) UnmarshalBinary

func (m *CommonPaginationRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommonPaginationRequest) Validate

func (m *CommonPaginationRequest) Validate(formats strfmt.Registry) error

Validate validates this common pagination request

type CommonPaginationResponse

type CommonPaginationResponse struct {

	// This token allows you to get the next page of results for list requests.
	// If the number of results is larger than `page_size`, use the
	// `next_page_token` as a value for the query parameter `next_page_token` in
	// the next request. The value will become empty when there are no more pages.
	NextPageToken string `json:"next_page_token,omitempty"`

	// This token allows you to get the previous page of results for list
	// requests. If the number of results is larger than `page_size`, use the
	// `previous_page_token` as a value for the query parameter
	// `previous_page_token` in the next request. The value will become empty when
	// there are no more pages.
	PreviousPageToken string `json:"previous_page_token,omitempty"`
}

CommonPaginationResponse PaginationResponse is the response holding the page tokens for a paginated list response.

swagger:model commonPaginationResponse

func (*CommonPaginationResponse) ContextValidate

func (m *CommonPaginationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this common pagination response based on context it is used

func (*CommonPaginationResponse) MarshalBinary

func (m *CommonPaginationResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommonPaginationResponse) UnmarshalBinary

func (m *CommonPaginationResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommonPaginationResponse) Validate

func (m *CommonPaginationResponse) Validate(formats strfmt.Registry) error

Validate validates this common pagination response

type LocationLink struct {

	// description is a human-friendly description for this link. This is
	// used primarily for informational purposes such as error messages.
	Description string `json:"description,omitempty"`

	// id is the identifier for this resource.
	ID string `json:"id,omitempty"`

	// location is the location where this resource is.
	Location *CloudlocationLocation `json:"location,omitempty"`

	// type is the unique type of the resource. Each service publishes a
	// unique set of types. The type value is recommended to be formatted
	// in "<org>.<type>" such as "hashicorp.hvn". This is to prevent conflicts
	// in the future, but any string value will work.
	Type string `json:"type,omitempty"`

	// uuid is the unique UUID for this resource.
	UUID string `json:"uuid,omitempty"`
}

LocationLink Link is used to uniquely reference any resource within HashiCorp Cloud. This can be conceptually considered a "foreign key".

swagger:model locationLink

func (*LocationLink) ContextValidate

func (m *LocationLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this location link based on the context it is used

func (*LocationLink) MarshalBinary

func (m *LocationLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LocationLink) UnmarshalBinary

func (m *LocationLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LocationLink) Validate

func (m *LocationLink) Validate(formats strfmt.Registry) error

Validate validates this location link

type LocationRegion

type LocationRegion struct {

	// provider is the named cloud provider ("aws", "gcp", "azure")
	Provider string `json:"provider,omitempty"`

	// region is the cloud region ("us-west1", "us-east1")
	Region string `json:"region,omitempty"`
}

LocationRegion Region identifies a Cloud data-plane region.

swagger:model locationRegion

func (*LocationRegion) ContextValidate

func (m *LocationRegion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this location region based on context it is used

func (*LocationRegion) MarshalBinary

func (m *LocationRegion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LocationRegion) UnmarshalBinary

func (m *LocationRegion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LocationRegion) Validate

func (m *LocationRegion) Validate(formats strfmt.Registry) error

Validate validates this location region

type OperationState

type OperationState string

OperationState State is one of the states that an Operation can be in.

The states are purposely coarse grained to make it easy to understand the operation state machine: pending => running => done. Or pending => queued => running => done. No other state transitions are possible. Success/failure can be determined based on the result oneof.

swagger:model OperationState

const (

	// OperationStatePENDING captures enum value "PENDING"
	OperationStatePENDING OperationState = "PENDING"

	// OperationStateRUNNING captures enum value "RUNNING"
	OperationStateRUNNING OperationState = "RUNNING"

	// OperationStateDONE captures enum value "DONE"
	OperationStateDONE OperationState = "DONE"

	// OperationStateQUEUED captures enum value "QUEUED"
	OperationStateQUEUED OperationState = "QUEUED"
)

func NewOperationState

func NewOperationState(value OperationState) *OperationState

func (OperationState) ContextValidate

func (m OperationState) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this operation state based on context it is used

func (OperationState) Pointer

func (m OperationState) Pointer() *OperationState

Pointer returns a pointer to a freshly-allocated OperationState.

func (OperationState) Validate

func (m OperationState) Validate(formats strfmt.Registry) error

Validate validates this operation state

type OrganizationOrganizationState

type OrganizationOrganizationState string

OrganizationOrganizationState OrganizationState is the states the organization can be in.

swagger:model OrganizationOrganizationState

const (

	// OrganizationOrganizationStateUNKNOWN captures enum value "UNKNOWN"
	OrganizationOrganizationStateUNKNOWN OrganizationOrganizationState = "UNKNOWN"

	// OrganizationOrganizationStateACTIVE captures enum value "ACTIVE"
	OrganizationOrganizationStateACTIVE OrganizationOrganizationState = "ACTIVE"

	// OrganizationOrganizationStatePENDINGDELETE captures enum value "PENDING_DELETE"
	OrganizationOrganizationStatePENDINGDELETE OrganizationOrganizationState = "PENDING_DELETE"
)

func (OrganizationOrganizationState) ContextValidate

func (m OrganizationOrganizationState) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this organization organization state based on context it is used

func (OrganizationOrganizationState) Pointer

Pointer returns a pointer to a freshly-allocated OrganizationOrganizationState.

func (OrganizationOrganizationState) Validate

func (m OrganizationOrganizationState) Validate(formats strfmt.Registry) error

Validate validates this organization organization state

type ProjectProjectState

type ProjectProjectState string

ProjectProjectState ProjectState is the states the project can be in.

swagger:model ProjectProjectState

const (

	// ProjectProjectStateUNKNOWN captures enum value "UNKNOWN"
	ProjectProjectStateUNKNOWN ProjectProjectState = "UNKNOWN"

	// ProjectProjectStateACTIVE captures enum value "ACTIVE"
	ProjectProjectStateACTIVE ProjectProjectState = "ACTIVE"

	// ProjectProjectStateDELETING captures enum value "DELETING"
	ProjectProjectStateDELETING ProjectProjectState = "DELETING"

	// ProjectProjectStateDELETED captures enum value "DELETED"
	ProjectProjectStateDELETED ProjectProjectState = "DELETED"
)

func NewProjectProjectState

func NewProjectProjectState(value ProjectProjectState) *ProjectProjectState

func (ProjectProjectState) ContextValidate

func (m ProjectProjectState) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this project project state based on context it is used

func (ProjectProjectState) Pointer

Pointer returns a pointer to a freshly-allocated ProjectProjectState.

func (ProjectProjectState) Validate

func (m ProjectProjectState) Validate(formats strfmt.Registry) error

Validate validates this project project state

type ProtobufAny

type ProtobufAny struct {

	// A URL/resource name that uniquely identifies the type of the serialized
	// protocol buffer message. This string must contain at least
	// one "/" character. The last segment of the URL's path must represent
	// the fully qualified name of the type (as in
	// `path/google.protobuf.Duration`). The name should be in a canonical form
	// (e.g., leading "." is not accepted).
	//
	// In practice, teams usually precompile into the binary all types that they
	// expect it to use in the context of Any. However, for URLs which use the
	// scheme `http`, `https`, or no scheme, one can optionally set up a type
	// server that maps type URLs to message definitions as follows:
	//
	// * If no scheme is provided, `https` is assumed.
	// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
	//   value in binary format, or produce an error.
	// * Applications are allowed to cache lookup results based on the
	//   URL, or have them precompiled into a binary to avoid any
	//   lookup. Therefore, binary compatibility needs to be preserved
	//   on changes to types. (Use versioned type names to manage
	//   breaking changes.)
	//
	// Note: this functionality is not currently available in the official
	// protobuf release, and it is not used for type URLs beginning with
	// type.googleapis.com.
	//
	// Schemes other than `http`, `https` (or the empty scheme) might be
	// used with implementation specific semantics.
	AtType string `json:"@type,omitempty"`
}

ProtobufAny `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message.

Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type.

Example 1: Pack and unpack a message in C++.

Foo foo = ...;
Any any;
any.PackFrom(foo);
...
if (any.UnpackTo(&foo)) {
  ...
}

Example 2: Pack and unpack a message in Java.

Foo foo = ...;
Any any = Any.pack(foo);
...
if (any.is(Foo.class)) {
  foo = any.unpack(Foo.class);
}

Example 3: Pack and unpack a message in Python.

foo = Foo(...)
any = Any()
any.Pack(foo)
...
if any.Is(Foo.DESCRIPTOR):
  any.Unpack(foo)
  ...

Example 4: Pack and unpack a message in Go

foo := &pb.Foo{...}
any, err := anypb.New(foo)
if err != nil {
  ...
}
...
foo := &pb.Foo{}
if err := any.UnmarshalTo(foo); err != nil {
  ...
}

The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example "foo.bar.com/x/y.z" will yield type name "y.z".

JSON

The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example:

package google.profile;
message Person {
  string first_name = 1;
  string last_name = 2;
}

{
  "@type": "type.googleapis.com/google.profile.Person",
  "firstName": <string>,
  "lastName": <string>
}

If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]):

{
  "@type": "type.googleapis.com/google.protobuf.Duration",
  "value": "1.212s"
}

swagger:model protobufAny

func (*ProtobufAny) ContextValidate

func (m *ProtobufAny) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this protobuf any based on context it is used

func (*ProtobufAny) MarshalBinary

func (m *ProtobufAny) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProtobufAny) UnmarshalBinary

func (m *ProtobufAny) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProtobufAny) Validate

func (m *ProtobufAny) Validate(formats strfmt.Registry) error

Validate validates this protobuf any

type RPCStatus

type RPCStatus struct {

	// The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
	Code int32 `json:"code,omitempty"`

	// A list of messages that carry the error details.  There is a common set of
	// message types for APIs to use.
	Details []*ProtobufAny `json:"details"`

	// A developer-facing error message, which should be in English. Any
	// user-facing error message should be localized and sent in the
	// [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
	Message string `json:"message,omitempty"`
}

RPCStatus The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details.

You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).

swagger:model rpcStatus

func (*RPCStatus) ContextValidate

func (m *RPCStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rpc status based on the context it is used

func (*RPCStatus) MarshalBinary

func (m *RPCStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RPCStatus) UnmarshalBinary

func (m *RPCStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RPCStatus) Validate

func (m *RPCStatus) Validate(formats strfmt.Registry) error

Validate validates this rpc status

type ResourceIDResourceType

type ResourceIDResourceType string

ResourceIDResourceType resource ID resource type

swagger:model ResourceIDResourceType

const (

	// ResourceIDResourceTypeUNKNOWN captures enum value "UNKNOWN"
	ResourceIDResourceTypeUNKNOWN ResourceIDResourceType = "UNKNOWN"

	// ResourceIDResourceTypeORGANIZATION captures enum value "ORGANIZATION"
	ResourceIDResourceTypeORGANIZATION ResourceIDResourceType = "ORGANIZATION"

	// ResourceIDResourceTypePROJECT captures enum value "PROJECT"
	ResourceIDResourceTypePROJECT ResourceIDResourceType = "PROJECT"
)

func NewResourceIDResourceType

func NewResourceIDResourceType(value ResourceIDResourceType) *ResourceIDResourceType

func (ResourceIDResourceType) ContextValidate

func (m ResourceIDResourceType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resource ID resource type based on context it is used

func (ResourceIDResourceType) Pointer

Pointer returns a pointer to a freshly-allocated ResourceIDResourceType.

func (ResourceIDResourceType) Validate

func (m ResourceIDResourceType) Validate(formats strfmt.Registry) error

Validate validates this resource ID resource type

type ResourcemanagerOrganization

type ResourcemanagerOrganization struct {

	// CreatedAt is the time the organization was created at.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// ID is an UUID identifying the Organization object.
	ID string `json:"id,omitempty"`

	// Name is the user settable name of the organization.
	Name string `json:"name,omitempty"`

	// Owner is the contact for support issue that may occur at the
	// organization level. Further, if the organization owner is
	// deleted, the organization itself will be deleted.
	Owner *ResourcemanagerOrganizationOwner `json:"owner,omitempty"`

	// State is the state of the organization.
	State *OrganizationOrganizationState `json:"state,omitempty"`
}

ResourcemanagerOrganization Organization is the root node in the resource hierarchy. All resources for an entity reside under the organization.

swagger:model resourcemanagerOrganization

func (*ResourcemanagerOrganization) ContextValidate

func (m *ResourcemanagerOrganization) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager organization based on the context it is used

func (*ResourcemanagerOrganization) MarshalBinary

func (m *ResourcemanagerOrganization) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerOrganization) UnmarshalBinary

func (m *ResourcemanagerOrganization) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganization) Validate

func (m *ResourcemanagerOrganization) Validate(formats strfmt.Registry) error

Validate validates this resourcemanager organization

type ResourcemanagerOrganizationCreateRequest

type ResourcemanagerOrganizationCreateRequest struct {

	// Name is the user settable name of the organization. Will default to
	// "<Principal's name>'s Organization" if unset.
	Name string `json:"name,omitempty"`
}

ResourcemanagerOrganizationCreateRequest see OrganizationService.Create

swagger:model resourcemanagerOrganizationCreateRequest

func (*ResourcemanagerOrganizationCreateRequest) ContextValidate

ContextValidate validates this resourcemanager organization create request based on context it is used

func (*ResourcemanagerOrganizationCreateRequest) MarshalBinary

func (m *ResourcemanagerOrganizationCreateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationCreateRequest) UnmarshalBinary

func (m *ResourcemanagerOrganizationCreateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationCreateRequest) Validate

Validate validates this resourcemanager organization create request

type ResourcemanagerOrganizationCreateResponse

type ResourcemanagerOrganizationCreateResponse struct {

	// Organization is the newly created organization.
	Organization *ResourcemanagerOrganization `json:"organization,omitempty"`
}

ResourcemanagerOrganizationCreateResponse see OrganizationService.Create

swagger:model resourcemanagerOrganizationCreateResponse

func (*ResourcemanagerOrganizationCreateResponse) ContextValidate

ContextValidate validate this resourcemanager organization create response based on the context it is used

func (*ResourcemanagerOrganizationCreateResponse) MarshalBinary

func (m *ResourcemanagerOrganizationCreateResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationCreateResponse) UnmarshalBinary

func (m *ResourcemanagerOrganizationCreateResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationCreateResponse) Validate

Validate validates this resourcemanager organization create response

type ResourcemanagerOrganizationGetIamPolicyResponse

type ResourcemanagerOrganizationGetIamPolicyResponse struct {

	// Policy is the IAM policy for the organization.
	Policy *ResourcemanagerPolicy `json:"policy,omitempty"`
}

ResourcemanagerOrganizationGetIamPolicyResponse see OrganizationService.GetIamPolicy

swagger:model resourcemanagerOrganizationGetIamPolicyResponse

func (*ResourcemanagerOrganizationGetIamPolicyResponse) ContextValidate

ContextValidate validate this resourcemanager organization get iam policy response based on the context it is used

func (*ResourcemanagerOrganizationGetIamPolicyResponse) MarshalBinary

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationGetIamPolicyResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationGetIamPolicyResponse) Validate

Validate validates this resourcemanager organization get iam policy response

type ResourcemanagerOrganizationGetResponse

type ResourcemanagerOrganizationGetResponse struct {

	// Organization is the specified organization.
	Organization *ResourcemanagerOrganization `json:"organization,omitempty"`
}

ResourcemanagerOrganizationGetResponse see OrganizationService.Get

swagger:model resourcemanagerOrganizationGetResponse

func (*ResourcemanagerOrganizationGetResponse) ContextValidate

ContextValidate validate this resourcemanager organization get response based on the context it is used

func (*ResourcemanagerOrganizationGetResponse) MarshalBinary

func (m *ResourcemanagerOrganizationGetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationGetResponse) UnmarshalBinary

func (m *ResourcemanagerOrganizationGetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationGetResponse) Validate

Validate validates this resourcemanager organization get response

type ResourcemanagerOrganizationGetRoleResponse

type ResourcemanagerOrganizationGetRoleResponse struct {

	// Role is the requested role.
	Role *ResourcemanagerRole `json:"role,omitempty"`
}

ResourcemanagerOrganizationGetRoleResponse OrganizationGetRoleResponse see OrganizationService.GetRole

swagger:model resourcemanagerOrganizationGetRoleResponse

func (*ResourcemanagerOrganizationGetRoleResponse) ContextValidate

ContextValidate validate this resourcemanager organization get role response based on the context it is used

func (*ResourcemanagerOrganizationGetRoleResponse) MarshalBinary

func (m *ResourcemanagerOrganizationGetRoleResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationGetRoleResponse) UnmarshalBinary

func (m *ResourcemanagerOrganizationGetRoleResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationGetRoleResponse) Validate

Validate validates this resourcemanager organization get role response

type ResourcemanagerOrganizationListResponse

type ResourcemanagerOrganizationListResponse struct {

	// Organizations is the organizations the caller has access to.
	Organizations []*ResourcemanagerOrganization `json:"organizations"`

	// Pagination contains the pagination tokens for a subsequent request.
	Pagination *CommonPaginationResponse `json:"pagination,omitempty"`
}

ResourcemanagerOrganizationListResponse see OrganizationService.List

swagger:model resourcemanagerOrganizationListResponse

func (*ResourcemanagerOrganizationListResponse) ContextValidate

ContextValidate validate this resourcemanager organization list response based on the context it is used

func (*ResourcemanagerOrganizationListResponse) MarshalBinary

func (m *ResourcemanagerOrganizationListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationListResponse) UnmarshalBinary

func (m *ResourcemanagerOrganizationListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationListResponse) Validate

Validate validates this resourcemanager organization list response

type ResourcemanagerOrganizationListRolesResponse

type ResourcemanagerOrganizationListRolesResponse struct {

	// Pagination contains the pagination tokens for a subsequent request.
	Pagination *CommonPaginationResponse `json:"pagination,omitempty"`

	// Roles contains a page of the provisioned roles for the requested organization.
	Roles []*ResourcemanagerRole `json:"roles"`
}

ResourcemanagerOrganizationListRolesResponse OrganizationListRolesResponse see OrganizationService.ListRoles

swagger:model resourcemanagerOrganizationListRolesResponse

func (*ResourcemanagerOrganizationListRolesResponse) ContextValidate

ContextValidate validate this resourcemanager organization list roles response based on the context it is used

func (*ResourcemanagerOrganizationListRolesResponse) MarshalBinary

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationListRolesResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationListRolesResponse) Validate

Validate validates this resourcemanager organization list roles response

type ResourcemanagerOrganizationOwner

type ResourcemanagerOrganizationOwner struct {

	// User is the email of the user who is the owner.
	User string `json:"user,omitempty"`
}

ResourcemanagerOrganizationOwner OrganizationOwner identifies the user who owns the organization.

swagger:model resourcemanagerOrganizationOwner

func (*ResourcemanagerOrganizationOwner) ContextValidate

func (m *ResourcemanagerOrganizationOwner) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resourcemanager organization owner based on context it is used

func (*ResourcemanagerOrganizationOwner) MarshalBinary

func (m *ResourcemanagerOrganizationOwner) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationOwner) UnmarshalBinary

func (m *ResourcemanagerOrganizationOwner) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationOwner) Validate

Validate validates this resourcemanager organization owner

type ResourcemanagerOrganizationSetIamPolicyResponse

type ResourcemanagerOrganizationSetIamPolicyResponse struct {

	// Policy is the updated IAM policy for the organization.
	Policy *ResourcemanagerPolicy `json:"policy,omitempty"`
}

ResourcemanagerOrganizationSetIamPolicyResponse see OrganizationService.SetIamPolicy

swagger:model resourcemanagerOrganizationSetIamPolicyResponse

func (*ResourcemanagerOrganizationSetIamPolicyResponse) ContextValidate

ContextValidate validate this resourcemanager organization set iam policy response based on the context it is used

func (*ResourcemanagerOrganizationSetIamPolicyResponse) MarshalBinary

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationSetIamPolicyResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationSetIamPolicyResponse) Validate

Validate validates this resourcemanager organization set iam policy response

type ResourcemanagerOrganizationSetNameResponse

type ResourcemanagerOrganizationSetNameResponse struct {

	// Organization is the specified organization with an updated name.
	Organization *ResourcemanagerOrganization `json:"organization,omitempty"`
}

ResourcemanagerOrganizationSetNameResponse see OrganizationService.SetName

swagger:model resourcemanagerOrganizationSetNameResponse

func (*ResourcemanagerOrganizationSetNameResponse) ContextValidate

ContextValidate validate this resourcemanager organization set name response based on the context it is used

func (*ResourcemanagerOrganizationSetNameResponse) MarshalBinary

func (m *ResourcemanagerOrganizationSetNameResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationSetNameResponse) UnmarshalBinary

func (m *ResourcemanagerOrganizationSetNameResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationSetNameResponse) Validate

Validate validates this resourcemanager organization set name response

type ResourcemanagerOrganizationTestIamPermissionsResponse

type ResourcemanagerOrganizationTestIamPermissionsResponse struct {

	// AllowedPermissions are a subset of the request permissions the calling principal has for the organization.
	AllowedPermissions []string `json:"allowedPermissions"`
}

ResourcemanagerOrganizationTestIamPermissionsResponse see OrganizationService.TestIamPermissions

swagger:model resourcemanagerOrganizationTestIamPermissionsResponse

func (*ResourcemanagerOrganizationTestIamPermissionsResponse) ContextValidate

ContextValidate validates this resourcemanager organization test iam permissions response based on context it is used

func (*ResourcemanagerOrganizationTestIamPermissionsResponse) MarshalBinary

MarshalBinary interface implementation

func (*ResourcemanagerOrganizationTestIamPermissionsResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ResourcemanagerOrganizationTestIamPermissionsResponse) Validate

Validate validates this resourcemanager organization test iam permissions response

type ResourcemanagerPolicy

type ResourcemanagerPolicy struct {

	// Bindings is a list of role to members for this policy.
	Bindings []*ResourcemanagerPolicyBinding `json:"bindings"`

	// Etag identifies this version of the policy.
	Etag string `json:"etag,omitempty"`
}

ResourcemanagerPolicy Policy binds many instances of roles to member lists in the resource hierarchy. For example:

An organization policy which has a single owner and many contributors.

"policy": {
  "bindings": [{
    "role_id": "roles/owner",
    "members": [
      {
        "member_type": "USER",
        "member_id": "f0b6f14c-ff6d-481a-8bd6-f4f0d356bc93"
      }
    ]
  }, {
    "role_id": "roles/contributor",
    "members": [
      {
        "member_type": "USER",
        "member_id": "b24c10e6-7f2d-4660-a163-f54f52439080"
      },
      {
        "member_type": "USER",
        "member_id": "b2becb8c-4947-4a29-94bb-c952b1b67f1e"
      },
      {
        "member_type": "GROUP",
        "member_id": "356120ef-3014-404c-b574-c1c9e804663a"
      }
    ]
  }],
  "etag": "afd123"
}

swagger:model resourcemanagerPolicy

func (*ResourcemanagerPolicy) ContextValidate

func (m *ResourcemanagerPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager policy based on the context it is used

func (*ResourcemanagerPolicy) MarshalBinary

func (m *ResourcemanagerPolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerPolicy) UnmarshalBinary

func (m *ResourcemanagerPolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerPolicy) Validate

func (m *ResourcemanagerPolicy) Validate(formats strfmt.Registry) error

Validate validates this resourcemanager policy

type ResourcemanagerPolicyBinding

type ResourcemanagerPolicyBinding struct {

	// Members is a set of identities that are associated with the role.
	Members []*ResourcemanagerPolicyBindingMember `json:"members"`

	// RoleId is the globally unique identifier for the role.
	// e.g. projects/30788e25-a942-470a-9a75-128cc7b97fde/roles/my-custom-project-role
	RoleID string `json:"roleId,omitempty"`
}

ResourcemanagerPolicyBinding PolicyBinding binds a list of members to a role.

swagger:model resourcemanagerPolicyBinding

func (*ResourcemanagerPolicyBinding) ContextValidate

func (m *ResourcemanagerPolicyBinding) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager policy binding based on the context it is used

func (*ResourcemanagerPolicyBinding) MarshalBinary

func (m *ResourcemanagerPolicyBinding) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerPolicyBinding) UnmarshalBinary

func (m *ResourcemanagerPolicyBinding) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerPolicyBinding) Validate

func (m *ResourcemanagerPolicyBinding) Validate(formats strfmt.Registry) error

Validate validates this resourcemanager policy binding

type ResourcemanagerPolicyBindingMember

type ResourcemanagerPolicyBindingMember struct {

	// MemberId is the unique identifier for the member.
	MemberID string `json:"memberId,omitempty"`

	// MemberType is the type of the member.
	MemberType *ResourcemanagerPolicyBindingMemberType `json:"memberType,omitempty"`
}

ResourcemanagerPolicyBindingMember PolicyBindingMember represents an identity associated with a policy binding.

swagger:model resourcemanagerPolicyBindingMember

func (*ResourcemanagerPolicyBindingMember) ContextValidate

func (m *ResourcemanagerPolicyBindingMember) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager policy binding member based on the context it is used

func (*ResourcemanagerPolicyBindingMember) MarshalBinary

func (m *ResourcemanagerPolicyBindingMember) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerPolicyBindingMember) UnmarshalBinary

func (m *ResourcemanagerPolicyBindingMember) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerPolicyBindingMember) Validate

Validate validates this resourcemanager policy binding member

type ResourcemanagerPolicyBindingMemberType

type ResourcemanagerPolicyBindingMemberType string

ResourcemanagerPolicyBindingMemberType PolicyBindingMemberType is the type of the policy binding member.

swagger:model resourcemanagerPolicyBindingMemberType

const (

	// ResourcemanagerPolicyBindingMemberTypeUNSET captures enum value "UNSET"
	ResourcemanagerPolicyBindingMemberTypeUNSET ResourcemanagerPolicyBindingMemberType = "UNSET"

	// ResourcemanagerPolicyBindingMemberTypeUSER captures enum value "USER"
	ResourcemanagerPolicyBindingMemberTypeUSER ResourcemanagerPolicyBindingMemberType = "USER"

	// ResourcemanagerPolicyBindingMemberTypeGROUP captures enum value "GROUP"
	ResourcemanagerPolicyBindingMemberTypeGROUP ResourcemanagerPolicyBindingMemberType = "GROUP"

	// ResourcemanagerPolicyBindingMemberTypeSERVICEPRINCIPAL captures enum value "SERVICE_PRINCIPAL"
	ResourcemanagerPolicyBindingMemberTypeSERVICEPRINCIPAL ResourcemanagerPolicyBindingMemberType = "SERVICE_PRINCIPAL"
)

func (ResourcemanagerPolicyBindingMemberType) ContextValidate

ContextValidate validates this resourcemanager policy binding member type based on context it is used

func (ResourcemanagerPolicyBindingMemberType) Pointer

Pointer returns a pointer to a freshly-allocated ResourcemanagerPolicyBindingMemberType.

func (ResourcemanagerPolicyBindingMemberType) Validate

Validate validates this resourcemanager policy binding member type

type ResourcemanagerProject

type ResourcemanagerProject struct {

	// CreatedAt is the time the project was created at.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// Description is the user settable description of the project.
	Description string `json:"description,omitempty"`

	// ID is an UUID identifying the project object.
	ID string `json:"id,omitempty"`

	// Name is the user settable name of the project.
	Name string `json:"name,omitempty"`

	// Parent is the parent resource of the project.
	Parent *ResourcemanagerResourceID `json:"parent,omitempty"`

	// State is the state of the project.
	State *ProjectProjectState `json:"state,omitempty"`
}

ResourcemanagerProject Project is a container for resources.

swagger:model resourcemanagerProject

func (*ResourcemanagerProject) ContextValidate

func (m *ResourcemanagerProject) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager project based on the context it is used

func (*ResourcemanagerProject) MarshalBinary

func (m *ResourcemanagerProject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerProject) UnmarshalBinary

func (m *ResourcemanagerProject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerProject) Validate

func (m *ResourcemanagerProject) Validate(formats strfmt.Registry) error

Validate validates this resourcemanager project

type ResourcemanagerProjectCreateRequest

type ResourcemanagerProjectCreateRequest struct {

	// Description is the user settable description of the project.
	Description string `json:"description,omitempty"`

	// Name is the user settable name of the project.
	Name string `json:"name,omitempty"`

	// Parent is the parent resource to nest the new project under.
	Parent *ResourcemanagerResourceID `json:"parent,omitempty"`
}

ResourcemanagerProjectCreateRequest see ProjectService.Create

swagger:model resourcemanagerProjectCreateRequest

func (*ResourcemanagerProjectCreateRequest) ContextValidate

func (m *ResourcemanagerProjectCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager project create request based on the context it is used

func (*ResourcemanagerProjectCreateRequest) MarshalBinary

func (m *ResourcemanagerProjectCreateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerProjectCreateRequest) UnmarshalBinary

func (m *ResourcemanagerProjectCreateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerProjectCreateRequest) Validate

Validate validates this resourcemanager project create request

type ResourcemanagerProjectCreateResponse

type ResourcemanagerProjectCreateResponse struct {

	// Project is the newly created project.
	Project *ResourcemanagerProject `json:"project,omitempty"`
}

ResourcemanagerProjectCreateResponse see ProjectService.Create

swagger:model resourcemanagerProjectCreateResponse

func (*ResourcemanagerProjectCreateResponse) ContextValidate

func (m *ResourcemanagerProjectCreateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager project create response based on the context it is used

func (*ResourcemanagerProjectCreateResponse) MarshalBinary

func (m *ResourcemanagerProjectCreateResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerProjectCreateResponse) UnmarshalBinary

func (m *ResourcemanagerProjectCreateResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerProjectCreateResponse) Validate

Validate validates this resourcemanager project create response

type ResourcemanagerProjectDeleteResponse

type ResourcemanagerProjectDeleteResponse struct {

	// operation is the operation that represents the async delete
	Operation *CloudoperationOperation `json:"operation,omitempty"`
}

ResourcemanagerProjectDeleteResponse ProjectDeleteResponse See ProjectService.Delete

swagger:model resourcemanagerProjectDeleteResponse

func (*ResourcemanagerProjectDeleteResponse) ContextValidate

func (m *ResourcemanagerProjectDeleteResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager project delete response based on the context it is used

func (*ResourcemanagerProjectDeleteResponse) MarshalBinary

func (m *ResourcemanagerProjectDeleteResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerProjectDeleteResponse) UnmarshalBinary

func (m *ResourcemanagerProjectDeleteResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerProjectDeleteResponse) Validate

Validate validates this resourcemanager project delete response

type ResourcemanagerProjectGetIamPolicyResponse

type ResourcemanagerProjectGetIamPolicyResponse struct {

	// Policy is the system managed IAM policy for the project.
	Policy *ResourcemanagerPolicy `json:"policy,omitempty"`
}

ResourcemanagerProjectGetIamPolicyResponse ProjectGetIamPolicyResponse see ProjectService.GetIamPolicy

swagger:model resourcemanagerProjectGetIamPolicyResponse

func (*ResourcemanagerProjectGetIamPolicyResponse) ContextValidate

ContextValidate validate this resourcemanager project get iam policy response based on the context it is used

func (*ResourcemanagerProjectGetIamPolicyResponse) MarshalBinary

func (m *ResourcemanagerProjectGetIamPolicyResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerProjectGetIamPolicyResponse) UnmarshalBinary

func (m *ResourcemanagerProjectGetIamPolicyResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerProjectGetIamPolicyResponse) Validate

Validate validates this resourcemanager project get iam policy response

type ResourcemanagerProjectGetResponse

type ResourcemanagerProjectGetResponse struct {

	// Project is the specified project.
	Project *ResourcemanagerProject `json:"project,omitempty"`
}

ResourcemanagerProjectGetResponse see ProjectService.Get

swagger:model resourcemanagerProjectGetResponse

func (*ResourcemanagerProjectGetResponse) ContextValidate

func (m *ResourcemanagerProjectGetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager project get response based on the context it is used

func (*ResourcemanagerProjectGetResponse) MarshalBinary

func (m *ResourcemanagerProjectGetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerProjectGetResponse) UnmarshalBinary

func (m *ResourcemanagerProjectGetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerProjectGetResponse) Validate

Validate validates this resourcemanager project get response

type ResourcemanagerProjectListResponse

type ResourcemanagerProjectListResponse struct {

	// Pagination contains the pagination tokens for a subsequent request.
	Pagination *CommonPaginationResponse `json:"pagination,omitempty"`

	// Projects is the projects the caller has access to at the requested scope.
	Projects []*ResourcemanagerProject `json:"projects"`
}

ResourcemanagerProjectListResponse see ProjectService.List

swagger:model resourcemanagerProjectListResponse

func (*ResourcemanagerProjectListResponse) ContextValidate

func (m *ResourcemanagerProjectListResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager project list response based on the context it is used

func (*ResourcemanagerProjectListResponse) MarshalBinary

func (m *ResourcemanagerProjectListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerProjectListResponse) UnmarshalBinary

func (m *ResourcemanagerProjectListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerProjectListResponse) Validate

Validate validates this resourcemanager project list response

type ResourcemanagerProjectSetIamPolicyResponse

type ResourcemanagerProjectSetIamPolicyResponse struct {

	// Policy is the updated IAM policy for the project.
	Policy *ResourcemanagerPolicy `json:"policy,omitempty"`
}

ResourcemanagerProjectSetIamPolicyResponse ProjectSetIamPolicyResponse see ProjectService.SetIamPolicy

swagger:model resourcemanagerProjectSetIamPolicyResponse

func (*ResourcemanagerProjectSetIamPolicyResponse) ContextValidate

ContextValidate validate this resourcemanager project set iam policy response based on the context it is used

func (*ResourcemanagerProjectSetIamPolicyResponse) MarshalBinary

func (m *ResourcemanagerProjectSetIamPolicyResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerProjectSetIamPolicyResponse) UnmarshalBinary

func (m *ResourcemanagerProjectSetIamPolicyResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerProjectSetIamPolicyResponse) Validate

Validate validates this resourcemanager project set iam policy response

type ResourcemanagerResource

type ResourcemanagerResource struct {

	// Link is a link to the resource. This includes the organization
	// and project ID as well as the ID of the resource itself.
	Link *LocationLink `json:"link,omitempty"`
}

ResourcemanagerResource resourcemanager resource

swagger:model resourcemanagerResource

func (*ResourcemanagerResource) ContextValidate

func (m *ResourcemanagerResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager resource based on the context it is used

func (*ResourcemanagerResource) MarshalBinary

func (m *ResourcemanagerResource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerResource) UnmarshalBinary

func (m *ResourcemanagerResource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerResource) Validate

func (m *ResourcemanagerResource) Validate(formats strfmt.Registry) error

Validate validates this resourcemanager resource

type ResourcemanagerResourceID

type ResourcemanagerResourceID struct {

	// id is the id of the object being referenced.
	ID string `json:"id,omitempty"`

	// ResourceType is the type of object being referenced.
	Type *ResourceIDResourceType `json:"type,omitempty"`
}

ResourcemanagerResourceID ResourceID is a reference to an object in the resource hierarchy.

swagger:model resourcemanagerResourceID

func (*ResourcemanagerResourceID) ContextValidate

func (m *ResourcemanagerResourceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager resource ID based on the context it is used

func (*ResourcemanagerResourceID) MarshalBinary

func (m *ResourcemanagerResourceID) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerResourceID) UnmarshalBinary

func (m *ResourcemanagerResourceID) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerResourceID) Validate

func (m *ResourcemanagerResourceID) Validate(formats strfmt.Registry) error

Validate validates this resourcemanager resource ID

type ResourcemanagerResourceListResponse

type ResourcemanagerResourceListResponse struct {

	// Pagination contains the pagination tokens for a subsequent request.
	Pagination *CommonPaginationResponse `json:"pagination,omitempty"`

	// Resources is the resources the caller has access to at the requested scope.
	Resources []*ResourcemanagerResource `json:"resources"`
}

ResourcemanagerResourceListResponse resourcemanager resource list response

swagger:model resourcemanagerResourceListResponse

func (*ResourcemanagerResourceListResponse) ContextValidate

func (m *ResourcemanagerResourceListResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourcemanager resource list response based on the context it is used

func (*ResourcemanagerResourceListResponse) MarshalBinary

func (m *ResourcemanagerResourceListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerResourceListResponse) UnmarshalBinary

func (m *ResourcemanagerResourceListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerResourceListResponse) Validate

Validate validates this resourcemanager resource list response

type ResourcemanagerRole

type ResourcemanagerRole struct {

	// Description provides information regarding the purpose of this role.
	Description string `json:"description,omitempty"`

	// ID is the globally unique identifier for this role.
	// Examples:
	// * roles/contributor
	// * organizations/30788e25-a942-470a-9a75-128cc7b97fde/roles/my-custom-role (custom role scoped to an organization)
	// * projects/30788e25-a942-470a-9a75-128cc7b97fde/roles/my-custom-project-role
	//
	// Builtin roles are prefixed with "roles/"
	ID string `json:"id,omitempty"`

	// Permissions is a set of allowed permissions in the format: <service>.<noun>.<action>
	// Examples:
	// * network.hvns.create
	// * network.hvns.read
	// * consul.clusters.create
	Permissions []string `json:"permissions"`

	// Title is a display name for this role.
	Title string `json:"title,omitempty"`

	// Version is the instance of this role - version is incremented when a
	// permission is added or removed and when other metadata is changed.
	Version int32 `json:"version,omitempty"`
}

ResourcemanagerRole Role binds a name to a set of permissions.

swagger:model resourcemanagerRole

func (*ResourcemanagerRole) ContextValidate

func (m *ResourcemanagerRole) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resourcemanager role based on context it is used

func (*ResourcemanagerRole) MarshalBinary

func (m *ResourcemanagerRole) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcemanagerRole) UnmarshalBinary

func (m *ResourcemanagerRole) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcemanagerRole) Validate

func (m *ResourcemanagerRole) Validate(formats strfmt.Registry) error

Validate validates this resourcemanager role

Source Files

Jump to

Keyboard shortcuts

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