licensemanagerpb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LicenseType_name = map[int32]string{
		0: "LICENSE_TYPE_UNSPECIFIED",
		1: "LICENSE_TYPE_PER_MONTH_PER_USER",
		2: "LICENSE_TYPE_BRING_YOUR_OWN_LICENSE",
	}
	LicenseType_value = map[string]int32{
		"LICENSE_TYPE_UNSPECIFIED":            0,
		"LICENSE_TYPE_PER_MONTH_PER_USER":     1,
		"LICENSE_TYPE_BRING_YOUR_OWN_LICENSE": 2,
	}
)

Enum value maps for LicenseType.

View Source
var (
	ActivationState_name = map[int32]string{
		0: "ACTIVATION_STATE_UNSPECIFIED",
		1: "ACTIVATION_STATE_KEY_REQUESTED",
		2: "ACTIVATION_STATE_ACTIVATING",
		3: "ACTIVATION_STATE_ACTIVATED",
		4: "ACTIVATION_STATE_DEACTIVATING",
		5: "ACTIVATION_STATE_DEACTIVATED",
		6: "ACTIVATION_STATE_TERMINATED",
	}
	ActivationState_value = map[string]int32{
		"ACTIVATION_STATE_UNSPECIFIED":   0,
		"ACTIVATION_STATE_KEY_REQUESTED": 1,
		"ACTIVATION_STATE_ACTIVATING":    2,
		"ACTIVATION_STATE_ACTIVATED":     3,
		"ACTIVATION_STATE_DEACTIVATING":  4,
		"ACTIVATION_STATE_DEACTIVATED":   5,
		"ACTIVATION_STATE_TERMINATED":    6,
	}
)

Enum value maps for ActivationState.

View Source
var (
	Configuration_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_ACTIVE",
		2: "STATE_SUSPENDED",
		3: "STATE_DELETED",
	}
	Configuration_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"STATE_ACTIVE":      1,
		"STATE_SUSPENDED":   2,
		"STATE_DELETED":     3,
	}
)

Enum value maps for Configuration_State.

View Source
var (
	Product_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_PROVISIONING",
		2: "STATE_RUNNING",
		3: "STATE_TERMINATING",
		4: "STATE_TERMINATED",
	}
	Product_State_value = map[string]int32{
		"STATE_UNSPECIFIED":  0,
		"STATE_PROVISIONING": 1,
		"STATE_RUNNING":      2,
		"STATE_TERMINATING":  3,
		"STATE_TERMINATED":   4,
	}
)

Enum value maps for Product_State.

View Source
var (
	Instance_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PROVISIONING",
		2: "STAGING",
		3: "RUNNING",
		4: "STOPPING",
		5: "STOPPED",
		6: "TERMINATED",
		7: "REPAIRING",
	}
	Instance_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PROVISIONING":      1,
		"STAGING":           2,
		"RUNNING":           3,
		"STOPPING":          4,
		"STOPPED":           5,
		"TERMINATED":        6,
		"REPAIRING":         7,
	}
)

Enum value maps for Instance_State.

View Source
var File_google_cloud_licensemanager_v1_api_entities_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_licensemanager_v1_licensemanager_proto protoreflect.FileDescriptor

Functions

func RegisterLicenseManagerServer

func RegisterLicenseManagerServer(s *grpc.Server, srv LicenseManagerServer)

Types

type ActivationState

type ActivationState int32

State of the License Key activation on the instance.

const (
	// The Status of the activation is unspecified
	ActivationState_ACTIVATION_STATE_UNSPECIFIED ActivationState = 0
	// Activation key (MAK) requested for the instance.
	ActivationState_ACTIVATION_STATE_KEY_REQUESTED ActivationState = 1
	// License activation process is running on the instance.
	ActivationState_ACTIVATION_STATE_ACTIVATING ActivationState = 2
	// License activation is complete on the instance.
	ActivationState_ACTIVATION_STATE_ACTIVATED ActivationState = 3
	// License Key is deactivating on the instance.
	ActivationState_ACTIVATION_STATE_DEACTIVATING ActivationState = 4
	// License Key is deactivated on the instance.
	ActivationState_ACTIVATION_STATE_DEACTIVATED ActivationState = 5
	// License Key activation failed on the instance.
	ActivationState_ACTIVATION_STATE_TERMINATED ActivationState = 6
)

func (ActivationState) Descriptor

func (ActivationState) Enum

func (x ActivationState) Enum() *ActivationState

func (ActivationState) EnumDescriptor deprecated

func (ActivationState) EnumDescriptor() ([]byte, []int)

Deprecated: Use ActivationState.Descriptor instead.

func (ActivationState) Number

func (ActivationState) String

func (x ActivationState) String() string

func (ActivationState) Type

type AggregateUsageRequest

