Documentation ¶
Index ¶
- type CloudlocationLocation
- type CloudoperationOperation
- func (m *CloudoperationOperation) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CloudoperationOperation) MarshalBinary() ([]byte, error)
- func (m *CloudoperationOperation) UnmarshalBinary(b []byte) error
- func (m *CloudoperationOperation) Validate(formats strfmt.Registry) error
- type CommonPaginationRequest
- func (m *CommonPaginationRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CommonPaginationRequest) MarshalBinary() ([]byte, error)
- func (m *CommonPaginationRequest) UnmarshalBinary(b []byte) error
- func (m *CommonPaginationRequest) Validate(formats strfmt.Registry) error
- type CommonPaginationResponse
- func (m *CommonPaginationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CommonPaginationResponse) MarshalBinary() ([]byte, error)
- func (m *CommonPaginationResponse) UnmarshalBinary(b []byte) error
- func (m *CommonPaginationResponse) Validate(formats strfmt.Registry) error
- type LocationLink
- type LocationRegion
- type OperationState
- type OrganizationOrganizationState
- type ProjectProjectState
- type ProtobufAny
- type RPCStatus
- type ResourceIDResourceType
- type ResourcemanagerOrganization
- func (m *ResourcemanagerOrganization) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganization) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganization) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganization) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationCreateRequest
- func (m *ResourcemanagerOrganizationCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationCreateRequest) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationCreateRequest) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationCreateRequest) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationCreateResponse
- func (m *ResourcemanagerOrganizationCreateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationCreateResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationCreateResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationCreateResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationGetIamPolicyResponse
- func (m *ResourcemanagerOrganizationGetIamPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationGetIamPolicyResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationGetIamPolicyResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationGetIamPolicyResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationGetResponse
- func (m *ResourcemanagerOrganizationGetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationGetResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationGetResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationGetResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationGetRoleResponse
- func (m *ResourcemanagerOrganizationGetRoleResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationGetRoleResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationGetRoleResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationGetRoleResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationListResponse
- func (m *ResourcemanagerOrganizationListResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationListResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationListResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationListResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationListRolesResponse
- func (m *ResourcemanagerOrganizationListRolesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationListRolesResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationListRolesResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationListRolesResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationOwner
- func (m *ResourcemanagerOrganizationOwner) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationOwner) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationOwner) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationOwner) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationSetIamPolicyResponse
- func (m *ResourcemanagerOrganizationSetIamPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationSetIamPolicyResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationSetIamPolicyResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationSetIamPolicyResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationSetNameResponse
- func (m *ResourcemanagerOrganizationSetNameResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationSetNameResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationSetNameResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationSetNameResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerOrganizationTestIamPermissionsResponse
- func (m *ResourcemanagerOrganizationTestIamPermissionsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerOrganizationTestIamPermissionsResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerOrganizationTestIamPermissionsResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerOrganizationTestIamPermissionsResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerPolicy
- type ResourcemanagerPolicyBinding
- func (m *ResourcemanagerPolicyBinding) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerPolicyBinding) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerPolicyBinding) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerPolicyBinding) Validate(formats strfmt.Registry) error
- type ResourcemanagerPolicyBindingMember
- func (m *ResourcemanagerPolicyBindingMember) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerPolicyBindingMember) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerPolicyBindingMember) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerPolicyBindingMember) Validate(formats strfmt.Registry) error
- type ResourcemanagerPolicyBindingMemberType
- func (m ResourcemanagerPolicyBindingMemberType) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m ResourcemanagerPolicyBindingMemberType) Pointer() *ResourcemanagerPolicyBindingMemberType
- func (m ResourcemanagerPolicyBindingMemberType) Validate(formats strfmt.Registry) error
- type ResourcemanagerProject
- func (m *ResourcemanagerProject) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerProject) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerProject) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerProject) Validate(formats strfmt.Registry) error
- type ResourcemanagerProjectCreateRequest
- func (m *ResourcemanagerProjectCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerProjectCreateRequest) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerProjectCreateRequest) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerProjectCreateRequest) Validate(formats strfmt.Registry) error
- type ResourcemanagerProjectCreateResponse
- func (m *ResourcemanagerProjectCreateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerProjectCreateResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerProjectCreateResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerProjectCreateResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerProjectDeleteResponse
- func (m *ResourcemanagerProjectDeleteResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerProjectDeleteResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerProjectDeleteResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerProjectDeleteResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerProjectGetIamPolicyResponse
- func (m *ResourcemanagerProjectGetIamPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerProjectGetIamPolicyResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerProjectGetIamPolicyResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerProjectGetIamPolicyResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerProjectGetResponse
- func (m *ResourcemanagerProjectGetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerProjectGetResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerProjectGetResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerProjectGetResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerProjectListResponse
- func (m *ResourcemanagerProjectListResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerProjectListResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerProjectListResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerProjectListResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerProjectSetIamPolicyResponse
- func (m *ResourcemanagerProjectSetIamPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerProjectSetIamPolicyResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerProjectSetIamPolicyResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerProjectSetIamPolicyResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerResource
- func (m *ResourcemanagerResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerResource) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerResource) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerResource) Validate(formats strfmt.Registry) error
- type ResourcemanagerResourceID
- func (m *ResourcemanagerResourceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerResourceID) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerResourceID) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerResourceID) Validate(formats strfmt.Registry) error
- type ResourcemanagerResourceListResponse
- func (m *ResourcemanagerResourceListResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourcemanagerResourceListResponse) MarshalBinary() ([]byte, error)
- func (m *ResourcemanagerResourceListResponse) UnmarshalBinary(b []byte) error
- func (m *ResourcemanagerResourceListResponse) Validate(formats strfmt.Registry) error
- type ResourcemanagerRole
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 ¶
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
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
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
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
type LocationLink ¶
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 ¶
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
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 ¶
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
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 ¶
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.
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 NewOrganizationOrganizationState ¶
func NewOrganizationOrganizationState(value OrganizationOrganizationState) *OrganizationOrganizationState
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 ¶
func (m OrganizationOrganizationState) Pointer() *OrganizationOrganizationState
Pointer returns a pointer to a freshly-allocated OrganizationOrganizationState.
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 ¶
ContextValidate validates this project project state based on context it is used
func (ProjectProjectState) Pointer ¶
func (m ProjectProjectState) Pointer() *ProjectProjectState
Pointer returns a pointer to a freshly-allocated ProjectProjectState.
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 ¶
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
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 ¶
ContextValidate validate this rpc status based on the context it is used
func (*RPCStatus) MarshalBinary ¶
MarshalBinary interface implementation
func (*RPCStatus) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validates this resource ID resource type based on context it is used
func (ResourceIDResourceType) Pointer ¶
func (m ResourceIDResourceType) Pointer() *ResourceIDResourceType
Pointer returns a pointer to a freshly-allocated ResourceIDResourceType.
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
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 ¶
func (m *ResourcemanagerOrganizationCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (m *ResourcemanagerOrganizationCreateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (m *ResourcemanagerOrganizationGetIamPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this resourcemanager organization get iam policy response based on the context it is used
func (*ResourcemanagerOrganizationGetIamPolicyResponse) MarshalBinary ¶
func (m *ResourcemanagerOrganizationGetIamPolicyResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResourcemanagerOrganizationGetIamPolicyResponse) UnmarshalBinary ¶
func (m *ResourcemanagerOrganizationGetIamPolicyResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (m *ResourcemanagerOrganizationGetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (m *ResourcemanagerOrganizationGetRoleResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (m *ResourcemanagerOrganizationListResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (m *ResourcemanagerOrganizationListRolesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this resourcemanager organization list roles response based on the context it is used
func (*ResourcemanagerOrganizationListRolesResponse) MarshalBinary ¶
func (m *ResourcemanagerOrganizationListRolesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResourcemanagerOrganizationListRolesResponse) UnmarshalBinary ¶
func (m *ResourcemanagerOrganizationListRolesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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 ¶
func (m *ResourcemanagerOrganizationSetIamPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this resourcemanager organization set iam policy response based on the context it is used
func (*ResourcemanagerOrganizationSetIamPolicyResponse) MarshalBinary ¶
func (m *ResourcemanagerOrganizationSetIamPolicyResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResourcemanagerOrganizationSetIamPolicyResponse) UnmarshalBinary ¶
func (m *ResourcemanagerOrganizationSetIamPolicyResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (m *ResourcemanagerOrganizationSetNameResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (m *ResourcemanagerOrganizationTestIamPermissionsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this resourcemanager organization test iam permissions response based on context it is used
func (*ResourcemanagerOrganizationTestIamPermissionsResponse) MarshalBinary ¶
func (m *ResourcemanagerOrganizationTestIamPermissionsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResourcemanagerOrganizationTestIamPermissionsResponse) UnmarshalBinary ¶
func (m *ResourcemanagerOrganizationTestIamPermissionsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
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
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
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
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 NewResourcemanagerPolicyBindingMemberType ¶
func NewResourcemanagerPolicyBindingMemberType(value ResourcemanagerPolicyBindingMemberType) *ResourcemanagerPolicyBindingMemberType
func (ResourcemanagerPolicyBindingMemberType) ContextValidate ¶
func (m ResourcemanagerPolicyBindingMemberType) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this resourcemanager policy binding member type based on context it is used
func (ResourcemanagerPolicyBindingMemberType) Pointer ¶
func (m ResourcemanagerPolicyBindingMemberType) Pointer() *ResourcemanagerPolicyBindingMemberType
Pointer returns a pointer to a freshly-allocated ResourcemanagerPolicyBindingMemberType.
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
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
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
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
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 ¶
func (m *ResourcemanagerProjectGetIamPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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
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
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 ¶
func (m *ResourcemanagerProjectSetIamPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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
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
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
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 ¶
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
Source Files ¶
- cloudlocation_location.go
- cloudoperation_operation.go
- common_pagination_request.go
- common_pagination_response.go
- location_link.go
- location_region.go
- operation_state.go
- organization_organization_state.go
- project_project_state.go
- protobuf_any.go
- resource_id_resource_type.go
- resourcemanager_organization.go
- resourcemanager_organization_create_request.go
- resourcemanager_organization_create_response.go
- resourcemanager_organization_get_iam_policy_response.go
- resourcemanager_organization_get_response.go
- resourcemanager_organization_get_role_response.go
- resourcemanager_organization_list_response.go
- resourcemanager_organization_list_roles_response.go
- resourcemanager_organization_owner.go
- resourcemanager_organization_set_iam_policy_response.go
- resourcemanager_organization_set_name_response.go
- resourcemanager_organization_test_iam_permissions_response.go
- resourcemanager_policy.go
- resourcemanager_policy_binding.go
- resourcemanager_policy_binding_member.go
- resourcemanager_policy_binding_member_type.go
- resourcemanager_project.go
- resourcemanager_project_create_request.go
- resourcemanager_project_create_response.go
- resourcemanager_project_delete_response.go
- resourcemanager_project_get_iam_policy_response.go
- resourcemanager_project_get_response.go
- resourcemanager_project_list_response.go
- resourcemanager_project_set_iam_policy_response.go
- resourcemanager_resource.go
- resourcemanager_resource_id.go
- resourcemanager_resource_list_response.go
- resourcemanager_role.go
- rpc_status.go