Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterInstanceServiceServer(s grpc.ServiceRegistrar, srv InstanceServiceServer)
- func RegisterLockServiceServer(s grpc.ServiceRegistrar, srv LockServiceServer)
- type CreateLockMetadata
- func (*CreateLockMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLockMetadata) GetLockId() string
- func (*CreateLockMetadata) ProtoMessage()
- func (x *CreateLockMetadata) ProtoReflect() protoreflect.Message
- func (x *CreateLockMetadata) Reset()
- func (m *CreateLockMetadata) SetLockId(v string)
- func (x *CreateLockMetadata) String() string
- type CreateLockRequest
- func (*CreateLockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLockRequest) GetInstanceId() string
- func (x *CreateLockRequest) GetResourceId() string
- func (*CreateLockRequest) ProtoMessage()
- func (x *CreateLockRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLockRequest) Reset()
- func (m *CreateLockRequest) SetInstanceId(v string)
- func (m *CreateLockRequest) SetResourceId(v string)
- func (x *CreateLockRequest) String() string
- type DeleteLockMetadata
- func (*DeleteLockMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteLockMetadata) GetLockId() string
- func (*DeleteLockMetadata) ProtoMessage()
- func (x *DeleteLockMetadata) ProtoReflect() protoreflect.Message
- func (x *DeleteLockMetadata) Reset()
- func (m *DeleteLockMetadata) SetLockId(v string)
- func (x *DeleteLockMetadata) String() string
- type DeleteLockRequest
- func (*DeleteLockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteLockRequest) GetLockId() string
- func (*DeleteLockRequest) ProtoMessage()
- func (x *DeleteLockRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteLockRequest) Reset()
- func (m *DeleteLockRequest) SetLockId(v string)
- func (x *DeleteLockRequest) String() string
- type EnsureLockMetadata
- func (*EnsureLockMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureLockMetadata) GetLockId() string
- func (*EnsureLockMetadata) ProtoMessage()
- func (x *EnsureLockMetadata) ProtoReflect() protoreflect.Message
- func (x *EnsureLockMetadata) Reset()
- func (m *EnsureLockMetadata) SetLockId(v string)
- func (x *EnsureLockMetadata) String() string
- type EnsureLockRequest
- func (*EnsureLockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureLockRequest) GetInstanceId() string
- func (x *EnsureLockRequest) GetResourceId() string
- func (*EnsureLockRequest) ProtoMessage()
- func (x *EnsureLockRequest) ProtoReflect() protoreflect.Message
- func (x *EnsureLockRequest) Reset()
- func (m *EnsureLockRequest) SetInstanceId(v string)
- func (m *EnsureLockRequest) SetResourceId(v string)
- func (x *EnsureLockRequest) String() string
- type GetInstanceRequest
- func (*GetInstanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInstanceRequest) GetInstanceId() string
- func (*GetInstanceRequest) ProtoMessage()
- func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message
- func (x *GetInstanceRequest) Reset()
- func (m *GetInstanceRequest) SetInstanceId(v string)
- func (x *GetInstanceRequest) String() string
- type GetLockByInstanceAndResourceRequest
- func (*GetLockByInstanceAndResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLockByInstanceAndResourceRequest) GetInstanceId() string
- func (x *GetLockByInstanceAndResourceRequest) GetResourceId() string
- func (*GetLockByInstanceAndResourceRequest) ProtoMessage()
- func (x *GetLockByInstanceAndResourceRequest) ProtoReflect() protoreflect.Message
- func (x *GetLockByInstanceAndResourceRequest) Reset()
- func (m *GetLockByInstanceAndResourceRequest) SetInstanceId(v string)
- func (m *GetLockByInstanceAndResourceRequest) SetResourceId(v string)
- func (x *GetLockByInstanceAndResourceRequest) String() string
- type GetLockRequest
- func (*GetLockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLockRequest) GetLockId() string
- func (*GetLockRequest) ProtoMessage()
- func (x *GetLockRequest) ProtoReflect() protoreflect.Message
- func (x *GetLockRequest) Reset()
- func (m *GetLockRequest) SetLockId(v string)
- func (x *GetLockRequest) String() string
- type Instance
- func (*Instance) Descriptor() ([]byte, []int)deprecated
- func (x *Instance) GetCloudId() string
- func (x *Instance) GetCreatedAt() *timestamppb.Timestamp
- func (x *Instance) GetDescription() string
- func (x *Instance) GetEndTime() *timestamppb.Timestamp
- func (x *Instance) GetFolderId() string
- func (x *Instance) GetId() string
- func (x *Instance) GetLicenseTemplate() *Template
- func (x *Instance) GetLocks() []*Lock
- func (x *Instance) GetStartTime() *timestamppb.Timestamp
- func (x *Instance) GetState() Instance_State
- func (x *Instance) GetTemplateId() string
- func (x *Instance) GetTemplateVersionId() string
- func (x *Instance) GetUpdatedAt() *timestamppb.Timestamp
- func (*Instance) ProtoMessage()
- func (x *Instance) ProtoReflect() protoreflect.Message
- func (x *Instance) Reset()
- func (m *Instance) SetCloudId(v string)
- func (m *Instance) SetCreatedAt(v *timestamppb.Timestamp)
- func (m *Instance) SetDescription(v string)
- func (m *Instance) SetEndTime(v *timestamppb.Timestamp)
- func (m *Instance) SetFolderId(v string)
- func (m *Instance) SetId(v string)
- func (m *Instance) SetLicenseTemplate(v *Template)
- func (m *Instance) SetLocks(v []*Lock)
- func (m *Instance) SetStartTime(v *timestamppb.Timestamp)
- func (m *Instance) SetState(v Instance_State)
- func (m *Instance) SetTemplateId(v string)
- func (m *Instance) SetTemplateVersionId(v string)
- func (m *Instance) SetUpdatedAt(v *timestamppb.Timestamp)
- func (x *Instance) String() string
- type InstanceServiceClient
- type InstanceServiceServer
- type Instance_State
- func (Instance_State) Descriptor() protoreflect.EnumDescriptor
- func (x Instance_State) Enum() *Instance_State
- func (Instance_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x Instance_State) Number() protoreflect.EnumNumber
- func (x Instance_State) String() string
- func (Instance_State) Type() protoreflect.EnumType
- type ListInstancesRequest
- func (*ListInstancesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListInstancesRequest) GetFilter() string
- func (x *ListInstancesRequest) GetFolderId() string
- func (x *ListInstancesRequest) GetOrderBy() string
- func (x *ListInstancesRequest) GetPageSize() int64
- func (x *ListInstancesRequest) GetPageToken() string
- func (*ListInstancesRequest) ProtoMessage()
- func (x *ListInstancesRequest) ProtoReflect() protoreflect.Message
- func (x *ListInstancesRequest) Reset()
- func (m *ListInstancesRequest) SetFilter(v string)
- func (m *ListInstancesRequest) SetFolderId(v string)
- func (m *ListInstancesRequest) SetOrderBy(v string)
- func (m *ListInstancesRequest) SetPageSize(v int64)
- func (m *ListInstancesRequest) SetPageToken(v string)
- func (x *ListInstancesRequest) String() string
- type ListInstancesResponse
- func (*ListInstancesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListInstancesResponse) GetInstances() []*Instance
- func (x *ListInstancesResponse) GetNextPageToken() string
- func (*ListInstancesResponse) ProtoMessage()
- func (x *ListInstancesResponse) ProtoReflect() protoreflect.Message
- func (x *ListInstancesResponse) Reset()
- func (m *ListInstancesResponse) SetInstances(v []*Instance)
- func (m *ListInstancesResponse) SetNextPageToken(v string)
- func (x *ListInstancesResponse) String() string
- type ListLocksRequest
- func (*ListLocksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListLocksRequest) GetFilter() string
- func (x *ListLocksRequest) GetFolderId() string
- func (x *ListLocksRequest) GetOrderBy() string
- func (x *ListLocksRequest) GetPageSize() int64
- func (x *ListLocksRequest) GetPageToken() string
- func (x *ListLocksRequest) GetResourceId() string
- func (*ListLocksRequest) ProtoMessage()
- func (x *ListLocksRequest) ProtoReflect() protoreflect.Message
- func (x *ListLocksRequest) Reset()
- func (m *ListLocksRequest) SetFilter(v string)
- func (m *ListLocksRequest) SetFolderId(v string)
- func (m *ListLocksRequest) SetOrderBy(v string)
- func (m *ListLocksRequest) SetPageSize(v int64)
- func (m *ListLocksRequest) SetPageToken(v string)
- func (m *ListLocksRequest) SetResourceId(v string)
- func (x *ListLocksRequest) String() string
- type ListLocksResponse
- func (*ListLocksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListLocksResponse) GetLocks() []*Lock
- func (x *ListLocksResponse) GetNextPageToken() string
- func (*ListLocksResponse) ProtoMessage()
- func (x *ListLocksResponse) ProtoReflect() protoreflect.Message
- func (x *ListLocksResponse) Reset()
- func (m *ListLocksResponse) SetLocks(v []*Lock)
- func (m *ListLocksResponse) SetNextPageToken(v string)
- func (x *ListLocksResponse) String() string
- type Lock
- func (*Lock) Descriptor() ([]byte, []int)deprecated
- func (x *Lock) GetCreatedAt() *timestamppb.Timestamp
- func (x *Lock) GetEndTime() *timestamppb.Timestamp
- func (x *Lock) GetId() string
- func (x *Lock) GetInstanceId() string
- func (x *Lock) GetResourceId() string
- func (x *Lock) GetStartTime() *timestamppb.Timestamp
- func (x *Lock) GetState() Lock_State
- func (x *Lock) GetTemplateId() string
- func (x *Lock) GetUpdatedAt() *timestamppb.Timestamp
- func (*Lock) ProtoMessage()
- func (x *Lock) ProtoReflect() protoreflect.Message
- func (x *Lock) Reset()
- func (m *Lock) SetCreatedAt(v *timestamppb.Timestamp)
- func (m *Lock) SetEndTime(v *timestamppb.Timestamp)
- func (m *Lock) SetId(v string)
- func (m *Lock) SetInstanceId(v string)
- func (m *Lock) SetResourceId(v string)
- func (m *Lock) SetStartTime(v *timestamppb.Timestamp)
- func (m *Lock) SetState(v Lock_State)
- func (m *Lock) SetTemplateId(v string)
- func (m *Lock) SetUpdatedAt(v *timestamppb.Timestamp)
- func (x *Lock) String() string
- type LockServiceClient
- type LockServiceServer
- type Lock_State
- type Template
- func (*Template) Descriptor() ([]byte, []int)deprecated
- func (x *Template) GetCreatedAt() *timestamppb.Timestamp
- func (x *Template) GetId() string
- func (x *Template) GetLicenseSkuId() string
- func (x *Template) GetName() string
- func (x *Template) GetPeriod() string
- func (x *Template) GetProductId() string
- func (x *Template) GetPublisherId() string
- func (x *Template) GetState() Template_State
- func (x *Template) GetTariffId() string
- func (x *Template) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Template) GetVersionId() string
- func (*Template) ProtoMessage()
- func (x *Template) ProtoReflect() protoreflect.Message
- func (x *Template) Reset()
- func (m *Template) SetCreatedAt(v *timestamppb.Timestamp)
- func (m *Template) SetId(v string)
- func (m *Template) SetLicenseSkuId(v string)
- func (m *Template) SetName(v string)
- func (m *Template) SetPeriod(v string)
- func (m *Template) SetProductId(v string)
- func (m *Template) SetPublisherId(v string)
- func (m *Template) SetState(v Template_State)
- func (m *Template) SetTariffId(v string)
- func (m *Template) SetUpdatedAt(v *timestamppb.Timestamp)
- func (m *Template) SetVersionId(v string)
- func (x *Template) String() string
- type Template_State
- func (Template_State) Descriptor() protoreflect.EnumDescriptor
- func (x Template_State) Enum() *Template_State
- func (Template_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x Template_State) Number() protoreflect.EnumNumber
- func (x Template_State) String() string
- func (Template_State) Type() protoreflect.EnumType
- type UnimplementedInstanceServiceServer
- type UnimplementedLockServiceServer
- func (UnimplementedLockServiceServer) Create(context.Context, *CreateLockRequest) (*operation.Operation, error)
- func (UnimplementedLockServiceServer) Delete(context.Context, *DeleteLockRequest) (*operation.Operation, error)
- func (UnimplementedLockServiceServer) Ensure(context.Context, *EnsureLockRequest) (*operation.Operation, error)
- func (UnimplementedLockServiceServer) Get(context.Context, *GetLockRequest) (*Lock, error)
- func (UnimplementedLockServiceServer) GetByInstanceAndResource(context.Context, *GetLockByInstanceAndResourceRequest) (*Lock, error)
- func (UnimplementedLockServiceServer) List(context.Context, *ListLocksRequest) (*ListLocksResponse, error)
- type UnsafeInstanceServiceServer
- type UnsafeLockServiceServer
Constants ¶
const ( InstanceService_Get_FullMethodName = "/yandex.cloud.marketplace.licensemanager.v1.InstanceService/Get" InstanceService_List_FullMethodName = "/yandex.cloud.marketplace.licensemanager.v1.InstanceService/List" )
const ( LockService_Get_FullMethodName = "/yandex.cloud.marketplace.licensemanager.v1.LockService/Get" LockService_GetByInstanceAndResource_FullMethodName = "/yandex.cloud.marketplace.licensemanager.v1.LockService/GetByInstanceAndResource" LockService_List_FullMethodName = "/yandex.cloud.marketplace.licensemanager.v1.LockService/List" LockService_Create_FullMethodName = "/yandex.cloud.marketplace.licensemanager.v1.LockService/Create" LockService_Ensure_FullMethodName = "/yandex.cloud.marketplace.licensemanager.v1.LockService/Ensure" LockService_Delete_FullMethodName = "/yandex.cloud.marketplace.licensemanager.v1.LockService/Delete" )
Variables ¶
var ( Instance_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "PENDING", 2: "ACTIVE", 3: "CANCELLED", 4: "EXPIRED", 5: "DEPRECATED", 6: "DELETED", } Instance_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "PENDING": 1, "ACTIVE": 2, "CANCELLED": 3, "EXPIRED": 4, "DEPRECATED": 5, "DELETED": 6, } )
Enum value maps for Instance_State.
var ( Lock_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "UNLOCKED", 2: "LOCKED", 3: "DELETED", } Lock_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "UNLOCKED": 1, "LOCKED": 2, "DELETED": 3, } )
Enum value maps for Lock_State.
var ( Template_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "PENDING", 2: "ACTIVE", 3: "DEPRECATED", 4: "DELETED", } Template_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "PENDING": 1, "ACTIVE": 2, "DEPRECATED": 3, "DELETED": 4, } )
Enum value maps for Template_State.
var File_yandex_cloud_marketplace_licensemanager_v1_instance_proto protoreflect.FileDescriptor
var File_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto protoreflect.FileDescriptor
var File_yandex_cloud_marketplace_licensemanager_v1_lock_proto protoreflect.FileDescriptor
var File_yandex_cloud_marketplace_licensemanager_v1_lock_service_proto protoreflect.FileDescriptor
var File_yandex_cloud_marketplace_licensemanager_v1_template_proto protoreflect.FileDescriptor
var InstanceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.marketplace.licensemanager.v1.InstanceService", HandlerType: (*InstanceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _InstanceService_Get_Handler, }, { MethodName: "List", Handler: _InstanceService_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/marketplace/licensemanager/v1/instance_service.proto", }
InstanceService_ServiceDesc is the grpc.ServiceDesc for InstanceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var LockService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.marketplace.licensemanager.v1.LockService", HandlerType: (*LockServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _LockService_Get_Handler, }, { MethodName: "GetByInstanceAndResource", Handler: _LockService_GetByInstanceAndResource_Handler, }, { MethodName: "List", Handler: _LockService_List_Handler, }, { MethodName: "Create", Handler: _LockService_Create_Handler, }, { MethodName: "Ensure", Handler: _LockService_Ensure_Handler, }, { MethodName: "Delete", Handler: _LockService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/marketplace/licensemanager/v1/lock_service.proto", }
LockService_ServiceDesc is the grpc.ServiceDesc for LockService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInstanceServiceServer ¶
func RegisterInstanceServiceServer(s grpc.ServiceRegistrar, srv InstanceServiceServer)
func RegisterLockServiceServer ¶
func RegisterLockServiceServer(s grpc.ServiceRegistrar, srv LockServiceServer)
Types ¶
type CreateLockMetadata ¶
type CreateLockMetadata struct { // ID of the subscription lock. LockId string `protobuf:"bytes,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"` // contains filtered or unexported fields }
func (*CreateLockMetadata) Descriptor
deprecated
func (*CreateLockMetadata) Descriptor() ([]byte, []int)
Deprecated: Use CreateLockMetadata.ProtoReflect.Descriptor instead.
func (*CreateLockMetadata) GetLockId ¶
func (x *CreateLockMetadata) GetLockId() string
func (*CreateLockMetadata) ProtoMessage ¶
func (*CreateLockMetadata) ProtoMessage()
func (*CreateLockMetadata) ProtoReflect ¶
func (x *CreateLockMetadata) ProtoReflect() protoreflect.Message
func (*CreateLockMetadata) Reset ¶
func (x *CreateLockMetadata) Reset()
func (*CreateLockMetadata) SetLockId ¶
func (m *CreateLockMetadata) SetLockId(v string)
func (*CreateLockMetadata) String ¶
func (x *CreateLockMetadata) String() string
type CreateLockRequest ¶
type CreateLockRequest struct { // ID of the subscription instance. InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // ID of the resource to which the subscription will be locked. ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*CreateLockRequest) Descriptor
deprecated
func (*CreateLockRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLockRequest.ProtoReflect.Descriptor instead.
func (*CreateLockRequest) GetInstanceId ¶
func (x *CreateLockRequest) GetInstanceId() string
func (*CreateLockRequest) GetResourceId ¶
func (x *CreateLockRequest) GetResourceId() string
func (*CreateLockRequest) ProtoMessage ¶
func (*CreateLockRequest) ProtoMessage()
func (*CreateLockRequest) ProtoReflect ¶
func (x *CreateLockRequest) ProtoReflect() protoreflect.Message
func (*CreateLockRequest) Reset ¶
func (x *CreateLockRequest) Reset()
func (*CreateLockRequest) SetInstanceId ¶
func (m *CreateLockRequest) SetInstanceId(v string)
func (*CreateLockRequest) SetResourceId ¶
func (m *CreateLockRequest) SetResourceId(v string)
func (*CreateLockRequest) String ¶
func (x *CreateLockRequest) String() string
type DeleteLockMetadata ¶
type DeleteLockMetadata struct { // ID of the subscription lock. LockId string `protobuf:"bytes,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteLockMetadata) Descriptor
deprecated
func (*DeleteLockMetadata) Descriptor() ([]byte, []int)
Deprecated: Use DeleteLockMetadata.ProtoReflect.Descriptor instead.
func (*DeleteLockMetadata) GetLockId ¶
func (x *DeleteLockMetadata) GetLockId() string
func (*DeleteLockMetadata) ProtoMessage ¶
func (*DeleteLockMetadata) ProtoMessage()
func (*DeleteLockMetadata) ProtoReflect ¶
func (x *DeleteLockMetadata) ProtoReflect() protoreflect.Message
func (*DeleteLockMetadata) Reset ¶
func (x *DeleteLockMetadata) Reset()
func (*DeleteLockMetadata) SetLockId ¶
func (m *DeleteLockMetadata) SetLockId(v string)
func (*DeleteLockMetadata) String ¶
func (x *DeleteLockMetadata) String() string
type DeleteLockRequest ¶
type DeleteLockRequest struct { // ID of the subscription lock. LockId string `protobuf:"bytes,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteLockRequest) Descriptor
deprecated
func (*DeleteLockRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteLockRequest.ProtoReflect.Descriptor instead.
func (*DeleteLockRequest) GetLockId ¶
func (x *DeleteLockRequest) GetLockId() string
func (*DeleteLockRequest) ProtoMessage ¶
func (*DeleteLockRequest) ProtoMessage()
func (*DeleteLockRequest) ProtoReflect ¶
func (x *DeleteLockRequest) ProtoReflect() protoreflect.Message
func (*DeleteLockRequest) Reset ¶
func (x *DeleteLockRequest) Reset()
func (*DeleteLockRequest) SetLockId ¶
func (m *DeleteLockRequest) SetLockId(v string)
func (*DeleteLockRequest) String ¶
func (x *DeleteLockRequest) String() string
type EnsureLockMetadata ¶
type EnsureLockMetadata struct { // ID of the subscription lock. LockId string `protobuf:"bytes,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"` // contains filtered or unexported fields }
func (*EnsureLockMetadata) Descriptor
deprecated
func (*EnsureLockMetadata) Descriptor() ([]byte, []int)
Deprecated: Use EnsureLockMetadata.ProtoReflect.Descriptor instead.
func (*EnsureLockMetadata) GetLockId ¶
func (x *EnsureLockMetadata) GetLockId() string
func (*EnsureLockMetadata) ProtoMessage ¶
func (*EnsureLockMetadata) ProtoMessage()
func (*EnsureLockMetadata) ProtoReflect ¶
func (x *EnsureLockMetadata) ProtoReflect() protoreflect.Message
func (*EnsureLockMetadata) Reset ¶
func (x *EnsureLockMetadata) Reset()
func (*EnsureLockMetadata) SetLockId ¶
func (m *EnsureLockMetadata) SetLockId(v string)
func (*EnsureLockMetadata) String ¶
func (x *EnsureLockMetadata) String() string
type EnsureLockRequest ¶
type EnsureLockRequest struct { // ID of the subscription instance. InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // ID of the resource to which the subscription will be locked. ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*EnsureLockRequest) Descriptor
deprecated
func (*EnsureLockRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnsureLockRequest.ProtoReflect.Descriptor instead.
func (*EnsureLockRequest) GetInstanceId ¶
func (x *EnsureLockRequest) GetInstanceId() string
func (*EnsureLockRequest) GetResourceId ¶
func (x *EnsureLockRequest) GetResourceId() string
func (*EnsureLockRequest) ProtoMessage ¶
func (*EnsureLockRequest) ProtoMessage()
func (*EnsureLockRequest) ProtoReflect ¶
func (x *EnsureLockRequest) ProtoReflect() protoreflect.Message
func (*EnsureLockRequest) Reset ¶
func (x *EnsureLockRequest) Reset()
func (*EnsureLockRequest) SetInstanceId ¶
func (m *EnsureLockRequest) SetInstanceId(v string)
func (*EnsureLockRequest) SetResourceId ¶
func (m *EnsureLockRequest) SetResourceId(v string)
func (*EnsureLockRequest) String ¶
func (x *EnsureLockRequest) String() string
type GetInstanceRequest ¶
type GetInstanceRequest struct { // ID of the subscription instance. InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // contains filtered or unexported fields }
func (*GetInstanceRequest) Descriptor
deprecated
func (*GetInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInstanceRequest.ProtoReflect.Descriptor instead.
func (*GetInstanceRequest) GetInstanceId ¶
func (x *GetInstanceRequest) GetInstanceId() 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) SetInstanceId ¶
func (m *GetInstanceRequest) SetInstanceId(v string)
func (*GetInstanceRequest) String ¶
func (x *GetInstanceRequest) String() string
type GetLockByInstanceAndResourceRequest ¶
type GetLockByInstanceAndResourceRequest struct { // ID of the subscription instance. InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // ID of the resource to which the subscription will be locked. ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*GetLockByInstanceAndResourceRequest) Descriptor
deprecated
func (*GetLockByInstanceAndResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLockByInstanceAndResourceRequest.ProtoReflect.Descriptor instead.
func (*GetLockByInstanceAndResourceRequest) GetInstanceId ¶
func (x *GetLockByInstanceAndResourceRequest) GetInstanceId() string
func (*GetLockByInstanceAndResourceRequest) GetResourceId ¶
func (x *GetLockByInstanceAndResourceRequest) GetResourceId() string
func (*GetLockByInstanceAndResourceRequest) ProtoMessage ¶
func (*GetLockByInstanceAndResourceRequest) ProtoMessage()
func (*GetLockByInstanceAndResourceRequest) ProtoReflect ¶
func (x *GetLockByInstanceAndResourceRequest) ProtoReflect() protoreflect.Message
func (*GetLockByInstanceAndResourceRequest) Reset ¶
func (x *GetLockByInstanceAndResourceRequest) Reset()
func (*GetLockByInstanceAndResourceRequest) SetInstanceId ¶
func (m *GetLockByInstanceAndResourceRequest) SetInstanceId(v string)
func (*GetLockByInstanceAndResourceRequest) SetResourceId ¶
func (m *GetLockByInstanceAndResourceRequest) SetResourceId(v string)
func (*GetLockByInstanceAndResourceRequest) String ¶
func (x *GetLockByInstanceAndResourceRequest) String() string
type GetLockRequest ¶
type GetLockRequest struct { // ID of the subscription lock. LockId string `protobuf:"bytes,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"` // contains filtered or unexported fields }
func (*GetLockRequest) Descriptor
deprecated
func (*GetLockRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLockRequest.ProtoReflect.Descriptor instead.
func (*GetLockRequest) GetLockId ¶
func (x *GetLockRequest) GetLockId() string
func (*GetLockRequest) ProtoMessage ¶
func (*GetLockRequest) ProtoMessage()
func (*GetLockRequest) ProtoReflect ¶
func (x *GetLockRequest) ProtoReflect() protoreflect.Message
func (*GetLockRequest) Reset ¶
func (x *GetLockRequest) Reset()
func (*GetLockRequest) SetLockId ¶
func (m *GetLockRequest) SetLockId(v string)
func (*GetLockRequest) String ¶
func (x *GetLockRequest) String() string
type Instance ¶
type Instance struct { // ID of the subscription instance. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the cloud that the subscription instance belongs to. CloudId string `protobuf:"bytes,2,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"` // ID of the folder that the subscription instance belongs to. FolderId string `protobuf:"bytes,3,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` // ID of the subscription template that was used to create subscription instance. TemplateId string `protobuf:"bytes,4,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` // ID of the version of subscription template. TemplateVersionId string `protobuf:"bytes,5,opt,name=template_version_id,json=templateVersionId,proto3" json:"template_version_id,omitempty"` // Description of the subscription instance. Description string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"` // Timestamp of the start of the subscription. StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Timestamp of the end of the subscription. EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Creation timestamp. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Update timestamp. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Subscription state. State Instance_State `` /* 128-byte string literal not displayed */ // List of subscription locks. Locks []*Lock `protobuf:"bytes,12,rep,name=locks,proto3" json:"locks,omitempty"` // Subscription template. LicenseTemplate *Template `protobuf:"bytes,13,opt,name=license_template,json=licenseTemplate,proto3" json:"license_template,omitempty"` // contains filtered or unexported fields }
func (*Instance) Descriptor
deprecated
func (*Instance) GetCloudId ¶
func (*Instance) GetCreatedAt ¶
func (x *Instance) GetCreatedAt() *timestamppb.Timestamp
func (*Instance) GetDescription ¶
func (*Instance) GetEndTime ¶
func (x *Instance) GetEndTime() *timestamppb.Timestamp
func (*Instance) GetFolderId ¶
func (*Instance) GetLicenseTemplate ¶
func (*Instance) GetStartTime ¶
func (x *Instance) GetStartTime() *timestamppb.Timestamp
func (*Instance) GetState ¶
func (x *Instance) GetState() Instance_State
func (*Instance) GetTemplateId ¶
func (*Instance) GetTemplateVersionId ¶
func (*Instance) GetUpdatedAt ¶
func (x *Instance) GetUpdatedAt() *timestamppb.Timestamp
func (*Instance) ProtoMessage ¶
func (*Instance) ProtoMessage()
func (*Instance) ProtoReflect ¶
func (x *Instance) ProtoReflect() protoreflect.Message
func (*Instance) SetCloudId ¶
func (*Instance) SetCreatedAt ¶
func (m *Instance) SetCreatedAt(v *timestamppb.Timestamp)
func (*Instance) SetDescription ¶
func (*Instance) SetEndTime ¶
func (m *Instance) SetEndTime(v *timestamppb.Timestamp)
func (*Instance) SetFolderId ¶
func (*Instance) SetLicenseTemplate ¶
func (*Instance) SetStartTime ¶
func (m *Instance) SetStartTime(v *timestamppb.Timestamp)
func (*Instance) SetState ¶
func (m *Instance) SetState(v Instance_State)
func (*Instance) SetTemplateId ¶
func (*Instance) SetTemplateVersionId ¶
func (*Instance) SetUpdatedAt ¶
func (m *Instance) SetUpdatedAt(v *timestamppb.Timestamp)
type InstanceServiceClient ¶
type InstanceServiceClient interface { // Returns the specified subscription instance. // // To get the list of all available subscription instances, make a [List] request. Get(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error) // Retrieves the list of subscription instances in the specified folder. List(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error) }
InstanceServiceClient is the client API for InstanceService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
A set of methods for managing subscription instances.
func NewInstanceServiceClient ¶
func NewInstanceServiceClient(cc grpc.ClientConnInterface) InstanceServiceClient
type InstanceServiceServer ¶
type InstanceServiceServer interface { // Returns the specified subscription instance. // // To get the list of all available subscription instances, make a [List] request. Get(context.Context, *GetInstanceRequest) (*Instance, error) // Retrieves the list of subscription instances in the specified folder. List(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error) }
InstanceServiceServer is the server API for InstanceService service. All implementations should embed UnimplementedInstanceServiceServer for forward compatibility.
A set of methods for managing subscription instances.
type Instance_State ¶
type Instance_State int32
const ( Instance_STATE_UNSPECIFIED Instance_State = 0 // Subscription created but not active yet. Instance_PENDING Instance_State = 1 // Subscription is active. Instance_ACTIVE Instance_State = 2 // Subscription canceled. It is still active, but won't be automatically renewed after the end of the current period. Instance_CANCELLED Instance_State = 3 // Subscription expired. Instance_EXPIRED Instance_State = 4 // Subscription deprecated. Instance_DEPRECATED Instance_State = 5 // Subscription deleted. Instance_DELETED Instance_State = 6 )
func (Instance_State) Descriptor ¶
func (Instance_State) Descriptor() protoreflect.EnumDescriptor
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 (x Instance_State) Number() protoreflect.EnumNumber
func (Instance_State) String ¶
func (x Instance_State) String() string
func (Instance_State) Type ¶
func (Instance_State) Type() protoreflect.EnumType
type ListInstancesRequest ¶
type ListInstancesRequest struct { // ID of the folder that the subscription instance belongs to. FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` // The maximum number of results per page to return. If the number of available // results is larger than `page_size`, the service returns a [ListInstancesResponse.next_page_token] // that can be used to get the next page of results in subsequent list requests. // Default value: 100. PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Page token. To get the next page of results, set `page_token` to the // [ListInstancesResponse.next_page_token] returned by a previous list request. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A filter expression that filters subscription instances listed in the response. // // The expression must specify: // 1. The field name. Currently you can use filtering only on [Instance.name] field. // 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. // 3. The value. Must be in double quotes `""`. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`. // Example of a filter: `name="my-subscription-instance"`. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // Sorting order for the list of subscription instances. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // contains filtered or unexported fields }
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) GetFolderId ¶
func (x *ListInstancesRequest) GetFolderId() string
func (*ListInstancesRequest) GetOrderBy ¶
func (x *ListInstancesRequest) GetOrderBy() string
func (*ListInstancesRequest) GetPageSize ¶
func (x *ListInstancesRequest) GetPageSize() int64
func (*ListInstancesRequest) GetPageToken ¶
func (x *ListInstancesRequest) GetPageToken() 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) SetFilter ¶
func (m *ListInstancesRequest) SetFilter(v string)
func (*ListInstancesRequest) SetFolderId ¶
func (m *ListInstancesRequest) SetFolderId(v string)
func (*ListInstancesRequest) SetOrderBy ¶
func (m *ListInstancesRequest) SetOrderBy(v string)
func (*ListInstancesRequest) SetPageSize ¶
func (m *ListInstancesRequest) SetPageSize(v int64)
func (*ListInstancesRequest) SetPageToken ¶
func (m *ListInstancesRequest) SetPageToken(v string)
func (*ListInstancesRequest) String ¶
func (x *ListInstancesRequest) String() string
type ListInstancesResponse ¶
type ListInstancesResponse struct { // List of subscription instances. Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` // Token for getting the next page of the list. If the number of results is greater than // the specified [ListInstancesRequest.page_size], use `next_page_token` as the value // for the [ListInstancesRequest.page_token] parameter in the next list request. // // Each subsequent page will have its own `next_page_token` to continue paging through the results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
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) ProtoMessage ¶
func (*ListInstancesResponse) ProtoMessage()
func (*ListInstancesResponse) ProtoReflect ¶
func (x *ListInstancesResponse) ProtoReflect() protoreflect.Message
func (*ListInstancesResponse) Reset ¶
func (x *ListInstancesResponse) Reset()
func (*ListInstancesResponse) SetInstances ¶
func (m *ListInstancesResponse) SetInstances(v []*Instance)
func (*ListInstancesResponse) SetNextPageToken ¶
func (m *ListInstancesResponse) SetNextPageToken(v string)
func (*ListInstancesResponse) String ¶
func (x *ListInstancesResponse) String() string
type ListLocksRequest ¶
type ListLocksRequest struct { // ID of the resource that the subscription locks belong to. ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // ID of the folder that the subscription locks belong to. FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` // The maximum number of results per page to return. If the number of available // results is larger than `page_size`, the service returns a [ListLocksResponse.next_page_token] // that can be used to get the next page of results in subsequent list requests. // Default value: 100. PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Page token. To get the next page of results, set `page_token` to the // [ListLocksResponse.next_page_token] returned by a previous list request. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A filter expression that filters subscription locks listed in the response. // // The expression must specify: // 1. The field name. Currently you can use filtering only on [Lock.product_id] field. // 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. // 3. The value. Must be in double quotes `""`. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`. // Example of a filter: `product_id="my-product-id"`. Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` // Sorting order for the list of subscription locks. OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // contains filtered or unexported fields }
func (*ListLocksRequest) Descriptor
deprecated
func (*ListLocksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLocksRequest.ProtoReflect.Descriptor instead.
func (*ListLocksRequest) GetFilter ¶
func (x *ListLocksRequest) GetFilter() string
func (*ListLocksRequest) GetFolderId ¶
func (x *ListLocksRequest) GetFolderId() string
func (*ListLocksRequest) GetOrderBy ¶
func (x *ListLocksRequest) GetOrderBy() string
func (*ListLocksRequest) GetPageSize ¶
func (x *ListLocksRequest) GetPageSize() int64
func (*ListLocksRequest) GetPageToken ¶
func (x *ListLocksRequest) GetPageToken() string
func (*ListLocksRequest) GetResourceId ¶
func (x *ListLocksRequest) GetResourceId() string
func (*ListLocksRequest) ProtoMessage ¶
func (*ListLocksRequest) ProtoMessage()
func (*ListLocksRequest) ProtoReflect ¶
func (x *ListLocksRequest) ProtoReflect() protoreflect.Message
func (*ListLocksRequest) Reset ¶
func (x *ListLocksRequest) Reset()
func (*ListLocksRequest) SetFilter ¶
func (m *ListLocksRequest) SetFilter(v string)
func (*ListLocksRequest) SetFolderId ¶
func (m *ListLocksRequest) SetFolderId(v string)
func (*ListLocksRequest) SetOrderBy ¶
func (m *ListLocksRequest) SetOrderBy(v string)
func (*ListLocksRequest) SetPageSize ¶
func (m *ListLocksRequest) SetPageSize(v int64)
func (*ListLocksRequest) SetPageToken ¶
func (m *ListLocksRequest) SetPageToken(v string)
func (*ListLocksRequest) SetResourceId ¶
func (m *ListLocksRequest) SetResourceId(v string)
func (*ListLocksRequest) String ¶
func (x *ListLocksRequest) String() string
type ListLocksResponse ¶
type ListLocksResponse struct { // List of subscription locks. Locks []*Lock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks,omitempty"` // Token for getting the next page of the list. If the number of results is greater than // the specified [ListLocksRequest.page_size], use `next_page_token` as the value // for the [ListLocksRequest.page_token] parameter in the next list request. // // Each subsequent page will have its own `next_page_token` to continue paging through the results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListLocksResponse) Descriptor
deprecated
func (*ListLocksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListLocksResponse.ProtoReflect.Descriptor instead.
func (*ListLocksResponse) GetLocks ¶
func (x *ListLocksResponse) GetLocks() []*Lock
func (*ListLocksResponse) GetNextPageToken ¶
func (x *ListLocksResponse) GetNextPageToken() string
func (*ListLocksResponse) ProtoMessage ¶
func (*ListLocksResponse) ProtoMessage()
func (*ListLocksResponse) ProtoReflect ¶
func (x *ListLocksResponse) ProtoReflect() protoreflect.Message
func (*ListLocksResponse) Reset ¶
func (x *ListLocksResponse) Reset()
func (*ListLocksResponse) SetLocks ¶
func (m *ListLocksResponse) SetLocks(v []*Lock)
func (*ListLocksResponse) SetNextPageToken ¶
func (m *ListLocksResponse) SetNextPageToken(v string)
func (*ListLocksResponse) String ¶
func (x *ListLocksResponse) String() string
type Lock ¶
type Lock struct { // ID of the subscription lock. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the subscription instance. InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // ID of the resource. ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // Timestamp of the start of the subscription lock. StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Timestamp of the end of the subscription lock. EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Creation timestamp. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Update timestamp. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Subscription lock state. State Lock_State `protobuf:"varint,8,opt,name=state,proto3,enum=yandex.cloud.marketplace.licensemanager.v1.Lock_State" json:"state,omitempty"` // ID of the subscription template. TemplateId string `protobuf:"bytes,9,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` // contains filtered or unexported fields }
func (*Lock) Descriptor
deprecated
func (*Lock) GetCreatedAt ¶
func (x *Lock) GetCreatedAt() *timestamppb.Timestamp
func (*Lock) GetEndTime ¶
func (x *Lock) GetEndTime() *timestamppb.Timestamp
func (*Lock) GetInstanceId ¶
func (*Lock) GetResourceId ¶
func (*Lock) GetStartTime ¶
func (x *Lock) GetStartTime() *timestamppb.Timestamp
func (*Lock) GetState ¶
func (x *Lock) GetState() Lock_State
func (*Lock) GetTemplateId ¶
func (*Lock) GetUpdatedAt ¶
func (x *Lock) GetUpdatedAt() *timestamppb.Timestamp
func (*Lock) ProtoMessage ¶
func (*Lock) ProtoMessage()
func (*Lock) ProtoReflect ¶
func (x *Lock) ProtoReflect() protoreflect.Message
func (*Lock) SetCreatedAt ¶
func (m *Lock) SetCreatedAt(v *timestamppb.Timestamp)
func (*Lock) SetEndTime ¶
func (m *Lock) SetEndTime(v *timestamppb.Timestamp)
func (*Lock) SetInstanceId ¶
func (*Lock) SetResourceId ¶
func (*Lock) SetStartTime ¶
func (m *Lock) SetStartTime(v *timestamppb.Timestamp)
func (*Lock) SetState ¶
func (m *Lock) SetState(v Lock_State)
func (*Lock) SetTemplateId ¶
func (*Lock) SetUpdatedAt ¶
func (m *Lock) SetUpdatedAt(v *timestamppb.Timestamp)
type LockServiceClient ¶
type LockServiceClient interface { // Returns the specified subscription lock. Get(ctx context.Context, in *GetLockRequest, opts ...grpc.CallOption) (*Lock, error) // Returns the subscription lock for specified subscription instance and resource. GetByInstanceAndResource(ctx context.Context, in *GetLockByInstanceAndResourceRequest, opts ...grpc.CallOption) (*Lock, error) // Returns subscriptions locks for specified resource and folder. List(ctx context.Context, in *ListLocksRequest, opts ...grpc.CallOption) (*ListLocksResponse, error) // Locks the specified subscription instance to the resource. Create(ctx context.Context, in *CreateLockRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Checks if the she specified subscription is already locked to the specified resource. // If it is not locked, locks the subscription to the resource. Ensure(ctx context.Context, in *EnsureLockRequest, opts ...grpc.CallOption) (*operation.Operation, error) // Unlocks the specified subscription lock. Delete(ctx context.Context, in *DeleteLockRequest, opts ...grpc.CallOption) (*operation.Operation, error) }
LockServiceClient is the client API for LockService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
A set of methods for managing subscription locks.
func NewLockServiceClient ¶
func NewLockServiceClient(cc grpc.ClientConnInterface) LockServiceClient
type LockServiceServer ¶
type LockServiceServer interface { // Returns the specified subscription lock. Get(context.Context, *GetLockRequest) (*Lock, error) // Returns the subscription lock for specified subscription instance and resource. GetByInstanceAndResource(context.Context, *GetLockByInstanceAndResourceRequest) (*Lock, error) // Returns subscriptions locks for specified resource and folder. List(context.Context, *ListLocksRequest) (*ListLocksResponse, error) // Locks the specified subscription instance to the resource. Create(context.Context, *CreateLockRequest) (*operation.Operation, error) // Checks if the she specified subscription is already locked to the specified resource. // If it is not locked, locks the subscription to the resource. Ensure(context.Context, *EnsureLockRequest) (*operation.Operation, error) // Unlocks the specified subscription lock. Delete(context.Context, *DeleteLockRequest) (*operation.Operation, error) }
LockServiceServer is the server API for LockService service. All implementations should embed UnimplementedLockServiceServer for forward compatibility.
A set of methods for managing subscription locks.
type Lock_State ¶
type Lock_State int32
const ( Lock_STATE_UNSPECIFIED Lock_State = 0 // Subscription unlocked. Lock_UNLOCKED Lock_State = 1 // Subscription locked to the resource. Lock_LOCKED Lock_State = 2 // Subscription lock deleted. Lock_DELETED Lock_State = 3 )
func (Lock_State) Descriptor ¶
func (Lock_State) Descriptor() protoreflect.EnumDescriptor
func (Lock_State) Enum ¶
func (x Lock_State) Enum() *Lock_State
func (Lock_State) EnumDescriptor
deprecated
func (Lock_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Lock_State.Descriptor instead.
func (Lock_State) Number ¶
func (x Lock_State) Number() protoreflect.EnumNumber
func (Lock_State) String ¶
func (x Lock_State) String() string
func (Lock_State) Type ¶
func (Lock_State) Type() protoreflect.EnumType
type Template ¶
type Template struct { // ID of the subscription template. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version of the subscription template. VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` // Name of the subscription template. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // ID of publisher. PublisherId string `protobuf:"bytes,4,opt,name=publisher_id,json=publisherId,proto3" json:"publisher_id,omitempty"` // ID of product. ProductId string `protobuf:"bytes,5,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // ID of tariff. TariffId string `protobuf:"bytes,6,opt,name=tariff_id,json=tariffId,proto3" json:"tariff_id,omitempty"` // ID of subscription SKU. LicenseSkuId string `protobuf:"bytes,7,opt,name=license_sku_id,json=licenseSkuId,proto3" json:"license_sku_id,omitempty"` // Subscription period. Period string `protobuf:"bytes,8,opt,name=period,proto3" json:"period,omitempty"` // Creation timestamp. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Update timestamp. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Subscription template state. State Template_State `` /* 128-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Template) Descriptor
deprecated
func (*Template) GetCreatedAt ¶
func (x *Template) GetCreatedAt() *timestamppb.Timestamp
func (*Template) GetLicenseSkuId ¶
func (*Template) GetProductId ¶
func (*Template) GetPublisherId ¶
func (*Template) GetState ¶
func (x *Template) GetState() Template_State
func (*Template) GetTariffId ¶
func (*Template) GetUpdatedAt ¶
func (x *Template) GetUpdatedAt() *timestamppb.Timestamp
func (*Template) GetVersionId ¶
func (*Template) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) ProtoReflect ¶
func (x *Template) ProtoReflect() protoreflect.Message
func (*Template) SetCreatedAt ¶
func (m *Template) SetCreatedAt(v *timestamppb.Timestamp)
func (*Template) SetLicenseSkuId ¶
func (*Template) SetProductId ¶
func (*Template) SetPublisherId ¶
func (*Template) SetState ¶
func (m *Template) SetState(v Template_State)
func (*Template) SetTariffId ¶
func (*Template) SetUpdatedAt ¶
func (m *Template) SetUpdatedAt(v *timestamppb.Timestamp)
func (*Template) SetVersionId ¶
type Template_State ¶
type Template_State int32
const ( Template_STATE_UNSPECIFIED Template_State = 0 // Subscription template created but not active yet. Template_PENDING Template_State = 1 // Subscription template is active. Template_ACTIVE Template_State = 2 // Subscription template deprecated. Template_DEPRECATED Template_State = 3 // Subscription template deleted. Template_DELETED Template_State = 4 )
func (Template_State) Descriptor ¶
func (Template_State) Descriptor() protoreflect.EnumDescriptor
func (Template_State) Enum ¶
func (x Template_State) Enum() *Template_State
func (Template_State) EnumDescriptor
deprecated
func (Template_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Template_State.Descriptor instead.
func (Template_State) Number ¶
func (x Template_State) Number() protoreflect.EnumNumber
func (Template_State) String ¶
func (x Template_State) String() string
func (Template_State) Type ¶
func (Template_State) Type() protoreflect.EnumType
type UnimplementedInstanceServiceServer ¶
type UnimplementedInstanceServiceServer struct{}
UnimplementedInstanceServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedInstanceServiceServer) Get ¶
func (UnimplementedInstanceServiceServer) Get(context.Context, *GetInstanceRequest) (*Instance, error)
func (UnimplementedInstanceServiceServer) List ¶
func (UnimplementedInstanceServiceServer) List(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
type UnimplementedLockServiceServer ¶
type UnimplementedLockServiceServer struct{}
UnimplementedLockServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedLockServiceServer) Create ¶
func (UnimplementedLockServiceServer) Create(context.Context, *CreateLockRequest) (*operation.Operation, error)
func (UnimplementedLockServiceServer) Delete ¶
func (UnimplementedLockServiceServer) Delete(context.Context, *DeleteLockRequest) (*operation.Operation, error)
func (UnimplementedLockServiceServer) Ensure ¶
func (UnimplementedLockServiceServer) Ensure(context.Context, *EnsureLockRequest) (*operation.Operation, error)
func (UnimplementedLockServiceServer) Get ¶
func (UnimplementedLockServiceServer) Get(context.Context, *GetLockRequest) (*Lock, error)
func (UnimplementedLockServiceServer) GetByInstanceAndResource ¶
func (UnimplementedLockServiceServer) GetByInstanceAndResource(context.Context, *GetLockByInstanceAndResourceRequest) (*Lock, error)
func (UnimplementedLockServiceServer) List ¶
func (UnimplementedLockServiceServer) List(context.Context, *ListLocksRequest) (*ListLocksResponse, error)
type UnsafeInstanceServiceServer ¶
type UnsafeInstanceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInstanceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InstanceServiceServer will result in compilation errors.
type UnsafeLockServiceServer ¶
type UnsafeLockServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLockServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LockServiceServer will result in compilation errors.