123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- syntax = "proto3";
- package google.cloud.channel.v1;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/channel/v1/common.proto";
- import "google/cloud/channel/v1/offers.proto";
- import "google/cloud/channel/v1/products.proto";
- import "google/protobuf/timestamp.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel";
- option java_multiple_files = true;
- option java_outer_classname = "EntitlementsProto";
- option java_package = "com.google.cloud.channel.v1";
- message Entitlement {
- option (google.api.resource) = {
- type: "cloudchannel.googleapis.com/Entitlement"
- pattern: "accounts/{account}/customers/{customer}/entitlements/{entitlement}"
- };
-
- enum ProvisioningState {
-
- PROVISIONING_STATE_UNSPECIFIED = 0;
-
- ACTIVE = 1;
-
- SUSPENDED = 5;
- }
-
- enum SuspensionReason {
-
- SUSPENSION_REASON_UNSPECIFIED = 0;
-
- RESELLER_INITIATED = 1;
-
- TRIAL_ENDED = 2;
-
- RENEWAL_WITH_TYPE_CANCEL = 3;
-
-
- PENDING_TOS_ACCEPTANCE = 4;
-
- OTHER = 100;
- }
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string offer = 8 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudchannel.googleapis.com/Offer"
- }
- ];
-
-
- CommitmentSettings commitment_settings = 12;
-
- ProvisioningState provisioning_state = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- ProvisionedService provisioned_service = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- repeated SuspensionReason suspension_reasons = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
- string purchase_order_id = 19 [(google.api.field_behavior) = OPTIONAL];
-
- TrialSettings trial_settings = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- AssociationInfo association_info = 23;
-
-
-
-
-
-
-
-
-
-
-
- repeated Parameter parameters = 26;
- }
- message Parameter {
-
- string name = 1;
-
- Value value = 2;
-
-
-
- bool editable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message AssociationInfo {
-
- string base_entitlement = 1 [(google.api.resource_reference) = {
- type: "cloudchannel.googleapis.com/Entitlement"
- }];
- }
- message ProvisionedService {
-
-
-
- string provisioning_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string product_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string sku_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message CommitmentSettings {
-
- google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- RenewalSettings renewal_settings = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message RenewalSettings {
-
- bool enable_renewal = 1;
-
-
- bool resize_unit_count = 2;
-
- PaymentPlan payment_plan = 5;
-
-
- Period payment_cycle = 6;
- }
- message TrialSettings {
-
-
-
-
- bool trial = 1;
-
-
-
- google.protobuf.Timestamp end_time = 2;
- }
- message TransferableSku {
-
- TransferEligibility transfer_eligibility = 9;
-
- Sku sku = 11;
-
- Sku legacy_sku = 12 [(google.api.field_behavior) = OPTIONAL];
- }
- message TransferEligibility {
-
- enum Reason {
-
- REASON_UNSPECIFIED = 0;
-
- PENDING_TOS_ACCEPTANCE = 1;
-
- SKU_NOT_ELIGIBLE = 2;
-
- SKU_SUSPENDED = 3;
- }
-
- bool is_eligible = 1;
-
- string description = 2;
-
- Reason ineligibility_reason = 3;
- }
|