diff --git a/gc/v1/gc.proto b/gc/v1/gc.proto index e9d6d9ca..07a5d054 100644 --- a/gc/v1/gc.proto +++ b/gc/v1/gc.proto @@ -38,6 +38,20 @@ service GuaranteedCommitments { }; } + // WORK-IN-PROGRESS: Approves or rejects a pending commitment purchase plan application. + rpc ApproveCommitmentPlanApply(ApproveCommitmentPlanApplyRequest) returns (CommitmentPlanDetails) { + option (google.api.http) = { + post: "/v1/commitments/plans/{planId}/approve" + body: "*" + }; + } + + // WORK-IN-PROGRESS: Lists all pending commitment plan approvals. + rpc ListPendingCommitmentPlanApprovals(ListPendingCommitmentPlanApprovalsRequest) returns (ListPendingCommitmentPlanApprovalsResponse) { + option (google.api.http) = { + get: "/v1/commitments/plans/approvals" + }; + } // ####################### COMMITMENTS ####################### // WORK-IN-PROGRESS: Retrieves a list of commitments. @@ -536,6 +550,15 @@ message CreateGuaranteedCommitmentAccessRequest { string externalId = 2; } +message ApproveCommitmentPlanApplyRequest { + string planId = 1; + // true = approve, false = reject + bool approved = 2; + // optional reason if rejected + string reason = 3; +} + +message ListPendingCommitmentPlanApprovalsRequest {} // ####################### RESPONSE MESSAGES ####################### @@ -1242,4 +1265,20 @@ message GetPurchasePlansDetailsResponse { // Audit history of the plan repeated PlanHistoryEntry history = 4; +} + +message PendingCommitmentPlanApproval { + string planId = 1; + string companyId = 2; + string userId = 3; + string planName = 4; + string status = 5; // "PENDING_APPROVAL" | "APPROVED" | "REJECTED" + string requestedAt = 6; + double monthlySavings = 7; + double totalSavings = 8; + double monthlyCost = 9; +} + +message ListPendingCommitmentPlanApprovalsResponse { + repeated PendingCommitmentPlanApproval approvals = 1; } \ No newline at end of file diff --git a/openapiv2/apidocs.swagger.json b/openapiv2/apidocs.swagger.json index 94eec78a..a12ce66e 100644 --- a/openapiv2/apidocs.swagger.json +++ b/openapiv2/apidocs.swagger.json @@ -7956,15 +7956,77 @@ ] } }, + "/v1/commitments/plans/approvals": { + "get": { + "summary": "WORK-IN-PROGRESS: Lists all pending commitment plan approvals.", + "operationId": "GuaranteedCommitments_ListPendingCommitmentPlanApprovals", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ListPendingCommitmentPlanApprovalsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "GuaranteedCommitments" + ] + } + }, + "/v1/commitments/plans/{planId}/approve": { + "post": { + "summary": "WORK-IN-PROGRESS: Approves or rejects a pending commitment purchase plan application.", + "operationId": "GuaranteedCommitments_ApproveCommitmentPlanApply", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1CommitmentPlanDetails" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "planId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GuaranteedCommitmentsApproveCommitmentPlanApplyBody" + } + } + ], + "tags": [ + "GuaranteedCommitments" + ] + } + }, "/v1/commitments/purchaseplans": { "get": { "summary": "WORK-IN-PROGRESS: Retrieves purchase plan of a company.", - "operationId": "GuaranteedCommitments_UpdatePurchasePlansBySegment", + "operationId": "GuaranteedCommitments_ListPurchasePlansBySegment", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1UpdatePurchasePlansBySegmentResponse" + "$ref": "#/definitions/v1ListPurchasePlansBySegmentResponse" } }, "default": { @@ -8105,6 +8167,39 @@ ] } }, + "/v1/commitments/purchaseplans:update": { + "post": { + "summary": "WORK-IN-PROGRESS: Get the updated details of the plan after the apply plan.", + "operationId": "GuaranteedCommitments_GetUpdatedPurchasePlansBySegment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetUpdatedPurchasePlansBySegmentResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetUpdatedPurchasePlansBySegmentRequest" + } + } + ], + "tags": [ + "GuaranteedCommitments" + ] + } + }, "/v1/commitments/{commitmentId}/chart": { "get": { "summary": "WORK-IN-PROGRESS: Generates time-series chart data for commitment metrics over the specified time period.", @@ -8220,15 +8315,15 @@ ] } }, - "/v1/contexts": { + "/v1/contexts/label": { "post": { - "summary": "(ALPHA) Creates context.", - "operationId": "Luster_CreateContext", + "summary": "(ALPHA) Creates label.", + "operationId": "Luster_CreateLabel", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/lusterContext" + "$ref": "#/definitions/apilusterLabel" } }, "default": { @@ -8241,11 +8336,11 @@ "parameters": [ { "name": "body", - "description": "Request message for the Luster.CreateContext rpc.", + "description": "Request message for the Luster.CreateLabel rpc.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1CreateContextRequest" + "$ref": "#/definitions/v1CreateLabelRequest" } } ], @@ -8254,15 +8349,15 @@ ] } }, - "/v1/contexts/label": { + "/v1/contexts/{spaceId}": { "post": { - "summary": "(ALPHA) Creates label.", - "operationId": "Luster_CreateLabel", + "summary": "(ALPHA) Creates context.", + "operationId": "Luster_CreateContext", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/apilusterLabel" + "$ref": "#/definitions/lusterContext" } }, "default": { @@ -8273,13 +8368,19 @@ } }, "parameters": [ + { + "name": "spaceId", + "description": "Required. The space id.", + "in": "path", + "required": true, + "type": "string" + }, { "name": "body", - "description": "Request message for the Luster.CreateLabel rpc.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1CreateLabelRequest" + "$ref": "#/definitions/LusterCreateContextBody" } } ], @@ -8288,15 +8389,15 @@ ] } }, - "/v1/contexts/{id}": { - "get": { - "summary": "(ALPHA) Gets context.", - "operationId": "Luster_GetContext", + "/v1/contexts/{spaceId}/{contextId}/comment": { + "post": { + "summary": "(ALPHA) Creates comment in context.", + "operationId": "Luster_CreateContextComment", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1GetContextResponse" + "$ref": "#/definitions/lusterComment" } }, "default": { @@ -8308,20 +8409,37 @@ }, "parameters": [ { - "name": "id", - "description": "the context id.", + "name": "spaceId", + "description": "Required. the space id.", "in": "path", "required": true, "type": "string" + }, + { + "name": "contextId", + "description": "Required. the context id.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LusterCreateContextCommentBody" + } } ], "tags": [ "Luster" ] - }, + } + }, + "/v1/contexts/{spaceId}/{contextId}/comment/{id}": { "delete": { - "summary": "(ALPHA) Deletes context.", - "operationId": "Luster_DeleteContext", + "summary": "(ALPHA) Deletes comment in context.", + "operationId": "Luster_DeleteContextComment", "responses": { "200": { "description": "A successful response.", @@ -8338,9 +8456,23 @@ } }, "parameters": [ + { + "name": "spaceId", + "description": "Required. the space id.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "contextId", + "description": "Required. the context id.", + "in": "path", + "required": true, + "type": "string" + }, { "name": "id", - "description": "the context id.", + "description": "Required. the comment id.", "in": "path", "required": true, "type": "string" @@ -8351,13 +8483,13 @@ ] }, "put": { - "summary": "(ALPHA) Updates context.", - "operationId": "Luster_UpdateContext", + "summary": "(ALPHA) Updates comment in context.", + "operationId": "Luster_UpdateContextComment", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/lusterContext" + "$ref": "#/definitions/lusterComment" } }, "default": { @@ -8368,9 +8500,23 @@ } }, "parameters": [ + { + "name": "spaceId", + "description": "Required. the space id.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "contextId", + "description": "Required. the context id.", + "in": "path", + "required": true, + "type": "string" + }, { "name": "id", - "description": "the context id.", + "description": "Required. the comment id.", "in": "path", "required": true, "type": "string" @@ -8380,7 +8526,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/LusterUpdateContextBody" + "$ref": "#/definitions/LusterUpdateContextCommentBody" } } ], @@ -8389,15 +8535,15 @@ ] } }, - "/v1/contexts/{id}/comment": { - "post": { - "summary": "(ALPHA) Creates comment in context.", - "operationId": "Luster_CreateContextComment", + "/v1/contexts/{spaceId}/{id}": { + "get": { + "summary": "(ALPHA) Gets context.", + "operationId": "Luster_GetContext", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/lusterComment" + "$ref": "#/definitions/v1GetContextResponse" } }, "default": { @@ -8408,6 +8554,13 @@ } }, "parameters": [ + { + "name": "spaceId", + "description": "Required. The space id.", + "in": "path", + "required": true, + "type": "string" + }, { "name": "id", "description": "the context id.", @@ -8416,23 +8569,20 @@ "type": "string" }, { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LusterCreateContextCommentBody" - } + "name": "fieldMask", + "description": "Optional. field_mask\nsee more info: https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ "Luster" ] - } - }, - "/v1/contexts/{id}/comment/{commentId}": { + }, "delete": { - "summary": "(ALPHA) Deletes comment in context.", - "operationId": "Luster_DeleteContextComment", + "summary": "(ALPHA) Deletes context.", + "operationId": "Luster_DeleteContext", "responses": { "200": { "description": "A successful response.", @@ -8450,15 +8600,15 @@ }, "parameters": [ { - "name": "id", - "description": "the context id.", + "name": "spaceId", + "description": "Required. The space id.", "in": "path", "required": true, "type": "string" }, { - "name": "commentId", - "description": "the context comment id.", + "name": "id", + "description": "Required. the context id.", "in": "path", "required": true, "type": "string" @@ -8469,13 +8619,13 @@ ] }, "put": { - "summary": "(ALPHA) Updates comment in context.", - "operationId": "Luster_UpdateContextComment", + "summary": "(ALPHA) Updates context.", + "operationId": "Luster_UpdateContext", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/lusterComment" + "$ref": "#/definitions/lusterContext" } }, "default": { @@ -8487,15 +8637,15 @@ }, "parameters": [ { - "name": "id", - "description": "the context id.", + "name": "spaceId", + "description": "Required. The space id.", "in": "path", "required": true, "type": "string" }, { - "name": "commentId", - "description": "the context comment id.", + "name": "id", + "description": "Required. the context id.", "in": "path", "required": true, "type": "string" @@ -8505,7 +8655,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/LusterUpdateContextCommentBody" + "$ref": "#/definitions/LusterUpdateContextBody" } } ], @@ -8514,9 +8664,9 @@ ] } }, - "/v1/contexts:read": { + "/v1/contexts/{spaceId}:read": { "post": { - "summary": "(ALPHA) Reads contexts.\nスペースの読み取り。", + "summary": "(ALPHA) Reads contexts.", "operationId": "Luster_ReadContexts", "responses": { "200": { @@ -8542,13 +8692,19 @@ } }, "parameters": [ + { + "name": "spaceId", + "description": "Required. The space id.", + "in": "path", + "required": true, + "type": "string" + }, { "name": "body", - "description": "Request message for the Luster.ReadContexts rpc.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1ReadContextsRequest" + "$ref": "#/definitions/LusterReadContextsBody" } } ], @@ -15998,6 +16154,13 @@ "in": "path", "required": true, "type": "string" + }, + { + "name": "fieldMask", + "description": "Optional. field_mask\nsee more info: https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -16055,7 +16218,7 @@ "parameters": [ { "name": "id", - "description": "the space id.", + "description": "Required. the space id.", "in": "path", "required": true, "type": "string" @@ -25521,6 +25684,19 @@ "default": "ONBOARDING_STATUS_UNSPECIFIED", "title": "- ONBOARDING_STATUS_NOT_REGISTERED: No row found in archera_users (org not registered yet)\n - ONBOARDING_STATUS_REGISTERED: Existing statuses you already persist" }, + "GuaranteedCommitmentsApproveCommitmentPlanApplyBody": { + "type": "object", + "properties": { + "approved": { + "type": "boolean", + "title": "true = approve, false = reject" + }, + "reason": { + "type": "string", + "title": "optional reason if rejected" + } + } + }, "GuaranteedCommitmentsCommitmentsPlanApplyBody": { "type": "object" }, @@ -25986,27 +26162,113 @@ } } }, + "LusterCreateContextBody": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "Required. The context title." + }, + "content": { + "type": "string", + "description": "Required. The context content." + }, + "contextType": { + "$ref": "#/definitions/lusterContextType", + "title": "Optional. The context type.\nif not set, default: `any`" + } + }, + "description": "Request message for the Luster.CreateContext rpc." + }, "LusterCreateContextCommentBody": { "type": "object", "properties": { "content": { "type": "string", - "description": "The comment content." + "description": "Required. The comment content." } }, "description": "Request message for the Luster.CreateContextComment rpc." }, + "LusterReadContextsBody": { + "type": "object", + "properties": { + "fieldMask": { + "type": "string", + "title": "Optional. field_mask" + } + }, + "description": "Request message for the Luster.ReadContexts rpc." + }, "LusterUpdateContextBody": { "type": "object", - "description": "Request message for the Luster.UpdateContext rpc." + "properties": { + "title": { + "type": "string", + "description": "Optional. The context title." + }, + "content": { + "type": "string", + "description": "Optional. The context content." + }, + "contextType": { + "$ref": "#/definitions/lusterContextType", + "title": "Optional. The context type.\nif not set, default: `any`" + }, + "updateMask": { + "type": "string", + "title": "Required.\nsee more info: https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto" + } + }, + "description": "Request message for the Luster.UpdateContext rpc.", + "required": [ + "updateMask" + ] }, "LusterUpdateContextCommentBody": { "type": "object", - "description": "Request message for the Luster.UpdateContextComment rpc." + "properties": { + "content": { + "type": "string", + "description": "Required. The comment content." + }, + "updateMask": { + "type": "string", + "title": "Required.\nsee more info: https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto" + } + }, + "description": "Request message for the Luster.UpdateContextComment rpc.", + "required": [ + "updateMask" + ] }, "LusterUpdateSpaceBody": { "type": "object", - "description": "Request message for the Luster.UpdateSpace rpc." + "properties": { + "name": { + "type": "string", + "description": "Optional. the space name." + }, + "description": { + "type": "string", + "description": "Optional. the space description." + }, + "members": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional. the member ids." + }, + "updateMask": { + "type": "string", + "title": "Required.\nsee more info: https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto" + } + }, + "description": "Request message for the Luster.UpdateSpace rpc.", + "required": [ + "updateMask" + ] }, "MethodConfigChargingMethod": { "type": "string", @@ -28888,11 +29150,13 @@ }, "createdAt": { "type": "string", - "title": "The label createdAt.\n\"created_at\": \"2023-10-27T10:00:00Z\"" + "title": "The label createdAt.\n\"created_at\": \"2023-10-27T10:00:00Z\"", + "readOnly": true }, "updatedAt": { "type": "string", - "title": "The label updatedAt.\n\"updated_at\": \"2023-10-27T10:00:00Z\"" + "title": "The label updatedAt.\n\"updated_at\": \"2023-10-27T10:00:00Z\"", + "readOnly": true } }, "title": "The message defines the label" @@ -34147,15 +34411,18 @@ }, "userId": { "type": "string", - "description": "The comment userId." + "description": "The comment user_id.", + "readOnly": true }, "createdAt": { "type": "string", - "title": "The comment createdAt.\n\"created_at\": \"2023-10-27T10:00:00Z\"" + "title": "The comment created_at.\n\"created_at\": \"2023-10-27T10:00:00Z\"", + "readOnly": true }, "updatedAt": { "type": "string", - "title": "The comment updatedAt.\n\"updated_at\": \"2023-10-27T10:00:00Z\"" + "title": "The comment updated_at.\n\"updated_at\": \"2023-10-27T10:00:00Z\"", + "readOnly": true } }, "title": "The message defines the comment" @@ -34183,9 +34450,13 @@ "type": "string", "title": "The context content.\n \"content\": \"contextの本文詳細...\"" }, + "contextType": { + "$ref": "#/definitions/lusterContextType", + "description": "The context type." + }, "state": { "type": "string", - "title": "The context state.\n \"state\": \"open\"" + "title": "The context state.\n \"state\": \"open\", \"pending\", \"review\", \"close\"" }, "labels": { "type": "array", @@ -34204,27 +34475,43 @@ "commentsCount": { "type": "string", "format": "int64", - "title": "The context commentsCount.\n\"comments_count\": 0" + "title": "The context comments_count.\n\"comments_count\": 0", + "readOnly": true }, "createdAt": { "type": "string", - "title": "The context createdAt.\n\"created_at\": \"2023-10-27T10:00:00Z\"" + "title": "The context created_at.\n\"created_at\": \"2023-10-27T10:00:00Z\"", + "readOnly": true }, "updatedAt": { "type": "string", - "title": "The context updatedAt.\n\"updated_at\": \"2023-10-27T10:00:00Z\"" + "title": "The context updated_at.\n\"updated_at\": \"2023-10-27T10:00:00Z\"", + "readOnly": true }, "closedAt": { "type": "string", - "description": "The context closedAt." + "title": "The context closed_at.\n\"closed_at\": \"2023-10-27T10:00:00Z\"", + "readOnly": true }, "userId": { "type": "string", - "description": "The context userId." + "description": "The context user_id.", + "readOnly": true } }, "title": "The message defines the context" }, + "lusterContextType": { + "type": "string", + "enum": [ + "ANY", + "SPACE", + "ACCOUNT", + "COST" + ], + "default": "ANY", + "description": "The context type.\n\n - ANY: anyone\n - SPACE: space\n - ACCOUNT: account\n - COST: cost" + }, "lusterSpace": { "type": "object", "properties": { @@ -34246,6 +34533,16 @@ "type": "string" }, "description": "The members in space." + }, + "createdAt": { + "type": "string", + "title": "The space created_at.\n\"created_at\": \"2023-10-27T10:00:00Z\"", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "title": "The space updated_at.\n\"updated_at\": \"2023-10-27T10:00:00Z\"", + "readOnly": true } }, "title": "The message defines the space" @@ -34315,11 +34612,11 @@ "properties": { "@type": { "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." } }, "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\nExample 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\nExample 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" }, "protobufNullValue": { "type": "string", @@ -34327,7 +34624,7 @@ "NULL_VALUE" ], "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." }, "protosOperation": { "type": "object", @@ -36431,6 +36728,10 @@ "type": "string", "title": "For aws only: `default` or `imported`" }, + "hasChild": { + "type": "boolean", + "description": "Indicates if this billing group has child billing groups. AWS only for now." + }, "billingGroupInfo": { "$ref": "#/definitions/rippleBillingGroupInfo", "title": "The billing group info" @@ -37169,14 +37470,20 @@ "type": "object", "properties": { "basicInformation": { - "$ref": "#/definitions/v1ChildBillingGroupBasicInformation" + "$ref": "#/definitions/v1ChildBillingGroupBasicInformation", + "description": "Required. Basic information for the child billing group." }, "invoiceSettings": { - "$ref": "#/definitions/v1ChildBillingGroupInvoiceSettings" + "$ref": "#/definitions/v1ChildBillingGroupInvoiceSettings", + "description": "Required. Invoice settings for the child billing group." }, "billingInfo": { "$ref": "#/definitions/rippleBillingGroupInfo", - "title": "AccountInvoiceServiceDiscounts serviceDiscounts = 3;" + "description": "Required. Billing info for the child billing group." + }, + "hasChild": { + "type": "boolean", + "description": "Indicates whether this child billing group has another child under it.\n\nAccountInvoiceServiceDiscounts serviceDiscounts = 3;" } }, "description": "Contains basic information and invoice settings related data." @@ -38703,20 +39010,6 @@ }, "description": "Request message for the Admin.CreateCloudWatchMetricsStream rpc." }, - "v1CreateContextRequest": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "The context title." - }, - "content": { - "type": "string", - "description": "The context content." - } - }, - "description": "Request message for the Luster.CreateContext rpc." - }, "v1CreateCostExplorerAccessRequest": { "type": "object", "properties": { @@ -39599,11 +39892,18 @@ "properties": { "name": { "type": "string", - "description": "the space name." + "description": "Required. the space name." }, "description": { "type": "string", - "description": "the space description." + "description": "Optional. the space description." + }, + "members": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional. the member ids." } }, "description": "Request message for the Luster.CreateSpace rpc." @@ -43161,6 +43461,21 @@ } } }, + "v1GetUpdatedPurchasePlansBySegmentRequest": { + "type": "object" + }, + "v1GetUpdatedPurchasePlansBySegmentResponse": { + "type": "object", + "properties": { + "plans": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1DefaultPurchasePlan" + } + } + } + }, "v1GetUserAccountSettingsResponse": { "type": "object", "properties": { @@ -44049,6 +44364,18 @@ } } }, + "v1ListPendingCommitmentPlanApprovalsResponse": { + "type": "object", + "properties": { + "approvals": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1PendingCommitmentPlanApproval" + } + } + } + }, "v1ListPermissionsResponse": { "type": "object", "properties": { @@ -44876,6 +45203,42 @@ }, "description": "Extended payer account information with additional metadata." }, + "v1PendingCommitmentPlanApproval": { + "type": "object", + "properties": { + "planId": { + "type": "string" + }, + "companyId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "planName": { + "type": "string" + }, + "status": { + "type": "string", + "title": "\"PENDING_APPROVAL\" | \"APPROVED\" | \"REJECTED\"" + }, + "requestedAt": { + "type": "string" + }, + "monthlySavings": { + "type": "number", + "format": "double" + }, + "totalSavings": { + "type": "number", + "format": "double" + }, + "monthlyCost": { + "type": "number", + "format": "double" + } + } + }, "v1PeriodOverPeriodOptionSection": { "type": "object", "properties": { @@ -45355,10 +45718,6 @@ } } }, - "v1ReadContextsRequest": { - "type": "object", - "description": "Request message for the Luster.ReadContexts rpc." - }, "v1ReadCostAttributesRequestAwsOptions": { "type": "object", "properties": { @@ -45652,6 +46011,12 @@ }, "v1ReadSpacesRequest": { "type": "object", + "properties": { + "fieldMask": { + "type": "string", + "title": "Optional. field_mask\nsee more info: https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto" + } + }, "description": "Request message for the Luster.ReadSpaces rpc." }, "v1ReadTagCostsRequestAwsOptions": { @@ -47492,18 +47857,6 @@ }, "description": "Request message for the Organization.UpdatePassword rpc." }, - "v1UpdatePurchasePlansBySegmentResponse": { - "type": "object", - "properties": { - "plans": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v1DefaultPurchasePlan" - } - } - } - }, "v1UpdateSharedResourcesResponse": { "type": "object", "properties": {