type AggregateUsageRequest struct {

	// Required. Parent value for AggregateUsageRequest
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. Requested page size. Server may return fewer items than
	// requested. If unspecified, server will pick an appropriate default.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A token identifying a page of results the server should return.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. Filtering results
	Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. Hint for how to order the results
	OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// Required. Licenses are purchased per month - so usage track needs start
	// time of a month.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Required. Usage track is always for a month. This parameter is for the end
	// time of the month.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Message for requesting aggregate of Usage per configuration.

func (*AggregateUsageRequest) Descriptor deprecated

func (*AggregateUsageRequest) Descriptor() ([]byte, []int)

Deprecated: Use AggregateUsageRequest.ProtoReflect.Descriptor instead.

func (*AggregateUsageRequest) GetEndTime

func (x *AggregateUsageRequest) GetEndTime() *timestamppb.Timestamp

func (*AggregateUsageRequest) GetFilter

func (x *AggregateUsageRequest) GetFilter() string

func (*AggregateUsageRequest) GetName

func (x *AggregateUsageRequest) GetName() string

func (*AggregateUsageRequest) GetOrderBy

func (x *AggregateUsageRequest) GetOrderBy() string

func (*AggregateUsageRequest) GetPageSize

func (x *AggregateUsageRequest) GetPageSize() int32

func (*AggregateUsageRequest) GetPageToken

func (x *AggregateUsageRequest) GetPageToken() string

func (*AggregateUsageRequest) GetStartTime

func (x *AggregateUsageRequest) GetStartTime() *timestamppb.Timestamp

func (*AggregateUsageRequest) ProtoMessage

func (*AggregateUsageRequest) ProtoMessage()

func (*AggregateUsageRequest) ProtoReflect

func (x *AggregateUsageRequest) ProtoReflect() protoreflect.Message

func (*AggregateUsageRequest) Reset

func (x *AggregateUsageRequest) Reset()

func (*AggregateUsageRequest) String

func (x *AggregateUsageRequest) String() string

type AggregateUsageResponse

type AggregateUsageResponse struct {

	// The aggregated records of usage per configuration
	Usages []*Usage `protobuf:"bytes,1,rep,name=usages,proto3" json:"usages,omitempty"`
	// A token identifying a page of results the server should return.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Locations that could not be reached.
	Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
	// contains filtered or unexported fields
}

Message for response for aggregating usage count

func (*AggregateUsageResponse) Descriptor deprecated

func (*AggregateUsageResponse) Descriptor() ([]byte, []int)

Deprecated: Use AggregateUsageResponse.ProtoReflect.Descriptor instead.

func (*AggregateUsageResponse) GetNextPageToken

func (x *AggregateUsageResponse) GetNextPageToken() string

func (*AggregateUsageResponse) GetUnreachable

func (x *AggregateUsageResponse) GetUnreachable() []string

func (*AggregateUsageResponse) GetUsages

func (x *AggregateUsageResponse) GetUsages() []*Usage

func (*AggregateUsageResponse) ProtoMessage

func (*AggregateUsageResponse) ProtoMessage()

func (*AggregateUsageResponse) ProtoReflect

func (x *AggregateUsageResponse) ProtoReflect() protoreflect.Message

func (*AggregateUsageResponse) Reset

func (x *AggregateUsageResponse) Reset()

func (*AggregateUsageResponse) String

func (x *AggregateUsageResponse) String() string

type BillingInfo

type BillingInfo struct {

	// Types that are assignable to CurrentBillingInfo:
	//
	//	*BillingInfo_UserCountBilling
	CurrentBillingInfo isBillingInfo_CurrentBillingInfo `protobuf_oneof:"current_billing_info"`
	// Output only. When the billing starts.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Output only. When the billing ends.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Billing Information.

func (*BillingInfo) Descriptor deprecated

func (*BillingInfo) Descriptor() ([]byte, []int)

Deprecated: Use BillingInfo.ProtoReflect.Descriptor instead.

func (*BillingInfo) GetCurrentBillingInfo

func (m *BillingInfo) GetCurrentBillingInfo() isBillingInfo_CurrentBillingInfo

func (*BillingInfo) GetEndTime

func (x *BillingInfo) GetEndTime() *timestamppb.Timestamp

func (*BillingInfo) GetStartTime

func (x *BillingInfo) GetStartTime() *timestamppb.Timestamp

func (*BillingInfo) GetUserCountBilling

func (x *BillingInfo) GetUserCountBilling() *UserCountBillingInfo

func (*BillingInfo) ProtoMessage

func (*BillingInfo) ProtoMessage()

func (*BillingInfo) ProtoReflect

func (x *BillingInfo) ProtoReflect() protoreflect.Message

func (*BillingInfo) Reset

func (x *BillingInfo) Reset()

func (*BillingInfo) String

func (x *BillingInfo) String() string

type BillingInfo_UserCountBilling

type BillingInfo_UserCountBilling struct {
	// Required. This type of billing uses user count for computing total
	// charge.
	UserCountBilling *UserCountBillingInfo `protobuf:"bytes,1,opt,name=user_count_billing,json=userCountBilling,proto3,oneof"`
}

type Configuration

type Configuration struct {

	// Identifier. name of resource
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. User given name.
	DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Required. Name field (with URL) of the Product offered for SPLA.
	Product string `protobuf:"bytes,6,opt,name=product,proto3" json:"product,omitempty"`
	// Required. LicenseType to be applied for billing
	LicenseType LicenseType `` /* 143-byte string literal not displayed */
	// Required. Billing information applicable till end of the current month.
	CurrentBillingInfo *BillingInfo `protobuf:"bytes,8,opt,name=current_billing_info,json=currentBillingInfo,proto3" json:"current_billing_info,omitempty"`
	// Required. Billing information applicable for next month.
	NextBillingInfo *BillingInfo `protobuf:"bytes,9,opt,name=next_billing_info,json=nextBillingInfo,proto3" json:"next_billing_info,omitempty"`
	// Output only. [Output only] Create time stamp
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. [Output only] Update time stamp
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Optional. Labels as key value pairs
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Output only. State of the configuration.
	State Configuration_State `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.licensemanager.v1.Configuration_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

Configuration for a Google SPLA product

func (*Configuration) Descriptor deprecated

func (*Configuration) Descriptor() ([]byte, []int)

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetCreateTime

func (x *Configuration) GetCreateTime() *timestamppb.Timestamp

func (*Configuration) GetCurrentBillingInfo

func (x *Configuration) GetCurrentBillingInfo() *BillingInfo

func (*Configuration) GetDisplayName

func (x *Configuration) GetDisplayName() string

func (*Configuration) GetLabels

func (x *Configuration) GetLabels() map[string]string

func (*Configuration) GetLicenseType

func (x *Configuration) GetLicenseType() LicenseType

func (*Configuration) GetName

func (x *Configuration) GetName() string

func (*Configuration) GetNextBillingInfo

func (x *Configuration) GetNextBillingInfo() *BillingInfo

func (*Configuration) GetProduct

func (x *Configuration) GetProduct() string

func (*Configuration) GetState

func (x *Configuration) GetState() Configuration_State

func (*Configuration) GetUpdateTime

func (x *Configuration) GetUpdateTime() *timestamppb.Timestamp

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

func (x *Configuration) ProtoReflect() protoreflect.Message

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

type Configuration_State

type Configuration_State int32

State of the configuration.

const (
	// The Status of the configuration is unspecified
	Configuration_STATE_UNSPECIFIED Configuration_State = 0
	// Configuration is in active state.
	Configuration_STATE_ACTIVE Configuration_State = 1
	// Configuration is in deactivated state.
	Configuration_STATE_SUSPENDED Configuration_State = 2
	// Configuration is in deleted state.
	Configuration_STATE_DELETED Configuration_State = 3
)

func (Configuration_State) Descriptor

func (Configuration_State) Enum

func (Configuration_State) EnumDescriptor deprecated

func (Configuration_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_State.Descriptor instead.

func (Configuration_State) Number

func (Configuration_State) String

func (x Configuration_State) String() string

func (Configuration_State) Type

type CreateConfigurationRequest

type CreateConfigurationRequest struct {

	// Required. Value for parent.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. Id of the requesting object
	ConfigurationId string `protobuf:"bytes,2,opt,name=configuration_id,json=configurationId,proto3" json:"configuration_id,omitempty"`
	// Required. The resource being created
	Configuration *Configuration `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"`
	// Optional. An optional request ID to identify requests. Specify a unique
	// request ID so that if you must retry your request, the server will know to
	// ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes since the first request.
	//
	// For example, consider a situation where you make an initial request and the
	// request times out. If you make the request again with the same request
	// ID, the server can check if original operation with the same request ID
	// was received, and if so, will ignore the second request. This prevents
	// clients from accidentally creating duplicate commitments.
	//
	// The request ID must be a valid UUID with the exception that zero UUID is
	// not supported (00000000-0000-0000-0000-000000000000).
	RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Message for creating a Configuration

func (*CreateConfigurationRequest) Descriptor deprecated

func (*CreateConfigurationRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateConfigurationRequest.ProtoReflect.Descriptor instead.

func (*CreateConfigurationRequest) GetConfiguration

func (x *CreateConfigurationRequest) GetConfiguration() *Configuration

func (*CreateConfigurationRequest) GetConfigurationId

func (x *CreateConfigurationRequest) GetConfigurationId() string

func (*CreateConfigurationRequest) GetParent

func (x *CreateConfigurationRequest) GetParent() string

func (*CreateConfigurationRequest) GetRequestId

func (x *CreateConfigurationRequest) GetRequestId() string

func (*CreateConfigurationRequest) ProtoMessage

func (*CreateConfigurationRequest) ProtoMessage()

func (*CreateConfigurationRequest) ProtoReflect

func (*CreateConfigurationRequest) Reset

func (x *CreateConfigurationRequest) Reset()

func (*CreateConfigurationRequest) String

func (x *CreateConfigurationRequest) String() string

type DeactivateConfigurationRequest

type DeactivateConfigurationRequest struct {

	// Required. Name of the resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. An optional request ID to identify requests. Specify a unique
	// request ID so that if you must retry your request, the server will know to
	// ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes after the first request.
	//
	// For example, consider a situation where you make an initial request and
	// the request times out. If you make the request again with the same request
	// ID, the server can check if original operation with the same request ID
	// was received, and if so, will ignore the second request. This prevents
	// clients from accidentally creating duplicate commitments.
	//
	// The request ID must be a valid UUID with the exception that zero UUID is
	// not supported (00000000-0000-0000-0000-000000000000).
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Message for deactivating a Configuration.

func (*DeactivateConfigurationRequest) Descriptor deprecated

func (*DeactivateConfigurationRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeactivateConfigurationRequest.ProtoReflect.Descriptor instead.

func (*DeactivateConfigurationRequest) GetName

func (*DeactivateConfigurationRequest) GetRequestId

func (x *DeactivateConfigurationRequest) GetRequestId() string

func (*DeactivateConfigurationRequest) ProtoMessage

func (*DeactivateConfigurationRequest) ProtoMessage()

func (*DeactivateConfigurationRequest) ProtoReflect

func (*DeactivateConfigurationRequest) Reset

func (x *DeactivateConfigurationRequest) Reset()

func (*DeactivateConfigurationRequest) String

type DeleteConfigurationRequest

type DeleteConfigurationRequest struct {

	// Required. Name of the resource
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. An optional request ID to identify requests. Specify a unique
	// request ID so that if you must retry your request, the server will know to
	// ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes after the first request.
	//
	// For example, consider a situation where you make an initial request and the
	// request times out. If you make the request again with the same request
	// ID, the server can check if original operation with the same request ID
	// was received, and if so, will ignore the second request. This prevents
	// clients from accidentally creating duplicate commitments.
	//
	// The request ID must be a valid UUID with the exception that zero UUID is
	// not supported (00000000-0000-0000-0000-000000000000).
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Message for deleting a Configuration

func (*DeleteConfigurationRequest) Descriptor deprecated

func (*DeleteConfigurationRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteConfigurationRequest.ProtoReflect.Descriptor instead.

func (*DeleteConfigurationRequest) GetName

func (x *DeleteConfigurationRequest) GetName() string

func (*DeleteConfigurationRequest) GetRequestId

func (x *DeleteConfigurationRequest) GetRequestId() string

func (*DeleteConfigurationRequest) ProtoMessage

func (*DeleteConfigurationRequest) ProtoMessage()

func (*DeleteConfigurationRequest) ProtoReflect

func (*DeleteConfigurationRequest) Reset

func (x *DeleteConfigurationRequest) Reset()

func (*DeleteConfigurationRequest) String

func (x *DeleteConfigurationRequest) String() string

type GetConfigurationRequest

type GetConfigurationRequest struct {

	// Required. Name of the resource
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Message for getting a Configuration

func (*GetConfigurationRequest) Descriptor deprecated

func (*GetConfigurationRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetConfigurationRequest.ProtoReflect.Descriptor instead.

func (*GetConfigurationRequest) GetName

func (x *GetConfigurationRequest) GetName() string

func (*GetConfigurationRequest) ProtoMessage

func (*GetConfigurationRequest) ProtoMessage()

func (*GetConfigurationRequest) ProtoReflect

func (x *GetConfigurationRequest) ProtoReflect() protoreflect.Message

func (*GetConfigurationRequest) Reset

func (x *GetConfigurationRequest) Reset()

func (*GetConfigurationRequest) String

func (x *GetConfigurationRequest) String() string

type GetInstanceRequest

type GetInstanceRequest struct {

	// Required. Name of the resource
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Message for getting a Instance

func (*GetInstanceRequest) Descriptor deprecated

func (*GetInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetInstanceRequest.ProtoReflect.Descriptor instead.

func (*GetInstanceRequest) GetName

func (x *GetInstanceRequest) GetName() string

func (*GetInstanceRequest) ProtoMessage

func (*GetInstanceRequest) ProtoMessage()

func (*GetInstanceRequest) ProtoReflect

func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message

func (*GetInstanceRequest) Reset

func (x *GetInstanceRequest) Reset()

func (*GetInstanceRequest) String

func (x *GetInstanceRequest) String() string

type GetProductRequest

type GetProductRequest struct {

	// Required. Name of the resource
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Message for getting a Product

func (*GetProductRequest) Descriptor deprecated

func (*GetProductRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.

func (*GetProductRequest) GetName

func (x *GetProductRequest) GetName() string

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) ProtoReflect

func (x *GetProductRequest) ProtoReflect() protoreflect.Message

func (*GetProductRequest) Reset

func (x *GetProductRequest) Reset()

func (*GetProductRequest) String

func (x *GetProductRequest) String() string

type Instance

type Instance struct {

	// Identifier. name of resource
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. [Output only] Create time stamp
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. [Output only] Update time stamp
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Optional. Labels as key value pairs
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Output only. The state of the VM.
	State Instance_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.licensemanager.v1.Instance_State" json:"state,omitempty"`
	// Output only. The location of the VM.
	Region string `protobuf:"bytes,6,opt,name=region,proto3" json:"region,omitempty"`
	// Output only. Map with Product_Name and Activation State of the VM.
	ProductActivation map[string]ActivationState `` /* 253-byte string literal not displayed */
	// Output only. license version id.
	LicenseVersionId string `protobuf:"bytes,8,opt,name=license_version_id,json=licenseVersionId,proto3" json:"license_version_id,omitempty"`
	// Required. Compute Instance resource name, i.e.
	// projects/{project}/zones/{zone}/instances/{instance}
	ComputeInstance string `protobuf:"bytes,9,opt,name=compute_instance,json=computeInstance,proto3" json:"compute_instance,omitempty"`
	// contains filtered or unexported fields
}

Message describing Instance object

func (*Instance) Descriptor deprecated

func (*Instance) Descriptor() ([]byte, []int)

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetComputeInstance

func (x *Instance) GetComputeInstance() string

func (*Instance) GetCreateTime

func (x *Instance) GetCreateTime() *timestamppb.Timestamp

func (*Instance) GetLabels

func (x *Instance) GetLabels() map[string]string

func (*Instance) GetLicenseVersionId

func (x *Instance) GetLicenseVersionId() string

func (*Instance) GetName

func (x *Instance) GetName() string

func (*Instance) GetProductActivation

func (x *Instance) GetProductActivation() map[string]ActivationState

func (*Instance) GetRegion

func (x *Instance) GetRegion() string

func (*Instance) GetState

func (x *Instance) GetState() Instance_State

func (*Instance) GetUpdateTime

func (x *Instance) GetUpdateTime() *timestamppb.Timestamp

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

func (x *Instance) ProtoReflect() protoreflect.Message

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

type Instance_State

type Instance_State int32

VM status enum.

const (
	// The Status of the VM is unspecified.
	Instance_STATE_UNSPECIFIED Instance_State = 0
	// Resources are being allocated for the instance.
	Instance_PROVISIONING Instance_State = 1
	// All required resources have been allocated and
	// the instance is being started.
	Instance_STAGING Instance_State = 2
	// The instance is running.
	Instance_RUNNING Instance_State = 3
	// The instance is currently stopping (either being deleted or terminated).
	Instance_STOPPING Instance_State = 4
	// The instance has stopped due to various reasons (user request, VM
	// preemption, project freezing, etc.).
	Instance_STOPPED Instance_State = 5
	// The instance has failed in some way.
	Instance_TERMINATED Instance_State = 6
	// The instance is in repair.
	Instance_REPAIRING Instance_State = 7
)

func (Instance_State) Descriptor

func (Instance_State) Enum

func (x Instance_State) Enum() *Instance_State

func (Instance_State) EnumDescriptor deprecated

func (Instance_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Instance_State.Descriptor instead.

func (Instance_State) Number

func (Instance_State) String

func (x Instance_State) String() string

func (Instance_State) Type

type LicenseManagerClient

type LicenseManagerClient interface {
	// Lists Configurations in a given project and location.
	ListConfigurations(ctx context.Context, in *ListConfigurationsRequest, opts ...grpc.CallOption) (*ListConfigurationsResponse, error)
	// Gets details of a single Configuration.
	GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*Configuration, error)
	// Creates a new Configuration in a given project and location.
	CreateConfiguration(ctx context.Context, in *CreateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Updates the parameters of a single Configuration.
	UpdateConfiguration(ctx context.Context, in *UpdateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes a single Configuration.
	DeleteConfiguration(ctx context.Context, in *DeleteConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Lists Instances in a given project and location.
	ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error)
	// Gets details of a single Instance.
	GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
	// Deactivates the given configuration.
	DeactivateConfiguration(ctx context.Context, in *DeactivateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Reactivates the given configuration.
	ReactivateConfiguration(ctx context.Context, in *ReactivateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// License Usage information for a Configuration.
	QueryConfigurationLicenseUsage(ctx context.Context, in *QueryConfigurationLicenseUsageRequest, opts ...grpc.CallOption) (*QueryConfigurationLicenseUsageResponse, error)
	// Aggregates Usage per Instance for a Configuration.
	AggregateUsage(ctx context.Context, in *AggregateUsageRequest, opts ...grpc.CallOption) (*AggregateUsageResponse, error)
	// Lists Products in a given project and location.
	ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsResponse, error)
	// Gets details of a single Product.
	GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error)
}

LicenseManagerClient is the client API for LicenseManager service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type LicenseManagerServer

type LicenseManagerServer interface {
	// Lists Configurations in a given project and location.
	ListConfigurations(context.Context, *ListConfigurationsRequest) (*ListConfigurationsResponse, error)
	// Gets details of a single Configuration.
	GetConfiguration(context.Context, *GetConfigurationRequest) (*Configuration, error)
	// Creates a new Configuration in a given project and location.
	CreateConfiguration(context.Context, *CreateConfigurationRequest) (*longrunningpb.Operation, error)
	// Updates the parameters of a single Configuration.
	UpdateConfiguration(context.Context, *UpdateConfigurationRequest) (*longrunningpb.Operation, error)
	// Deletes a single Configuration.
	DeleteConfiguration(context.Context, *DeleteConfigurationRequest) (*longrunningpb.Operation, error)
	// Lists Instances in a given project and location.
	ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
	// Gets details of a single Instance.
	GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
	// Deactivates the given configuration.
	DeactivateConfiguration(context.Context, *DeactivateConfigurationRequest) (*longrunningpb.Operation, error)
	// Reactivates the given configuration.
	ReactivateConfiguration(context.Context, *ReactivateConfigurationRequest) (*longrunningpb.Operation, error)
	// License Usage information for a Configuration.
	QueryConfigurationLicenseUsage(context.Context, *QueryConfigurationLicenseUsageRequest) (*QueryConfigurationLicenseUsageResponse, error)
	// Aggregates Usage per Instance for a Configuration.
	AggregateUsage(context.Context, *AggregateUsageRequest) (*AggregateUsageResponse, error)
	// Lists Products in a given project and location.
	ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error)
	// Gets details of a single Product.
	GetProduct(context.Context, *GetProductRequest) (*Product, error)
}

LicenseManagerServer is the server API for LicenseManager service.

type LicenseType

type LicenseType int32

Different types of licenses that are supported.

const (
	// unspecified.
	LicenseType_LICENSE_TYPE_UNSPECIFIED LicenseType = 0
	// Billing will be based on number of users listed per month.
	LicenseType_LICENSE_TYPE_PER_MONTH_PER_USER LicenseType = 1
	// Bring your own license.
	LicenseType_LICENSE_TYPE_BRING_YOUR_OWN_LICENSE LicenseType = 2
)

func (LicenseType) Descriptor

func (LicenseType) Enum

func (x LicenseType) Enum() *LicenseType

func (LicenseType) EnumDescriptor deprecated

func (LicenseType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LicenseType.Descriptor instead.

func (LicenseType) Number

func (x LicenseType) Number() protoreflect.EnumNumber

func (LicenseType) String

func (x LicenseType) String() string

func (LicenseType) Type

type ListConfigurationsRequest

type ListConfigurationsRequest struct {

	// Required. Parent value for ListConfigurationsRequest
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Requested page size. Server may return fewer items than
	// requested. If unspecified, server will pick an appropriate default.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A token identifying a page of results the server should return.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. Filtering results
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. Hint for how to order the results
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

Message for requesting list of Configurations

func (*ListConfigurationsRequest) Descriptor deprecated

func (*ListConfigurationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListConfigurationsRequest.ProtoReflect.Descriptor instead.

func (*ListConfigurationsRequest) GetFilter

func (x *ListConfigurationsRequest) GetFilter() string

func (*ListConfigurationsRequest) GetOrderBy

func (x *ListConfigurationsRequest) GetOrderBy() string

func (*ListConfigurationsRequest) GetPageSize

func (x *ListConfigurationsRequest) GetPageSize() int32

func (*ListConfigurationsRequest) GetPageToken

func (x *ListConfigurationsRequest) GetPageToken() string

func (*ListConfigurationsRequest) GetParent

func (x *ListConfigurationsRequest) GetParent() string

func (*ListConfigurationsRequest) ProtoMessage

func (*ListConfigurationsRequest) ProtoMessage()

func (*ListConfigurationsRequest) ProtoReflect

func (*ListConfigurationsRequest) Reset

func (x *ListConfigurationsRequest) Reset()

func (*ListConfigurationsRequest) String

func (x *ListConfigurationsRequest) String() string

type ListConfigurationsResponse

type ListConfigurationsResponse struct {

	// The list of Configuration
	Configurations []*Configuration `protobuf:"bytes,1,rep,name=configurations,proto3" json:"configurations,omitempty"`
	// A token identifying a page of results the server should return.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Locations that could not be reached.
	Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
	// contains filtered or unexported fields
}

Message for response to listing Configurations

func (*ListConfigurationsResponse) Descriptor deprecated

func (*ListConfigurationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListConfigurationsResponse.ProtoReflect.Descriptor instead.

func (*ListConfigurationsResponse) GetConfigurations

func (x *ListConfigurationsResponse) GetConfigurations() []*Configuration

func (*ListConfigurationsResponse) GetNextPageToken

func (x *ListConfigurationsResponse) GetNextPageToken() string

func (*ListConfigurationsResponse) GetUnreachable

func (x *ListConfigurationsResponse) GetUnreachable() []string

func (*ListConfigurationsResponse) ProtoMessage

func (*ListConfigurationsResponse) ProtoMessage()

func (*ListConfigurationsResponse) ProtoReflect

func (*ListConfigurationsResponse) Reset

func (x *ListConfigurationsResponse) Reset()

func (*ListConfigurationsResponse) String

func (x *ListConfigurationsResponse) String() string

type ListInstancesRequest

type ListInstancesRequest struct {

	// Required. Parent value for ListInstancesRequest
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Requested page size. Server may return fewer items than
	// requested. If unspecified, server will pick an appropriate default.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A token identifying a page of results the server should return.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. Filtering results
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. Hint for how to order the results
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

Message for requesting list of Instances

func (*ListInstancesRequest) Descriptor deprecated

func (*ListInstancesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListInstancesRequest.ProtoReflect.Descriptor instead.

func (*ListInstancesRequest) GetFilter

func (x *ListInstancesRequest) GetFilter() string

func (*ListInstancesRequest) GetOrderBy

func (x *ListInstancesRequest) GetOrderBy() string

func (*ListInstancesRequest) GetPageSize

func (x *ListInstancesRequest) GetPageSize() int32

func (*ListInstancesRequest) GetPageToken

func (x *ListInstancesRequest) GetPageToken() string

func (*ListInstancesRequest) GetParent

func (x *ListInstancesRequest) GetParent() string

func (*ListInstancesRequest) ProtoMessage

func (*ListInstancesRequest) ProtoMessage()

func (*ListInstancesRequest) ProtoReflect

func (x *ListInstancesRequest) ProtoReflect() protoreflect.Message

func (*ListInstancesRequest) Reset

func (x *ListInstancesRequest) Reset()

func (*ListInstancesRequest) String

func (x *ListInstancesRequest) String() string

type ListInstancesResponse

type ListInstancesResponse struct {

	// The list of Instance
	Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
	// A token identifying a page of results the server should return.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Locations that could not be reached.
	Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
	// contains filtered or unexported fields
}

Message for response to listing Instances

func (*ListInstancesResponse) Descriptor deprecated

func (*ListInstancesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListInstancesResponse.ProtoReflect.Descriptor instead.

func (*ListInstancesResponse) GetInstances

func (x *ListInstancesResponse) GetInstances() []*Instance

func (*ListInstancesResponse) GetNextPageToken

func (x *ListInstancesResponse) GetNextPageToken() string

func (*ListInstancesResponse) GetUnreachable

func (x *ListInstancesResponse) GetUnreachable() []string

func (*ListInstancesResponse) ProtoMessage

func (*ListInstancesResponse) ProtoMessage()

func (*ListInstancesResponse) ProtoReflect

func (x *ListInstancesResponse) ProtoReflect() protoreflect.Message

func (*ListInstancesResponse) Reset

func (x *ListInstancesResponse) Reset()

func (*ListInstancesResponse) String

func (x *ListInstancesResponse) String() string

type ListProductsRequest

type ListProductsRequest struct {

	// Required. Parent value for ListProductsRequest
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Requested page size. Server may return fewer items than
	// requested. If unspecified, server will pick an appropriate default.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A token identifying a page of results the server should return.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. Filtering results
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. Hint for how to order the results
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

Message for requesting list of Products

func (*ListProductsRequest) Descriptor deprecated

func (*ListProductsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsRequest.ProtoReflect.Descriptor instead.

func (*ListProductsRequest) GetFilter

func (x *ListProductsRequest) GetFilter() string

func (*ListProductsRequest) GetOrderBy

func (x *ListProductsRequest) GetOrderBy() string

func (*ListProductsRequest) GetPageSize

func (x *ListProductsRequest) GetPageSize() int32

func (*ListProductsRequest) GetPageToken

func (x *ListProductsRequest) GetPageToken() string

func (*ListProductsRequest) GetParent

func (x *ListProductsRequest) GetParent() string

func (*ListProductsRequest) ProtoMessage

func (*ListProductsRequest) ProtoMessage()

func (*ListProductsRequest) ProtoReflect

func (x *ListProductsRequest) ProtoReflect() protoreflect.Message

func (*ListProductsRequest) Reset

func (x *ListProductsRequest) Reset()

func (*ListProductsRequest) String

func (x *ListProductsRequest) String() string

type ListProductsResponse

type ListProductsResponse struct {

	// The list of Product
	Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	// A token identifying a page of results the server should return.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Locations that could not be reached.
	Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
	// contains filtered or unexported fields
}

Message for response to listing Products

func (*ListProductsResponse) Descriptor deprecated

func (*ListProductsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsResponse.ProtoReflect.Descriptor instead.

func (*ListProductsResponse) GetNextPageToken

func (x *ListProductsResponse) GetNextPageToken() string

func (*ListProductsResponse) GetProducts

func (x *ListProductsResponse) GetProducts() []*Product

func (*ListProductsResponse) GetUnreachable

func (x *ListProductsResponse) GetUnreachable() []string

func (*ListProductsResponse) ProtoMessage

func (*ListProductsResponse) ProtoMessage()

func (*ListProductsResponse) ProtoReflect

func (x *ListProductsResponse) ProtoReflect() protoreflect.Message

func (*ListProductsResponse) Reset

func (x *ListProductsResponse) Reset()

func (*ListProductsResponse) String

func (x *ListProductsResponse) String() string

type OperationMetadata

type OperationMetadata struct {

	// Output only. The time the operation was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time the operation finished running.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Output only. Server-defined resource path for the target of the operation.
	Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	// Output only. Name of the verb executed by the operation.
	Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
	// Output only. Human-readable status of the operation, if any.
	StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// Output only. Identifies whether the user has requested cancellation
	// of the operation. Operations that have been cancelled successfully
	// have
	// [google.longrunning.Operation.error][google.longrunning.Operation.error]
	// value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
	// corresponding to `Code.CANCELLED`.
	RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
	// Output only. API version used to start the operation.
	ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// contains filtered or unexported fields
}

Represents the metadata of the long-running operation.

func (*OperationMetadata) Descriptor deprecated

func (*OperationMetadata) Descriptor() ([]byte, []int)

Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.

func (*OperationMetadata) GetApiVersion

func (x *OperationMetadata) GetApiVersion() string

func (*OperationMetadata) GetCreateTime

func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp

func (*OperationMetadata) GetEndTime

func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp

func (*OperationMetadata) GetRequestedCancellation

func (x *OperationMetadata) GetRequestedCancellation() bool

func (*OperationMetadata) GetStatusMessage

func (x *OperationMetadata) GetStatusMessage() string

func (*OperationMetadata) GetTarget

func (x *OperationMetadata) GetTarget() string

func (*OperationMetadata) GetVerb

func (x *OperationMetadata) GetVerb() string

func (*OperationMetadata) ProtoMessage

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) ProtoReflect

func (x *OperationMetadata) ProtoReflect() protoreflect.Message

func (*OperationMetadata) Reset

func (x *OperationMetadata) Reset()

func (*OperationMetadata) String

func (x *OperationMetadata) String() string

type Product

type Product struct {

	// Identifier. Full name of the product resource.
	// ex "projects/1/locations/us-central1/products/office-2021"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. Version of the product.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Required. Company that released the product.
	ProductCompany string `protobuf:"bytes,3,opt,name=product_company,json=productCompany,proto3" json:"product_company,omitempty"`
	// Output only. State of the product.
	State Product_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.licensemanager.v1.Product_State" json:"state,omitempty"`
	// Required. SKU for mapping to the Billing/Subscription resource.
	Sku string `protobuf:"bytes,5,opt,name=sku,proto3" json:"sku,omitempty"`
	// Required. Human-readable, detailed description of the Product
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// Required. Human-readable name of the Product
	DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

Products for Google SPLA.

func (*Product) Descriptor deprecated

func (*Product) Descriptor() ([]byte, []int)

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) GetDescription

func (x *Product) GetDescription() string

func (*Product) GetDisplayName

func (x *Product) GetDisplayName() string

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetProductCompany

func (x *Product) GetProductCompany() string

func (*Product) GetSku

func (x *Product) GetSku() string

func (*Product) GetState

func (x *Product) GetState() Product_State

func (*Product) GetVersion

func (x *Product) GetVersion() string

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

func (x *Product) ProtoReflect() protoreflect.Message

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string

type Product_State

type Product_State int32

State of the product.

const (
	// The Status of the product is unknown.
	Product_STATE_UNSPECIFIED Product_State = 0
	// Product is under provisioning stage.
	Product_STATE_PROVISIONING Product_State = 1
	// Product is ok to run on instances.
	Product_STATE_RUNNING Product_State = 2
	// The product is about to terminate or has been announced for termination.
	Product_STATE_TERMINATING Product_State = 3
	// The product has been terminated.
	Product_STATE_TERMINATED Product_State = 4
)

func (Product_State) Descriptor

func (Product_State) Enum

func (x Product_State) Enum() *Product_State

func (Product_State) EnumDescriptor deprecated

func (Product_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Product_State.Descriptor instead.

func (Product_State) Number

func (Product_State) String

func (x Product_State) String() string

func (Product_State) Type

type QueryConfigurationLicenseUsageRequest

type QueryConfigurationLicenseUsageRequest struct {

	// Required. The resource path of the Configuration.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The start time for retrieving the usage. If not specified, we
	// will use the first day of the current billing period.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Required. The end time for retrieving the usage. If not specified, we will
	// use the last day of the current billing period.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Message for requesting license usage per configuration.

func (*QueryConfigurationLicenseUsageRequest) Descriptor deprecated

func (*QueryConfigurationLicenseUsageRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryConfigurationLicenseUsageRequest.ProtoReflect.Descriptor instead.

func (*QueryConfigurationLicenseUsageRequest) GetEndTime

func (*QueryConfigurationLicenseUsageRequest) GetName

func (*QueryConfigurationLicenseUsageRequest) GetStartTime

func (*QueryConfigurationLicenseUsageRequest) ProtoMessage

func (*QueryConfigurationLicenseUsageRequest) ProtoMessage()

func (*QueryConfigurationLicenseUsageRequest) ProtoReflect

func (*QueryConfigurationLicenseUsageRequest) Reset

func (*QueryConfigurationLicenseUsageRequest) String

type QueryConfigurationLicenseUsageResponse

type QueryConfigurationLicenseUsageResponse struct {

	// Depending on the type of the configuration, one of the following
	// will be populated.
	//
	// Types that are assignable to Details:
	//
	//	*QueryConfigurationLicenseUsageResponse_UserCountUsage
	Details isQueryConfigurationLicenseUsageResponse_Details `protobuf_oneof:"details"`
	// contains filtered or unexported fields
}

Message for response to get the license usage per configuration.

func (*QueryConfigurationLicenseUsageResponse) Descriptor deprecated

func (*QueryConfigurationLicenseUsageResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryConfigurationLicenseUsageResponse.ProtoReflect.Descriptor instead.

func (*QueryConfigurationLicenseUsageResponse) GetDetails

func (m *QueryConfigurationLicenseUsageResponse) GetDetails() isQueryConfigurationLicenseUsageResponse_Details

func (*QueryConfigurationLicenseUsageResponse) GetUserCountUsage

func (*QueryConfigurationLicenseUsageResponse) ProtoMessage

func (*QueryConfigurationLicenseUsageResponse) ProtoReflect

func (*QueryConfigurationLicenseUsageResponse) Reset

func (*QueryConfigurationLicenseUsageResponse) String

type QueryConfigurationLicenseUsageResponse_UserCountUsage

type QueryConfigurationLicenseUsageResponse_UserCountUsage struct {
	// Usage information for license types which use user-count billing.
	UserCountUsage *UserCountUsage `protobuf:"bytes,1,opt,name=user_count_usage,json=userCountUsage,proto3,oneof"`
}

type ReactivateConfigurationRequest

type ReactivateConfigurationRequest struct {

	// Required. Name of the resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. An optional request ID to identify requests. Specify a unique
	// request ID so that if you must retry your request, the server will know to
	// ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes after the first request.
	//
	// For example, consider a situation where you make an initial request and
	// the request times out. If you make the request again with the same request
	// ID, the server can check if original operation with the same request ID
	// was received, and if so, will ignore the second request. This prevents
	// clients from accidentally creating duplicate commitments.
	//
	// The request ID must be a valid UUID with the exception that zero UUID is
	// not supported (00000000-0000-0000-0000-000000000000).
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Message for resuming a Configuration.

func (*ReactivateConfigurationRequest) Descriptor deprecated

func (*ReactivateConfigurationRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReactivateConfigurationRequest.ProtoReflect.Descriptor instead.

func (*ReactivateConfigurationRequest) GetName

func (*ReactivateConfigurationRequest) GetRequestId

func (x *ReactivateConfigurationRequest) GetRequestId() string

func (*ReactivateConfigurationRequest) ProtoMessage

func (*ReactivateConfigurationRequest) ProtoMessage()

func (*ReactivateConfigurationRequest) ProtoReflect

func (*ReactivateConfigurationRequest) Reset

func (x *ReactivateConfigurationRequest) Reset()

func (*ReactivateConfigurationRequest) String

type UnimplementedLicenseManagerServer

type UnimplementedLicenseManagerServer struct {
}

UnimplementedLicenseManagerServer can be embedded to have forward compatible implementations.

func (*UnimplementedLicenseManagerServer) AggregateUsage

func (*UnimplementedLicenseManagerServer) CreateConfiguration

func (*UnimplementedLicenseManagerServer) DeactivateConfiguration

func (*UnimplementedLicenseManagerServer) DeleteConfiguration

func (*UnimplementedLicenseManagerServer) GetConfiguration

func (*UnimplementedLicenseManagerServer) GetInstance

func (*UnimplementedLicenseManagerServer) GetProduct

func (*UnimplementedLicenseManagerServer) ListConfigurations

func (*UnimplementedLicenseManagerServer) ListInstances

func (*UnimplementedLicenseManagerServer) ListProducts

func (*UnimplementedLicenseManagerServer) ReactivateConfiguration

func (*UnimplementedLicenseManagerServer) UpdateConfiguration

type UpdateConfigurationRequest

type UpdateConfigurationRequest struct {

	// Optional. Field mask is used to specify the fields to be overwritten in the
	// Configuration resource by the update.
	// The fields specified in the update_mask are relative to the resource, not
	// the full request. A field will be overwritten if it is in the mask. If the
	// user does not provide a mask then all fields will be overwritten.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// Required. The resource being updated
	Configuration *Configuration `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration,omitempty"`
	// Optional. An optional request ID to identify requests. Specify a unique
	// request ID so that if you must retry your request, the server will know to
	// ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes since the first request.
	//
	// For example, consider a situation where you make an initial request and the
	// request times out. If you make the request again with the same request
	// ID, the server can check if original operation with the same request ID
	// was received, and if so, will ignore the second request. This prevents
	// clients from accidentally creating duplicate commitments.
	//
	// The request ID must be a valid UUID with the exception that zero UUID is
	// not supported (00000000-0000-0000-0000-000000000000).
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Message for updating a Configuration

func (*UpdateConfigurationRequest) Descriptor deprecated

func (*UpdateConfigurationRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateConfigurationRequest.ProtoReflect.Descriptor instead.

func (*UpdateConfigurationRequest) GetConfiguration

func (x *UpdateConfigurationRequest) GetConfiguration() *Configuration

func (*UpdateConfigurationRequest) GetRequestId

func (x *UpdateConfigurationRequest) GetRequestId() string

func (*UpdateConfigurationRequest) GetUpdateMask

func (x *UpdateConfigurationRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateConfigurationRequest) ProtoMessage

func (*UpdateConfigurationRequest) ProtoMessage()

func (*UpdateConfigurationRequest) ProtoReflect

func (*UpdateConfigurationRequest) Reset

func (x *UpdateConfigurationRequest) Reset()

func (*UpdateConfigurationRequest) String

func (x *UpdateConfigurationRequest) String() string

type Usage

type Usage struct {

	// LiMa Instance resource name, i.e.
	// projects/{project}/locations/{location}/instances/{instance}
	LimaInstance string `protobuf:"bytes,1,opt,name=lima_instance,json=limaInstance,proto3" json:"lima_instance,omitempty"`
	// Number of unique users accessing the VM.
	Users int32 `protobuf:"varint,2,opt,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

Message describing total counts of users who accessed a VM.

func (*Usage) Descriptor deprecated

func (*Usage) Descriptor() ([]byte, []int)

Deprecated: Use Usage.ProtoReflect.Descriptor instead.

func (*Usage) GetLimaInstance

func (x *Usage) GetLimaInstance() string

func (*Usage) GetUsers

func (x *Usage) GetUsers() int32

func (*Usage) ProtoMessage

func (*Usage) ProtoMessage()

func (*Usage) ProtoReflect

func (x *Usage) ProtoReflect() protoreflect.Message

func (*Usage) Reset

func (x *Usage) Reset()

func (*Usage) String

func (x *Usage) String() string

type UserCountBillingInfo

type UserCountBillingInfo struct {

	// Required. Number of users to bill for.
	UserCount int32 `protobuf:"varint,1,opt,name=user_count,json=userCount,proto3" json:"user_count,omitempty"`
	// contains filtered or unexported fields
}

This approach uses total unique user count for billing.

func (*UserCountBillingInfo) Descriptor deprecated

func (*UserCountBillingInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserCountBillingInfo.ProtoReflect.Descriptor instead.

func (*UserCountBillingInfo) GetUserCount

func (x *UserCountBillingInfo) GetUserCount() int32

func (*UserCountBillingInfo) ProtoMessage

func (*UserCountBillingInfo) ProtoMessage()

func (*UserCountBillingInfo) ProtoReflect

func (x *UserCountBillingInfo) ProtoReflect() protoreflect.Message

func (*UserCountBillingInfo) Reset

func (x *UserCountBillingInfo) Reset()

func (*UserCountBillingInfo) String

func (x *UserCountBillingInfo) String() string

type UserCountUsage

type UserCountUsage struct {

	// Required. Unique number of licensed users.
	UniqueUserCount int32 `protobuf:"varint,1,opt,name=unique_user_count,json=uniqueUserCount,proto3" json:"unique_user_count,omitempty"`
	// contains filtered or unexported fields
}

Message representing usage for license configurations which use user-count billing.

func (*UserCountUsage) Descriptor deprecated

func (*UserCountUsage) Descriptor() ([]byte, []int)

Deprecated: Use UserCountUsage.ProtoReflect.Descriptor instead.

func (*UserCountUsage) GetUniqueUserCount

func (x *UserCountUsage) GetUniqueUserCount() int32

func (*UserCountUsage) ProtoMessage

func (*UserCountUsage) ProtoMessage()

func (*UserCountUsage) ProtoReflect

func (x *UserCountUsage) ProtoReflect() protoreflect.Message

func (*UserCountUsage) Reset

func (x *UserCountUsage) Reset()

func (*UserCountUsage) String

func (x *UserCountUsage) String() string

Jump to

Keyboard shortcuts

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