From d42baf0f87c8fbdf3e834aa4f841591f02bfbb02 Mon Sep 17 00:00:00 2001 From: droplet-bot Date: Thu, 13 Jun 2024 15:10:51 +0000 Subject: [PATCH] chore: auto-gen by protobufs triggered by commit: https://github.com/instill-ai/protobufs/commit/6b98dfb4c17161f4500dd90681172e2c87288338 --- core/mgmt/v1beta/metric_pb2.py | 28 ++++- core/mgmt/v1beta/metric_pb2.pyi | 102 ++++++++++++++++++ core/mgmt/v1beta/mgmt_public_service_pb2.py | 6 +- .../v1beta/mgmt_public_service_pb2_grpc.py | 38 +++++++ .../v1beta/mgmt_public_service_pb2_grpc.pyi | 32 ++++++ 5 files changed, 199 insertions(+), 7 deletions(-) diff --git a/core/mgmt/v1beta/metric_pb2.py b/core/mgmt/v1beta/metric_pb2.py index 18aac86..4cc3aeb 100644 --- a/core/mgmt/v1beta/metric_pb2.py +++ b/core/mgmt/v1beta/metric_pb2.py @@ -15,7 +15,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63ore/mgmt/v1beta/metric.proto\x12\x10\x63ore.mgmt.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe5\x03\n\x15PipelineTriggerRecord\x12=\n\x0ctrigger_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0btriggerTime\x12.\n\x13pipeline_trigger_id\x18\x02 \x01(\tR\x11pipelineTriggerId\x12\x1f\n\x0bpipeline_id\x18\x03 \x01(\tR\npipelineId\x12!\n\x0cpipeline_uid\x18\x04 \x01(\tR\x0bpipelineUid\x12\x39\n\x0ctrigger_mode\x18\x05 \x01(\x0e\x32\x16.core.mgmt.v1beta.ModeR\x0btriggerMode\x12\x38\n\x15\x63ompute_time_duration\x18\x06 \x01(\x02\x42\x04\xe2\x41\x01\x03R\x13\x63omputeTimeDuration\x12\x36\n\x06status\x18\x07 \x01(\x0e\x32\x18.core.mgmt.v1beta.StatusB\x04\xe2\x41\x01\x03R\x06status\x12\x34\n\x13pipeline_release_id\x18\x08 \x01(\tB\x04\xe2\x41\x01\x03R\x11pipelineReleaseId\x12\x36\n\x14pipeline_release_uid\x18\t \x01(\tB\x04\xe2\x41\x01\x03R\x12pipelineReleaseUid\"\xc6\x02\n\x1aPipelineTriggerTableRecord\x12\x1f\n\x0bpipeline_id\x18\x01 \x01(\tR\npipelineId\x12!\n\x0cpipeline_uid\x18\x02 \x01(\tR\x0bpipelineUid\x12<\n\x17trigger_count_completed\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x03R\x15triggerCountCompleted\x12\x38\n\x15trigger_count_errored\x18\x04 \x01(\x05\x42\x04\xe2\x41\x01\x03R\x13triggerCountErrored\x12\x34\n\x13pipeline_release_id\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03R\x11pipelineReleaseId\x12\x36\n\x14pipeline_release_uid\x18\x06 \x01(\tB\x04\xe2\x41\x01\x03R\x12pipelineReleaseUid\"\xed\x03\n\x1aPipelineTriggerChartRecord\x12\x1f\n\x0bpipeline_id\x18\x01 \x01(\tR\npipelineId\x12!\n\x0cpipeline_uid\x18\x02 \x01(\tR\x0bpipelineUid\x12\x39\n\x0ctrigger_mode\x18\x03 \x01(\x0e\x32\x16.core.mgmt.v1beta.ModeR\x0btriggerMode\x12\x36\n\x06status\x18\x04 \x01(\x0e\x32\x18.core.mgmt.v1beta.StatusB\x04\xe2\x41\x01\x03R\x06status\x12\x43\n\x0ctime_buckets\x18\x05 \x03(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\x0btimeBuckets\x12+\n\x0etrigger_counts\x18\x06 \x03(\x05\x42\x04\xe2\x41\x01\x03R\rtriggerCounts\x12\x38\n\x15\x63ompute_time_duration\x18\x07 \x03(\x02\x42\x04\xe2\x41\x01\x03R\x13\x63omputeTimeDuration\x12\x34\n\x13pipeline_release_id\x18\x08 \x01(\tB\x04\xe2\x41\x01\x03R\x11pipelineReleaseId\x12\x36\n\x14pipeline_release_uid\x18\t \x01(\tB\x04\xe2\x41\x01\x03R\x12pipelineReleaseUid\"\xc0\x01\n!ListPipelineTriggerRecordsRequest\x12&\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01H\x00R\x08pageSize\x88\x01\x01\x12(\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x01R\tpageToken\x88\x01\x01\x12!\n\x06\x66ilter\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01H\x02R\x06\x66ilter\x88\x01\x01\x42\x0c\n\n_page_sizeB\r\n\x0b_page_tokenB\t\n\x07_filter\"\xce\x01\n\"ListPipelineTriggerRecordsResponse\x12\x61\n\x18pipeline_trigger_records\x18\x01 \x03(\x0b\x32\'.core.mgmt.v1beta.PipelineTriggerRecordR\x16pipelineTriggerRecords\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\x12\x1d\n\ntotal_size\x18\x03 \x01(\x05R\ttotalSize\"\xc5\x01\n&ListPipelineTriggerTableRecordsRequest\x12&\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01H\x00R\x08pageSize\x88\x01\x01\x12(\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x01R\tpageToken\x88\x01\x01\x12!\n\x06\x66ilter\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01H\x02R\x06\x66ilter\x88\x01\x01\x42\x0c\n\n_page_sizeB\r\n\x0b_page_tokenB\t\n\x07_filter\"\xe3\x01\n\'ListPipelineTriggerTableRecordsResponse\x12q\n\x1epipeline_trigger_table_records\x18\x01 \x03(\x0b\x32,.core.mgmt.v1beta.PipelineTriggerTableRecordR\x1bpipelineTriggerTableRecords\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\x12\x1d\n\ntotal_size\x18\x03 \x01(\x05R\ttotalSize\"\x85\x01\n&ListPipelineTriggerChartRecordsRequest\x12-\n\x12\x61ggregation_window\x18\x01 \x01(\x05R\x11\x61ggregationWindow\x12!\n\x06\x66ilter\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x00R\x06\x66ilter\x88\x01\x01\x42\t\n\x07_filter\"\x9c\x01\n\'ListPipelineTriggerChartRecordsResponse\x12q\n\x1epipeline_trigger_chart_records\x18\x01 \x03(\x0b\x32,.core.mgmt.v1beta.PipelineTriggerChartRecordR\x1bpipelineTriggerChartRecords*;\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\r\n\tMODE_SYNC\x10\x01\x12\x0e\n\nMODE_ASYNC\x10\x02*J\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x14\n\x10STATUS_COMPLETED\x10\x01\x12\x12\n\x0eSTATUS_ERRORED\x10\x02\x42\xc4\x01\n\x14\x63om.core.mgmt.v1betaB\x0bMetricProtoP\x01Z=github.com/instill-ai/protogen-go/core/mgmt/v1beta;mgmtv1beta\xa2\x02\x03\x43MX\xaa\x02\x10\x43ore.Mgmt.V1beta\xca\x02\x10\x43ore\\Mgmt\\V1beta\xe2\x02\x1c\x43ore\\Mgmt\\V1beta\\GPBMetadata\xea\x02\x12\x43ore::Mgmt::V1betab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63ore/mgmt/v1beta/metric.proto\x12\x10\x63ore.mgmt.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe5\x03\n\x15PipelineTriggerRecord\x12=\n\x0ctrigger_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0btriggerTime\x12.\n\x13pipeline_trigger_id\x18\x02 \x01(\tR\x11pipelineTriggerId\x12\x1f\n\x0bpipeline_id\x18\x03 \x01(\tR\npipelineId\x12!\n\x0cpipeline_uid\x18\x04 \x01(\tR\x0bpipelineUid\x12\x39\n\x0ctrigger_mode\x18\x05 \x01(\x0e\x32\x16.core.mgmt.v1beta.ModeR\x0btriggerMode\x12\x38\n\x15\x63ompute_time_duration\x18\x06 \x01(\x02\x42\x04\xe2\x41\x01\x03R\x13\x63omputeTimeDuration\x12\x36\n\x06status\x18\x07 \x01(\x0e\x32\x18.core.mgmt.v1beta.StatusB\x04\xe2\x41\x01\x03R\x06status\x12\x34\n\x13pipeline_release_id\x18\x08 \x01(\tB\x04\xe2\x41\x01\x03R\x11pipelineReleaseId\x12\x36\n\x14pipeline_release_uid\x18\t \x01(\tB\x04\xe2\x41\x01\x03R\x12pipelineReleaseUid\"\xc6\x02\n\x1aPipelineTriggerTableRecord\x12\x1f\n\x0bpipeline_id\x18\x01 \x01(\tR\npipelineId\x12!\n\x0cpipeline_uid\x18\x02 \x01(\tR\x0bpipelineUid\x12<\n\x17trigger_count_completed\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x03R\x15triggerCountCompleted\x12\x38\n\x15trigger_count_errored\x18\x04 \x01(\x05\x42\x04\xe2\x41\x01\x03R\x13triggerCountErrored\x12\x34\n\x13pipeline_release_id\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03R\x11pipelineReleaseId\x12\x36\n\x14pipeline_release_uid\x18\x06 \x01(\tB\x04\xe2\x41\x01\x03R\x12pipelineReleaseUid\"\xed\x03\n\x1aPipelineTriggerChartRecord\x12\x1f\n\x0bpipeline_id\x18\x01 \x01(\tR\npipelineId\x12!\n\x0cpipeline_uid\x18\x02 \x01(\tR\x0bpipelineUid\x12\x39\n\x0ctrigger_mode\x18\x03 \x01(\x0e\x32\x16.core.mgmt.v1beta.ModeR\x0btriggerMode\x12\x36\n\x06status\x18\x04 \x01(\x0e\x32\x18.core.mgmt.v1beta.StatusB\x04\xe2\x41\x01\x03R\x06status\x12\x43\n\x0ctime_buckets\x18\x05 \x03(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\x0btimeBuckets\x12+\n\x0etrigger_counts\x18\x06 \x03(\x05\x42\x04\xe2\x41\x01\x03R\rtriggerCounts\x12\x38\n\x15\x63ompute_time_duration\x18\x07 \x03(\x02\x42\x04\xe2\x41\x01\x03R\x13\x63omputeTimeDuration\x12\x34\n\x13pipeline_release_id\x18\x08 \x01(\tB\x04\xe2\x41\x01\x03R\x11pipelineReleaseId\x12\x36\n\x14pipeline_release_uid\x18\t \x01(\tB\x04\xe2\x41\x01\x03R\x12pipelineReleaseUid\"\xc0\x01\n!ListPipelineTriggerRecordsRequest\x12&\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01H\x00R\x08pageSize\x88\x01\x01\x12(\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x01R\tpageToken\x88\x01\x01\x12!\n\x06\x66ilter\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01H\x02R\x06\x66ilter\x88\x01\x01\x42\x0c\n\n_page_sizeB\r\n\x0b_page_tokenB\t\n\x07_filter\"\xce\x01\n\"ListPipelineTriggerRecordsResponse\x12\x61\n\x18pipeline_trigger_records\x18\x01 \x03(\x0b\x32\'.core.mgmt.v1beta.PipelineTriggerRecordR\x16pipelineTriggerRecords\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\x12\x1d\n\ntotal_size\x18\x03 \x01(\x05R\ttotalSize\"\xc5\x01\n&ListPipelineTriggerTableRecordsRequest\x12&\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01H\x00R\x08pageSize\x88\x01\x01\x12(\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x01R\tpageToken\x88\x01\x01\x12!\n\x06\x66ilter\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01H\x02R\x06\x66ilter\x88\x01\x01\x42\x0c\n\n_page_sizeB\r\n\x0b_page_tokenB\t\n\x07_filter\"\xe3\x01\n\'ListPipelineTriggerTableRecordsResponse\x12q\n\x1epipeline_trigger_table_records\x18\x01 \x03(\x0b\x32,.core.mgmt.v1beta.PipelineTriggerTableRecordR\x1bpipelineTriggerTableRecords\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\x12\x1d\n\ntotal_size\x18\x03 \x01(\x05R\ttotalSize\"\x85\x01\n&ListPipelineTriggerChartRecordsRequest\x12-\n\x12\x61ggregation_window\x18\x01 \x01(\x05R\x11\x61ggregationWindow\x12!\n\x06\x66ilter\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x00R\x06\x66ilter\x88\x01\x01\x42\t\n\x07_filter\"\x9c\x01\n\'ListPipelineTriggerChartRecordsResponse\x12q\n\x1epipeline_trigger_chart_records\x18\x01 \x03(\x0b\x32,.core.mgmt.v1beta.PipelineTriggerChartRecordR\x1bpipelineTriggerChartRecords\"\xa4\x01\n\x1c\x43reditConsumptionChartRecord\x12!\n\x0c\x63redit_owner\x18\x01 \x01(\tR\x0b\x63reditOwner\x12\x43\n\x0ctime_buckets\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\x0btimeBuckets\x12\x1c\n\x06\x61mount\x18\x03 \x03(\x02\x42\x04\xe2\x41\x01\x03R\x06\x61mount\"\xa2\x02\n(ListCreditConsumptionChartRecordsRequest\x12\x1a\n\x05owner\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x05owner\x12\x38\n\x12\x61ggregation_window\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x00R\x11\x61ggregationWindow\x88\x01\x01\x12;\n\x05start\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x01H\x01R\x05start\x88\x01\x01\x12\x39\n\x04stop\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x01H\x02R\x04stop\x88\x01\x01\x42\x15\n\x13_aggregation_windowB\x08\n\x06_startB\x07\n\x05_stop\"\xc7\x01\n)ListCreditConsumptionChartRecordsResponse\x12w\n credit_consumption_chart_records\x18\x01 \x03(\x0b\x32..core.mgmt.v1beta.CreditConsumptionChartRecordR\x1d\x63reditConsumptionChartRecords\x12!\n\x0ctotal_amount\x18\x02 \x01(\x02R\x0btotalAmount*;\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\r\n\tMODE_SYNC\x10\x01\x12\x0e\n\nMODE_ASYNC\x10\x02*J\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x14\n\x10STATUS_COMPLETED\x10\x01\x12\x12\n\x0eSTATUS_ERRORED\x10\x02\x42\xc4\x01\n\x14\x63om.core.mgmt.v1betaB\x0bMetricProtoP\x01Z=github.com/instill-ai/protogen-go/core/mgmt/v1beta;mgmtv1beta\xa2\x02\x03\x43MX\xaa\x02\x10\x43ore.Mgmt.V1beta\xca\x02\x10\x43ore\\Mgmt\\V1beta\xe2\x02\x1c\x43ore\\Mgmt\\V1beta\\GPBMetadata\xea\x02\x12\x43ore::Mgmt::V1betab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -66,10 +66,22 @@ _LISTPIPELINETRIGGERTABLERECORDSREQUEST.fields_by_name['filter']._serialized_options = b'\342A\001\001' _LISTPIPELINETRIGGERCHARTRECORDSREQUEST.fields_by_name['filter']._options = None _LISTPIPELINETRIGGERCHARTRECORDSREQUEST.fields_by_name['filter']._serialized_options = b'\342A\001\001' - _globals['_MODE']._serialized_start=2559 - _globals['_MODE']._serialized_end=2618 - _globals['_STATUS']._serialized_start=2620 - _globals['_STATUS']._serialized_end=2694 + _CREDITCONSUMPTIONCHARTRECORD.fields_by_name['time_buckets']._options = None + _CREDITCONSUMPTIONCHARTRECORD.fields_by_name['time_buckets']._serialized_options = b'\342A\001\003' + _CREDITCONSUMPTIONCHARTRECORD.fields_by_name['amount']._options = None + _CREDITCONSUMPTIONCHARTRECORD.fields_by_name['amount']._serialized_options = b'\342A\001\003' + _LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST.fields_by_name['owner']._options = None + _LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST.fields_by_name['owner']._serialized_options = b'\342A\001\002' + _LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST.fields_by_name['aggregation_window']._options = None + _LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST.fields_by_name['aggregation_window']._serialized_options = b'\342A\001\001' + _LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST.fields_by_name['start']._options = None + _LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST.fields_by_name['start']._serialized_options = b'\342A\001\001' + _LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST.fields_by_name['stop']._options = None + _LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST.fields_by_name['stop']._serialized_options = b'\342A\001\001' + _globals['_MODE']._serialized_start=3221 + _globals['_MODE']._serialized_end=3280 + _globals['_STATUS']._serialized_start=3282 + _globals['_STATUS']._serialized_end=3356 _globals['_PIPELINETRIGGERRECORD']._serialized_start=118 _globals['_PIPELINETRIGGERRECORD']._serialized_end=603 _globals['_PIPELINETRIGGERTABLERECORD']._serialized_start=606 @@ -88,4 +100,10 @@ _globals['_LISTPIPELINETRIGGERCHARTRECORDSREQUEST']._serialized_end=2398 _globals['_LISTPIPELINETRIGGERCHARTRECORDSRESPONSE']._serialized_start=2401 _globals['_LISTPIPELINETRIGGERCHARTRECORDSRESPONSE']._serialized_end=2557 + _globals['_CREDITCONSUMPTIONCHARTRECORD']._serialized_start=2560 + _globals['_CREDITCONSUMPTIONCHARTRECORD']._serialized_end=2724 + _globals['_LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST']._serialized_start=2727 + _globals['_LISTCREDITCONSUMPTIONCHARTRECORDSREQUEST']._serialized_end=3017 + _globals['_LISTCREDITCONSUMPTIONCHARTRECORDSRESPONSE']._serialized_start=3020 + _globals['_LISTCREDITCONSUMPTIONCHARTRECORDSRESPONSE']._serialized_end=3219 # @@protoc_insertion_point(module_scope) diff --git a/core/mgmt/v1beta/metric_pb2.pyi b/core/mgmt/v1beta/metric_pb2.pyi index 0a119e1..a4728fe 100644 --- a/core/mgmt/v1beta/metric_pb2.pyi +++ b/core/mgmt/v1beta/metric_pb2.pyi @@ -402,3 +402,105 @@ class ListPipelineTriggerChartRecordsResponse(google.protobuf.message.Message): def ClearField(self, field_name: typing_extensions.Literal["pipeline_trigger_chart_records", b"pipeline_trigger_chart_records"]) -> None: ... global___ListPipelineTriggerChartRecordsResponse = ListPipelineTriggerChartRecordsResponse + +@typing_extensions.final +class CreditConsumptionChartRecord(google.protobuf.message.Message): + """CreditConsumptionChartRecord contains credit consumption metrics, aggregated + by owner and time frame. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREDIT_OWNER_FIELD_NUMBER: builtins.int + TIME_BUCKETS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + credit_owner: builtins.str + """Credit owner ID, e.g. `users/chef-wombat`.""" + @property + def time_buckets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.timestamp_pb2.Timestamp]: + """Time buckets.""" + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: + """Total credit consumed in each time bucket.""" + def __init__( + self, + *, + credit_owner: builtins.str = ..., + time_buckets: collections.abc.Iterable[google.protobuf.timestamp_pb2.Timestamp] | None = ..., + amount: collections.abc.Iterable[builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "credit_owner", b"credit_owner", "time_buckets", b"time_buckets"]) -> None: ... + +global___CreditConsumptionChartRecord = CreditConsumptionChartRecord + +@typing_extensions.final +class ListCreditConsumptionChartRecordsRequest(google.protobuf.message.Message): + """ListCreditConsumptionChartRecordsRequest represents a request to list pipeline + trigger metrics, aggregated by pipeline ID and time frame. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OWNER_FIELD_NUMBER: builtins.int + AGGREGATION_WINDOW_FIELD_NUMBER: builtins.int + START_FIELD_NUMBER: builtins.int + STOP_FIELD_NUMBER: builtins.int + owner: builtins.str + """The user or organization to which the credit belongs. + Format: `{[users|organizations]}/{id}`. + """ + aggregation_window: builtins.str + """Aggregation window. The value is a positive duration string, i.e. a + sequence of decimal numbers, each with optional fraction and a unit + suffix, such as "300ms", "1.5h" or "2h45m". + The minimum (and default) window is 1h. + """ + @property + def start(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Beginning of the time range from which the records will be fetched.""" + @property + def stop(self) -> google.protobuf.timestamp_pb2.Timestamp: + """End of the time range from which the records will be fetched.""" + def __init__( + self, + *, + owner: builtins.str = ..., + aggregation_window: builtins.str | None = ..., + start: google.protobuf.timestamp_pb2.Timestamp | None = ..., + stop: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["_aggregation_window", b"_aggregation_window", "_start", b"_start", "_stop", b"_stop", "aggregation_window", b"aggregation_window", "start", b"start", "stop", b"stop"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["_aggregation_window", b"_aggregation_window", "_start", b"_start", "_stop", b"_stop", "aggregation_window", b"aggregation_window", "owner", b"owner", "start", b"start", "stop", b"stop"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["_aggregation_window", b"_aggregation_window"]) -> typing_extensions.Literal["aggregation_window"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["_start", b"_start"]) -> typing_extensions.Literal["start"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["_stop", b"_stop"]) -> typing_extensions.Literal["stop"] | None: ... + +global___ListCreditConsumptionChartRecordsRequest = ListCreditConsumptionChartRecordsRequest + +@typing_extensions.final +class ListCreditConsumptionChartRecordsResponse(google.protobuf.message.Message): + """ListCreditConsumptionChartRecordsResponse contains a list of pipeline trigger + chart records. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREDIT_CONSUMPTION_CHART_RECORDS_FIELD_NUMBER: builtins.int + TOTAL_AMOUNT_FIELD_NUMBER: builtins.int + @property + def credit_consumption_chart_records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CreditConsumptionChartRecord]: + """A list of pipeline trigger records.""" + total_amount: builtins.float + """Sum of the total credit consumed within the time range.""" + def __init__( + self, + *, + credit_consumption_chart_records: collections.abc.Iterable[global___CreditConsumptionChartRecord] | None = ..., + total_amount: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["credit_consumption_chart_records", b"credit_consumption_chart_records", "total_amount", b"total_amount"]) -> None: ... + +global___ListCreditConsumptionChartRecordsResponse = ListCreditConsumptionChartRecordsResponse diff --git a/core/mgmt/v1beta/mgmt_public_service_pb2.py b/core/mgmt/v1beta/mgmt_public_service_pb2.py index 04ee403..6d87c22 100644 --- a/core/mgmt/v1beta/mgmt_public_service_pb2.py +++ b/core/mgmt/v1beta/mgmt_public_service_pb2.py @@ -19,7 +19,7 @@ from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*core/mgmt/v1beta/mgmt_public_service.proto\x12\x10\x63ore.mgmt.v1beta\x1a\x1d\x63ore/mgmt/v1beta/metric.proto\x1a\x1b\x63ore/mgmt/v1beta/mgmt.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1bgoogle/api/visibility.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\x87\x32\n\x11MgmtPublicService\x12\x94\x01\n\x08Liveness\x12!.core.mgmt.v1beta.LivenessRequest\x1a\".core.mgmt.v1beta.LivenessResponse\"A\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02+\x12\x12/v1beta/__livenessZ\x15\x12\x13/v1beta/health/mgmt\x12\x97\x01\n\tReadiness\x12\".core.mgmt.v1beta.ReadinessRequest\x1a#.core.mgmt.v1beta.ReadinessResponse\"A\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02+\x12\x13/v1beta/__readinessZ\x14\x12\x12/v1beta/ready/mgmt\x12\xa7\x01\n\x14GetAuthenticatedUser\x12-.core.mgmt.v1beta.GetAuthenticatedUserRequest\x1a..core.mgmt.v1beta.GetAuthenticatedUserResponse\"0\x92\x41\x06\n\x04User\xda\x41\x10user,update_mask\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1beta/user\x12\xb3\x01\n\x16PatchAuthenticatedUser\x12/.core.mgmt.v1beta.PatchAuthenticatedUserRequest\x1a\x30.core.mgmt.v1beta.PatchAuthenticatedUserResponse\"6\x92\x41\x06\n\x04User\xda\x41\x10user,update_mask\x82\xd3\xe4\x93\x02\x14\x32\x0c/v1beta/user:\x04user\x12t\n\tListUsers\x12\".core.mgmt.v1beta.ListUsersRequest\x1a#.core.mgmt.v1beta.ListUsersResponse\"\x1e\x92\x41\x06\n\x04User\x82\xd3\xe4\x93\x02\x0f\x12\r/v1beta/users\x12~\n\x07GetUser\x12 .core.mgmt.v1beta.GetUserRequest\x1a!.core.mgmt.v1beta.GetUserResponse\".\x92\x41\x06\n\x04User\xda\x41\x04name\x82\xd3\xe4\x93\x02\x18\x12\x16/v1beta/{name=users/*}\x12\xbc\x01\n\x12\x43reateOrganization\x12+.core.mgmt.v1beta.CreateOrganizationRequest\x1a,.core.mgmt.v1beta.CreateOrganizationResponse\"K\x92\x41\x0e\n\x0cOrganization\xda\x41\x0corganization\x82\xd3\xe4\x93\x02%\"\x15/v1beta/organizations:\x0corganization\x12\x9c\x01\n\x11ListOrganizations\x12*.core.mgmt.v1beta.ListOrganizationsRequest\x1a+.core.mgmt.v1beta.ListOrganizationsResponse\".\x92\x41\x0e\n\x0cOrganization\x82\xd3\xe4\x93\x02\x17\x12\x15/v1beta/organizations\x12\xa6\x01\n\x0fGetOrganization\x12(.core.mgmt.v1beta.GetOrganizationRequest\x1a).core.mgmt.v1beta.GetOrganizationResponse\">\x92\x41\x0e\n\x0cOrganization\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1beta/{name=organizations/*}\x12\xde\x01\n\x12UpdateOrganization\x12+.core.mgmt.v1beta.UpdateOrganizationRequest\x1a,.core.mgmt.v1beta.UpdateOrganizationResponse\"m\x92\x41\x0e\n\x0cOrganization\xda\x41\x18organization,update_mask\x82\xd3\xe4\x93\x02;2+/v1beta/{organization.name=organizations/*}:\x0corganization\x12\xaf\x01\n\x12\x44\x65leteOrganization\x12+.core.mgmt.v1beta.DeleteOrganizationRequest\x1a,.core.mgmt.v1beta.DeleteOrganizationResponse\">\x92\x41\x0e\n\x0cOrganization\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1beta/{name=organizations/*}\x12\xb8\x01\n\x13ListUserMemberships\x12,.core.mgmt.v1beta.ListUserMembershipsRequest\x1a-.core.mgmt.v1beta.ListUserMembershipsResponse\"D\x92\x41\x0c\n\nMembership\xda\x41\x06parent\x82\xd3\xe4\x93\x02&\x12$/v1beta/{parent=users/*}/memberships\x12\xb0\x01\n\x11GetUserMembership\x12*.core.mgmt.v1beta.GetUserMembershipRequest\x1a+.core.mgmt.v1beta.GetUserMembershipResponse\"B\x92\x41\x0c\n\nMembership\xda\x41\x04name\x82\xd3\xe4\x93\x02&\x12$/v1beta/{name=users/*/memberships/*}\x12\xe2\x01\n\x14UpdateUserMembership\x12-.core.mgmt.v1beta.UpdateUserMembershipRequest\x1a..core.mgmt.v1beta.UpdateUserMembershipResponse\"k\x92\x41\x0c\n\nMembership\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02=\x1a//v1beta/{membership.name=users/*/memberships/*}:\nmembership\x12\xb9\x01\n\x14\x44\x65leteUserMembership\x12-.core.mgmt.v1beta.DeleteUserMembershipRequest\x1a..core.mgmt.v1beta.DeleteUserMembershipResponse\"B\x92\x41\x0c\n\nMembership\xda\x41\x04name\x82\xd3\xe4\x93\x02&*$/v1beta/{name=users/*/memberships/*}\x12\xd8\x01\n\x1bListOrganizationMemberships\x12\x34.core.mgmt.v1beta.ListOrganizationMembershipsRequest\x1a\x35.core.mgmt.v1beta.ListOrganizationMembershipsResponse\"L\x92\x41\x0c\n\nMembership\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1beta/{parent=organizations/*}/memberships\x12\xd0\x01\n\x19GetOrganizationMembership\x12\x32.core.mgmt.v1beta.GetOrganizationMembershipRequest\x1a\x33.core.mgmt.v1beta.GetOrganizationMembershipResponse\"J\x92\x41\x0c\n\nMembership\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1beta/{name=organizations/*/memberships/*}\x12\x82\x02\n\x1cUpdateOrganizationMembership\x12\x35.core.mgmt.v1beta.UpdateOrganizationMembershipRequest\x1a\x36.core.mgmt.v1beta.UpdateOrganizationMembershipResponse\"s\x92\x41\x0c\n\nMembership\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x45\x1a\x37/v1beta/{membership.name=organizations/*/memberships/*}:\nmembership\x12\xd9\x01\n\x1c\x44\x65leteOrganizationMembership\x12\x35.core.mgmt.v1beta.DeleteOrganizationMembershipRequest\x1a\x36.core.mgmt.v1beta.DeleteOrganizationMembershipResponse\"J\x92\x41\x0c\n\nMembership\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1beta/{name=organizations/*/memberships/*}\x12\xcd\x01\n GetAuthenticatedUserSubscription\x12\x39.core.mgmt.v1beta.GetAuthenticatedUserSubscriptionRequest\x1a:.core.mgmt.v1beta.GetAuthenticatedUserSubscriptionResponse\"2\x92\x41\x0e\n\x0cSubscription\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1beta/user/subscription\x12\xdb\x01\n\x1bGetOrganizationSubscription\x12\x34.core.mgmt.v1beta.GetOrganizationSubscriptionRequest\x1a\x35.core.mgmt.v1beta.GetOrganizationSubscriptionResponse\"O\x92\x41\x0e\n\x0cSubscription\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1beta/{parent=organizations/*}/subscription\x12\x8b\x01\n\x0b\x43reateToken\x12$.core.mgmt.v1beta.CreateTokenRequest\x1a%.core.mgmt.v1beta.CreateTokenResponse\"/\x92\x41\x07\n\x05Token\xda\x41\x05token\x82\xd3\xe4\x93\x02\x17\"\x0e/v1beta/tokens:\x05token\x12y\n\nListTokens\x12#.core.mgmt.v1beta.ListTokensRequest\x1a$.core.mgmt.v1beta.ListTokensResponse\" \x92\x41\x07\n\x05Token\x82\xd3\xe4\x93\x02\x10\x12\x0e/v1beta/tokens\x12\x83\x01\n\x08GetToken\x12!.core.mgmt.v1beta.GetTokenRequest\x1a\".core.mgmt.v1beta.GetTokenResponse\"0\x92\x41\x07\n\x05Token\xda\x41\x04name\x82\xd3\xe4\x93\x02\x19\x12\x17/v1beta/{name=tokens/*}\x12\x8c\x01\n\x0b\x44\x65leteToken\x12$.core.mgmt.v1beta.DeleteTokenRequest\x1a%.core.mgmt.v1beta.DeleteTokenResponse\"0\x92\x41\x07\n\x05Token\xda\x41\x04name\x82\xd3\xe4\x93\x02\x19*\x17/v1beta/{name=tokens/*}\x12\x8a\x01\n\rValidateToken\x12&.core.mgmt.v1beta.ValidateTokenRequest\x1a\'.core.mgmt.v1beta.ValidateTokenResponse\"(\x92\x41\x07\n\x05Token\x82\xd3\xe4\x93\x02\x18\"\x16/v1beta/validate_token\x12\xa6\x01\n\x12GetRemainingCredit\x12+.core.mgmt.v1beta.GetRemainingCreditRequest\x1a,.core.mgmt.v1beta.GetRemainingCreditResponse\"5\x92\x41\x08\n\x06\x43redit\xda\x41\x05owner\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1beta/{owner=*/*}/credit\x12\x9d\x01\n\x0e\x43heckNamespace\x12\'.core.mgmt.v1beta.CheckNamespaceRequest\x1a(.core.mgmt.v1beta.CheckNamespaceResponse\"8\x92\x41\x07\n\x05Utils\xda\x41\tnamespace\x82\xd3\xe4\x93\x02\x1c\"\x17/v1beta/check-namespace:\x01*\x12\xc1\x01\n\x1aListPipelineTriggerRecords\x12\x33.core.mgmt.v1beta.ListPipelineTriggerRecordsRequest\x1a\x34.core.mgmt.v1beta.ListPipelineTriggerRecordsResponse\"8\x92\x41\x08\n\x06Metric\x82\xd3\xe4\x93\x02\'\x12%/v1beta/metrics/vdp/pipeline/triggers\x12\xce\x01\n\x1fListPipelineTriggerTableRecords\x12\x38.core.mgmt.v1beta.ListPipelineTriggerTableRecordsRequest\x1a\x39.core.mgmt.v1beta.ListPipelineTriggerTableRecordsResponse\"6\x92\x41\x08\n\x06Metric\x82\xd3\xe4\x93\x02%\x12#/v1beta/metrics/vdp/pipeline/tables\x12\xce\x01\n\x1fListPipelineTriggerChartRecords\x12\x38.core.mgmt.v1beta.ListPipelineTriggerChartRecordsRequest\x1a\x39.core.mgmt.v1beta.ListPipelineTriggerChartRecordsResponse\"6\x92\x41\x08\n\x06Metric\x82\xd3\xe4\x93\x02%\x12#/v1beta/metrics/vdp/pipeline/charts\x12\x9c\x01\n\x0f\x41uthTokenIssuer\x12(.core.mgmt.v1beta.AuthTokenIssuerRequest\x1a).core.mgmt.v1beta.AuthTokenIssuerResponse\"4\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x1e\"\x19/v1beta/auth/token_issuer:\x01*\x12\x80\x01\n\tAuthLogin\x12\".core.mgmt.v1beta.AuthLoginRequest\x1a#.core.mgmt.v1beta.AuthLoginResponse\"*\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x14\"\x12/v1beta/auth/login\x12\x84\x01\n\nAuthLogout\x12#.core.mgmt.v1beta.AuthLogoutRequest\x1a$.core.mgmt.v1beta.AuthLogoutResponse\"+\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x15\"\x13/v1beta/auth/logout\x12\xa8\x01\n\x12\x41uthChangePassword\x12+.core.mgmt.v1beta.AuthChangePasswordRequest\x1a,.core.mgmt.v1beta.AuthChangePasswordResponse\"7\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02!\"\x1c/v1beta/auth/change_password:\x01*\x12\xba\x01\n\x17\x41uthValidateAccessToken\x12\x30.core.mgmt.v1beta.AuthValidateAccessTokenRequest\x1a\x31.core.mgmt.v1beta.AuthValidateAccessTokenResponse\":\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02$\"\"/v1beta/auth/validate_access_token\x1a\x1a\x92\x41\x17\x12\x15Public Core endpointsB\xcf\x01\n\x14\x63om.core.mgmt.v1betaB\x16MgmtPublicServiceProtoP\x01Z=github.com/instill-ai/protogen-go/core/mgmt/v1beta;mgmtv1beta\xa2\x02\x03\x43MX\xaa\x02\x10\x43ore.Mgmt.V1beta\xca\x02\x10\x43ore\\Mgmt\\V1beta\xe2\x02\x1c\x43ore\\Mgmt\\V1beta\\GPBMetadata\xea\x02\x12\x43ore::Mgmt::V1betab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*core/mgmt/v1beta/mgmt_public_service.proto\x12\x10\x63ore.mgmt.v1beta\x1a\x1d\x63ore/mgmt/v1beta/metric.proto\x1a\x1b\x63ore/mgmt/v1beta/mgmt.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1bgoogle/api/visibility.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\xfa\x33\n\x11MgmtPublicService\x12\x94\x01\n\x08Liveness\x12!.core.mgmt.v1beta.LivenessRequest\x1a\".core.mgmt.v1beta.LivenessResponse\"A\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02+\x12\x12/v1beta/__livenessZ\x15\x12\x13/v1beta/health/mgmt\x12\x97\x01\n\tReadiness\x12\".core.mgmt.v1beta.ReadinessRequest\x1a#.core.mgmt.v1beta.ReadinessResponse\"A\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02+\x12\x13/v1beta/__readinessZ\x14\x12\x12/v1beta/ready/mgmt\x12\xa7\x01\n\x14GetAuthenticatedUser\x12-.core.mgmt.v1beta.GetAuthenticatedUserRequest\x1a..core.mgmt.v1beta.GetAuthenticatedUserResponse\"0\x92\x41\x06\n\x04User\xda\x41\x10user,update_mask\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1beta/user\x12\xb3\x01\n\x16PatchAuthenticatedUser\x12/.core.mgmt.v1beta.PatchAuthenticatedUserRequest\x1a\x30.core.mgmt.v1beta.PatchAuthenticatedUserResponse\"6\x92\x41\x06\n\x04User\xda\x41\x10user,update_mask\x82\xd3\xe4\x93\x02\x14\x32\x0c/v1beta/user:\x04user\x12t\n\tListUsers\x12\".core.mgmt.v1beta.ListUsersRequest\x1a#.core.mgmt.v1beta.ListUsersResponse\"\x1e\x92\x41\x06\n\x04User\x82\xd3\xe4\x93\x02\x0f\x12\r/v1beta/users\x12~\n\x07GetUser\x12 .core.mgmt.v1beta.GetUserRequest\x1a!.core.mgmt.v1beta.GetUserResponse\".\x92\x41\x06\n\x04User\xda\x41\x04name\x82\xd3\xe4\x93\x02\x18\x12\x16/v1beta/{name=users/*}\x12\xbc\x01\n\x12\x43reateOrganization\x12+.core.mgmt.v1beta.CreateOrganizationRequest\x1a,.core.mgmt.v1beta.CreateOrganizationResponse\"K\x92\x41\x0e\n\x0cOrganization\xda\x41\x0corganization\x82\xd3\xe4\x93\x02%\"\x15/v1beta/organizations:\x0corganization\x12\x9c\x01\n\x11ListOrganizations\x12*.core.mgmt.v1beta.ListOrganizationsRequest\x1a+.core.mgmt.v1beta.ListOrganizationsResponse\".\x92\x41\x0e\n\x0cOrganization\x82\xd3\xe4\x93\x02\x17\x12\x15/v1beta/organizations\x12\xa6\x01\n\x0fGetOrganization\x12(.core.mgmt.v1beta.GetOrganizationRequest\x1a).core.mgmt.v1beta.GetOrganizationResponse\">\x92\x41\x0e\n\x0cOrganization\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1beta/{name=organizations/*}\x12\xde\x01\n\x12UpdateOrganization\x12+.core.mgmt.v1beta.UpdateOrganizationRequest\x1a,.core.mgmt.v1beta.UpdateOrganizationResponse\"m\x92\x41\x0e\n\x0cOrganization\xda\x41\x18organization,update_mask\x82\xd3\xe4\x93\x02;2+/v1beta/{organization.name=organizations/*}:\x0corganization\x12\xaf\x01\n\x12\x44\x65leteOrganization\x12+.core.mgmt.v1beta.DeleteOrganizationRequest\x1a,.core.mgmt.v1beta.DeleteOrganizationResponse\">\x92\x41\x0e\n\x0cOrganization\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1beta/{name=organizations/*}\x12\xb8\x01\n\x13ListUserMemberships\x12,.core.mgmt.v1beta.ListUserMembershipsRequest\x1a-.core.mgmt.v1beta.ListUserMembershipsResponse\"D\x92\x41\x0c\n\nMembership\xda\x41\x06parent\x82\xd3\xe4\x93\x02&\x12$/v1beta/{parent=users/*}/memberships\x12\xb0\x01\n\x11GetUserMembership\x12*.core.mgmt.v1beta.GetUserMembershipRequest\x1a+.core.mgmt.v1beta.GetUserMembershipResponse\"B\x92\x41\x0c\n\nMembership\xda\x41\x04name\x82\xd3\xe4\x93\x02&\x12$/v1beta/{name=users/*/memberships/*}\x12\xe2\x01\n\x14UpdateUserMembership\x12-.core.mgmt.v1beta.UpdateUserMembershipRequest\x1a..core.mgmt.v1beta.UpdateUserMembershipResponse\"k\x92\x41\x0c\n\nMembership\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02=\x1a//v1beta/{membership.name=users/*/memberships/*}:\nmembership\x12\xb9\x01\n\x14\x44\x65leteUserMembership\x12-.core.mgmt.v1beta.DeleteUserMembershipRequest\x1a..core.mgmt.v1beta.DeleteUserMembershipResponse\"B\x92\x41\x0c\n\nMembership\xda\x41\x04name\x82\xd3\xe4\x93\x02&*$/v1beta/{name=users/*/memberships/*}\x12\xd8\x01\n\x1bListOrganizationMemberships\x12\x34.core.mgmt.v1beta.ListOrganizationMembershipsRequest\x1a\x35.core.mgmt.v1beta.ListOrganizationMembershipsResponse\"L\x92\x41\x0c\n\nMembership\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1beta/{parent=organizations/*}/memberships\x12\xd0\x01\n\x19GetOrganizationMembership\x12\x32.core.mgmt.v1beta.GetOrganizationMembershipRequest\x1a\x33.core.mgmt.v1beta.GetOrganizationMembershipResponse\"J\x92\x41\x0c\n\nMembership\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1beta/{name=organizations/*/memberships/*}\x12\x82\x02\n\x1cUpdateOrganizationMembership\x12\x35.core.mgmt.v1beta.UpdateOrganizationMembershipRequest\x1a\x36.core.mgmt.v1beta.UpdateOrganizationMembershipResponse\"s\x92\x41\x0c\n\nMembership\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x45\x1a\x37/v1beta/{membership.name=organizations/*/memberships/*}:\nmembership\x12\xd9\x01\n\x1c\x44\x65leteOrganizationMembership\x12\x35.core.mgmt.v1beta.DeleteOrganizationMembershipRequest\x1a\x36.core.mgmt.v1beta.DeleteOrganizationMembershipResponse\"J\x92\x41\x0c\n\nMembership\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1beta/{name=organizations/*/memberships/*}\x12\xcd\x01\n GetAuthenticatedUserSubscription\x12\x39.core.mgmt.v1beta.GetAuthenticatedUserSubscriptionRequest\x1a:.core.mgmt.v1beta.GetAuthenticatedUserSubscriptionResponse\"2\x92\x41\x0e\n\x0cSubscription\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1beta/user/subscription\x12\xdb\x01\n\x1bGetOrganizationSubscription\x12\x34.core.mgmt.v1beta.GetOrganizationSubscriptionRequest\x1a\x35.core.mgmt.v1beta.GetOrganizationSubscriptionResponse\"O\x92\x41\x0e\n\x0cSubscription\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1beta/{parent=organizations/*}/subscription\x12\x8b\x01\n\x0b\x43reateToken\x12$.core.mgmt.v1beta.CreateTokenRequest\x1a%.core.mgmt.v1beta.CreateTokenResponse\"/\x92\x41\x07\n\x05Token\xda\x41\x05token\x82\xd3\xe4\x93\x02\x17\"\x0e/v1beta/tokens:\x05token\x12y\n\nListTokens\x12#.core.mgmt.v1beta.ListTokensRequest\x1a$.core.mgmt.v1beta.ListTokensResponse\" \x92\x41\x07\n\x05Token\x82\xd3\xe4\x93\x02\x10\x12\x0e/v1beta/tokens\x12\x83\x01\n\x08GetToken\x12!.core.mgmt.v1beta.GetTokenRequest\x1a\".core.mgmt.v1beta.GetTokenResponse\"0\x92\x41\x07\n\x05Token\xda\x41\x04name\x82\xd3\xe4\x93\x02\x19\x12\x17/v1beta/{name=tokens/*}\x12\x8c\x01\n\x0b\x44\x65leteToken\x12$.core.mgmt.v1beta.DeleteTokenRequest\x1a%.core.mgmt.v1beta.DeleteTokenResponse\"0\x92\x41\x07\n\x05Token\xda\x41\x04name\x82\xd3\xe4\x93\x02\x19*\x17/v1beta/{name=tokens/*}\x12\x8a\x01\n\rValidateToken\x12&.core.mgmt.v1beta.ValidateTokenRequest\x1a\'.core.mgmt.v1beta.ValidateTokenResponse\"(\x92\x41\x07\n\x05Token\x82\xd3\xe4\x93\x02\x18\"\x16/v1beta/validate_token\x12\xa6\x01\n\x12GetRemainingCredit\x12+.core.mgmt.v1beta.GetRemainingCreditRequest\x1a,.core.mgmt.v1beta.GetRemainingCreditResponse\"5\x92\x41\x08\n\x06\x43redit\xda\x41\x05owner\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1beta/{owner=*/*}/credit\x12\x9d\x01\n\x0e\x43heckNamespace\x12\'.core.mgmt.v1beta.CheckNamespaceRequest\x1a(.core.mgmt.v1beta.CheckNamespaceResponse\"8\x92\x41\x07\n\x05Utils\xda\x41\tnamespace\x82\xd3\xe4\x93\x02\x1c\"\x17/v1beta/check-namespace:\x01*\x12\xc1\x01\n\x1aListPipelineTriggerRecords\x12\x33.core.mgmt.v1beta.ListPipelineTriggerRecordsRequest\x1a\x34.core.mgmt.v1beta.ListPipelineTriggerRecordsResponse\"8\x92\x41\x08\n\x06Metric\x82\xd3\xe4\x93\x02\'\x12%/v1beta/metrics/vdp/pipeline/triggers\x12\xce\x01\n\x1fListPipelineTriggerTableRecords\x12\x38.core.mgmt.v1beta.ListPipelineTriggerTableRecordsRequest\x1a\x39.core.mgmt.v1beta.ListPipelineTriggerTableRecordsResponse\"6\x92\x41\x08\n\x06Metric\x82\xd3\xe4\x93\x02%\x12#/v1beta/metrics/vdp/pipeline/tables\x12\xce\x01\n\x1fListPipelineTriggerChartRecords\x12\x38.core.mgmt.v1beta.ListPipelineTriggerChartRecordsRequest\x1a\x39.core.mgmt.v1beta.ListPipelineTriggerChartRecordsResponse\"6\x92\x41\x08\n\x06Metric\x82\xd3\xe4\x93\x02%\x12#/v1beta/metrics/vdp/pipeline/charts\x12\xf0\x01\n!ListCreditConsumptionChartRecords\x12:.core.mgmt.v1beta.ListCreditConsumptionChartRecordsRequest\x1a;.core.mgmt.v1beta.ListCreditConsumptionChartRecordsResponse\"R\x92\x41\x08\n\x06Metric\xda\x41\x1fowner,aggregation_window,filter\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1beta/metrics/credit/charts\x12\x9c\x01\n\x0f\x41uthTokenIssuer\x12(.core.mgmt.v1beta.AuthTokenIssuerRequest\x1a).core.mgmt.v1beta.AuthTokenIssuerResponse\"4\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x1e\"\x19/v1beta/auth/token_issuer:\x01*\x12\x80\x01\n\tAuthLogin\x12\".core.mgmt.v1beta.AuthLoginRequest\x1a#.core.mgmt.v1beta.AuthLoginResponse\"*\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x14\"\x12/v1beta/auth/login\x12\x84\x01\n\nAuthLogout\x12#.core.mgmt.v1beta.AuthLogoutRequest\x1a$.core.mgmt.v1beta.AuthLogoutResponse\"+\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x15\"\x13/v1beta/auth/logout\x12\xa8\x01\n\x12\x41uthChangePassword\x12+.core.mgmt.v1beta.AuthChangePasswordRequest\x1a,.core.mgmt.v1beta.AuthChangePasswordResponse\"7\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02!\"\x1c/v1beta/auth/change_password:\x01*\x12\xba\x01\n\x17\x41uthValidateAccessToken\x12\x30.core.mgmt.v1beta.AuthValidateAccessTokenRequest\x1a\x31.core.mgmt.v1beta.AuthValidateAccessTokenResponse\":\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02$\"\"/v1beta/auth/validate_access_token\x1a\x1a\x92\x41\x17\x12\x15Public Core endpointsB\xcf\x01\n\x14\x63om.core.mgmt.v1betaB\x16MgmtPublicServiceProtoP\x01Z=github.com/instill-ai/protogen-go/core/mgmt/v1beta;mgmtv1beta\xa2\x02\x03\x43MX\xaa\x02\x10\x43ore.Mgmt.V1beta\xca\x02\x10\x43ore\\Mgmt\\V1beta\xe2\x02\x1c\x43ore\\Mgmt\\V1beta\\GPBMetadata\xea\x02\x12\x43ore::Mgmt::V1betab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -92,6 +92,8 @@ _MGMTPUBLICSERVICE.methods_by_name['ListPipelineTriggerTableRecords']._serialized_options = b'\222A\010\n\006Metric\202\323\344\223\002%\022#/v1beta/metrics/vdp/pipeline/tables' _MGMTPUBLICSERVICE.methods_by_name['ListPipelineTriggerChartRecords']._options = None _MGMTPUBLICSERVICE.methods_by_name['ListPipelineTriggerChartRecords']._serialized_options = b'\222A\010\n\006Metric\202\323\344\223\002%\022#/v1beta/metrics/vdp/pipeline/charts' + _MGMTPUBLICSERVICE.methods_by_name['ListCreditConsumptionChartRecords']._options = None + _MGMTPUBLICSERVICE.methods_by_name['ListCreditConsumptionChartRecords']._serialized_options = b'\222A\010\n\006Metric\332A\037owner,aggregation_window,filter\202\323\344\223\002\037\022\035/v1beta/metrics/credit/charts' _MGMTPUBLICSERVICE.methods_by_name['AuthTokenIssuer']._options = None _MGMTPUBLICSERVICE.methods_by_name['AuthTokenIssuer']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\002\036\"\031/v1beta/auth/token_issuer:\001*' _MGMTPUBLICSERVICE.methods_by_name['AuthLogin']._options = None @@ -103,5 +105,5 @@ _MGMTPUBLICSERVICE.methods_by_name['AuthValidateAccessToken']._options = None _MGMTPUBLICSERVICE.methods_by_name['AuthValidateAccessToken']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\002$\"\"/v1beta/auth/validate_access_token' _globals['_MGMTPUBLICSERVICE']._serialized_start=257 - _globals['_MGMTPUBLICSERVICE']._serialized_end=6664 + _globals['_MGMTPUBLICSERVICE']._serialized_end=6907 # @@protoc_insertion_point(module_scope) diff --git a/core/mgmt/v1beta/mgmt_public_service_pb2_grpc.py b/core/mgmt/v1beta/mgmt_public_service_pb2_grpc.py index f9222db..696130a 100644 --- a/core/mgmt/v1beta/mgmt_public_service_pb2_grpc.py +++ b/core/mgmt/v1beta/mgmt_public_service_pb2_grpc.py @@ -174,6 +174,11 @@ def __init__(self, channel): request_serializer=core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListPipelineTriggerChartRecordsRequest.SerializeToString, response_deserializer=core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListPipelineTriggerChartRecordsResponse.FromString, ) + self.ListCreditConsumptionChartRecords = channel.unary_unary( + '/core.mgmt.v1beta.MgmtPublicService/ListCreditConsumptionChartRecords', + request_serializer=core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListCreditConsumptionChartRecordsRequest.SerializeToString, + response_deserializer=core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListCreditConsumptionChartRecordsResponse.FromString, + ) self.AuthTokenIssuer = channel.unary_unary( '/core.mgmt.v1beta.MgmtPublicService/AuthTokenIssuer', request_serializer=core_dot_mgmt_dot_v1beta_dot_mgmt__pb2.AuthTokenIssuerRequest.SerializeToString, @@ -502,6 +507,17 @@ def ListPipelineTriggerChartRecords(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def ListCreditConsumptionChartRecords(self, request, context): + """List Instill Credit consumption time charts + + Returns a timeline of Instill Credit consumption for a given owner. The + timeline consists of a list of time frames that contain the aggregated + credit consumption. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def AuthTokenIssuer(self, request, context): """Auth endpoints are only used in the community edition and the OpenAPI documentation references Instill Cloud. Therefore, these endpoints are @@ -709,6 +725,11 @@ def add_MgmtPublicServiceServicer_to_server(servicer, server): request_deserializer=core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListPipelineTriggerChartRecordsRequest.FromString, response_serializer=core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListPipelineTriggerChartRecordsResponse.SerializeToString, ), + 'ListCreditConsumptionChartRecords': grpc.unary_unary_rpc_method_handler( + servicer.ListCreditConsumptionChartRecords, + request_deserializer=core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListCreditConsumptionChartRecordsRequest.FromString, + response_serializer=core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListCreditConsumptionChartRecordsResponse.SerializeToString, + ), 'AuthTokenIssuer': grpc.unary_unary_rpc_method_handler( servicer.AuthTokenIssuer, request_deserializer=core_dot_mgmt_dot_v1beta_dot_mgmt__pb2.AuthTokenIssuerRequest.FromString, @@ -1275,6 +1296,23 @@ def ListPipelineTriggerChartRecords(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def ListCreditConsumptionChartRecords(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/core.mgmt.v1beta.MgmtPublicService/ListCreditConsumptionChartRecords', + core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListCreditConsumptionChartRecordsRequest.SerializeToString, + core_dot_mgmt_dot_v1beta_dot_metric__pb2.ListCreditConsumptionChartRecordsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def AuthTokenIssuer(request, target, diff --git a/core/mgmt/v1beta/mgmt_public_service_pb2_grpc.pyi b/core/mgmt/v1beta/mgmt_public_service_pb2_grpc.pyi index cb93bf0..cf0291c 100644 --- a/core/mgmt/v1beta/mgmt_public_service_pb2_grpc.pyi +++ b/core/mgmt/v1beta/mgmt_public_service_pb2_grpc.pyi @@ -289,6 +289,16 @@ class MgmtPublicServiceStub: Returns a paginated list with pipeline trigger execution times, aggregated by pipeline and time frames. """ + ListCreditConsumptionChartRecords: grpc.UnaryUnaryMultiCallable[ + core.mgmt.v1beta.metric_pb2.ListCreditConsumptionChartRecordsRequest, + core.mgmt.v1beta.metric_pb2.ListCreditConsumptionChartRecordsResponse, + ] + """List Instill Credit consumption time charts + + Returns a timeline of Instill Credit consumption for a given owner. The + timeline consists of a list of time frames that contain the aggregated + credit consumption. + """ AuthTokenIssuer: grpc.UnaryUnaryMultiCallable[ core.mgmt.v1beta.mgmt_pb2.AuthTokenIssuerRequest, core.mgmt.v1beta.mgmt_pb2.AuthTokenIssuerResponse, @@ -604,6 +614,16 @@ class MgmtPublicServiceAsyncStub: Returns a paginated list with pipeline trigger execution times, aggregated by pipeline and time frames. """ + ListCreditConsumptionChartRecords: grpc.aio.UnaryUnaryMultiCallable[ + core.mgmt.v1beta.metric_pb2.ListCreditConsumptionChartRecordsRequest, + core.mgmt.v1beta.metric_pb2.ListCreditConsumptionChartRecordsResponse, + ] + """List Instill Credit consumption time charts + + Returns a timeline of Instill Credit consumption for a given owner. The + timeline consists of a list of time frames that contain the aggregated + credit consumption. + """ AuthTokenIssuer: grpc.aio.UnaryUnaryMultiCallable[ core.mgmt.v1beta.mgmt_pb2.AuthTokenIssuerRequest, core.mgmt.v1beta.mgmt_pb2.AuthTokenIssuerResponse, @@ -982,6 +1002,18 @@ class MgmtPublicServiceServicer(metaclass=abc.ABCMeta): by pipeline and time frames. """ @abc.abstractmethod + def ListCreditConsumptionChartRecords( + self, + request: core.mgmt.v1beta.metric_pb2.ListCreditConsumptionChartRecordsRequest, + context: _ServicerContext, + ) -> typing.Union[core.mgmt.v1beta.metric_pb2.ListCreditConsumptionChartRecordsResponse, collections.abc.Awaitable[core.mgmt.v1beta.metric_pb2.ListCreditConsumptionChartRecordsResponse]]: + """List Instill Credit consumption time charts + + Returns a timeline of Instill Credit consumption for a given owner. The + timeline consists of a list of time frames that contain the aggregated + credit consumption. + """ + @abc.abstractmethod def AuthTokenIssuer( self, request: core.mgmt.v1beta.mgmt_pb2.AuthTokenIssuerRequest,