Package servicemanagement
Overview ▹
Index ▹
Variables
var ConfigFile_FileType_name = map[int32]string{ 0: "FILE_TYPE_UNSPECIFIED", 1: "SERVICE_CONFIG_YAML", 2: "OPEN_API_JSON", 3: "OPEN_API_YAML", 4: "FILE_DESCRIPTOR_SET_PROTO", }
var ConfigFile_FileType_value = map[string]int32{ "FILE_TYPE_UNSPECIFIED": 0, "SERVICE_CONFIG_YAML": 1, "OPEN_API_JSON": 2, "OPEN_API_YAML": 3, "FILE_DESCRIPTOR_SET_PROTO": 4, }
var Diagnostic_Kind_name = map[int32]string{ 0: "WARNING", 1: "ERROR", }
var Diagnostic_Kind_value = map[string]int32{ "WARNING": 0, "ERROR": 1, }
var GetServiceConfigRequest_ConfigView_name = map[int32]string{ 0: "BASIC", 1: "FULL", }
var GetServiceConfigRequest_ConfigView_value = map[string]int32{ "BASIC": 0, "FULL": 1, }
var OperationMetadata_Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "DONE", 2: "NOT_STARTED", 3: "IN_PROGRESS", 4: "FAILED", 5: "CANCELLED", }
var OperationMetadata_Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "DONE": 1, "NOT_STARTED": 2, "IN_PROGRESS": 3, "FAILED": 4, "CANCELLED": 5, }
var Rollout_RolloutStatus_name = map[int32]string{ 0: "ROLLOUT_STATUS_UNSPECIFIED", 1: "IN_PROGRESS", 2: "SUCCESS", 3: "CANCELLED", 4: "FAILED", 5: "PENDING", }
var Rollout_RolloutStatus_value = map[string]int32{ "ROLLOUT_STATUS_UNSPECIFIED": 0, "IN_PROGRESS": 1, "SUCCESS": 2, "CANCELLED": 3, "FAILED": 4, "PENDING": 5, }
func RegisterServiceManagerServer ¶
func RegisterServiceManagerServer(s *grpc.Server, srv ServiceManagerServer)
type ChangeReport ¶
Change report associated with a particular service configuration.
It contains a list of ConfigChanges based on the comparison between two service configurations.
type ChangeReport struct { // List of changes between two service configurations. // The changes will be alphabetically sorted based on the identifier // of each change. // A ConfigChange identifier is a dot separated path to the configuration. // Example: visibility.rules[selector='LibraryService.CreateBook'].restriction ConfigChanges []*google_api2.ConfigChange `protobuf:"bytes,1,rep,name=config_changes,json=configChanges" json:"config_changes,omitempty"` }
func (*ChangeReport) Descriptor ¶
func (*ChangeReport) Descriptor() ([]byte, []int)
func (*ChangeReport) GetConfigChanges ¶
func (m *ChangeReport) GetConfigChanges() []*google_api2.ConfigChange
func (*ChangeReport) ProtoMessage ¶
func (*ChangeReport) ProtoMessage()
func (*ChangeReport) Reset ¶
func (m *ChangeReport) Reset()
func (*ChangeReport) String ¶
func (m *ChangeReport) String() string
type ConfigFile ¶
Generic specification of a source configuration file
type ConfigFile struct { // The file name of the configuration file (full or relative path). FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath" json:"file_path,omitempty"` // The bytes that constitute the file. FileContents []byte `protobuf:"bytes,3,opt,name=file_contents,json=fileContents,proto3" json:"file_contents,omitempty"` // The type of configuration file this represents. FileType ConfigFile_FileType `protobuf:"varint,4,opt,name=file_type,json=fileType,enum=google.api.servicemanagement.v1.ConfigFile_FileType" json:"file_type,omitempty"` }
func (*ConfigFile) Descriptor ¶
func (*ConfigFile) Descriptor() ([]byte, []int)
func (*ConfigFile) GetFileContents ¶
func (m *ConfigFile) GetFileContents() []byte
func (*ConfigFile) GetFilePath ¶
func (m *ConfigFile) GetFilePath() string
func (*ConfigFile) GetFileType ¶
func (m *ConfigFile) GetFileType() ConfigFile_FileType
func (*ConfigFile) ProtoMessage ¶
func (*ConfigFile) ProtoMessage()
func (*ConfigFile) Reset ¶
func (m *ConfigFile) Reset()
func (*ConfigFile) String ¶
func (m *ConfigFile) String() string
type ConfigFile_FileType ¶
type ConfigFile_FileType int32
const ( // Unknown file type. ConfigFile_FILE_TYPE_UNSPECIFIED ConfigFile_FileType = 0 // YAML-specification of service. ConfigFile_SERVICE_CONFIG_YAML ConfigFile_FileType = 1 // OpenAPI specification, serialized in JSON. ConfigFile_OPEN_API_JSON ConfigFile_FileType = 2 // OpenAPI specification, serialized in YAML. ConfigFile_OPEN_API_YAML ConfigFile_FileType = 3 // FileDescriptorSet, generated by protoc. // // To generate, use protoc with imports and source info included. // For an example test.proto file, the following command would put the value // in a new file named out.pb. // // $protoc --include_imports --include_source_info test.proto -o out.pb ConfigFile_FILE_DESCRIPTOR_SET_PROTO ConfigFile_FileType = 4 )
func (ConfigFile_FileType) EnumDescriptor ¶
func (ConfigFile_FileType) EnumDescriptor() ([]byte, []int)
func (ConfigFile_FileType) String ¶
func (x ConfigFile_FileType) String() string
type ConfigRef ¶
Represents a service configuration with its name and id.
type ConfigRef struct { // Resource name of a service config. It must have the following // format: "services/{service name}/configs/{config id}". Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` }
func (*ConfigRef) Descriptor ¶
func (*ConfigRef) Descriptor() ([]byte, []int)
func (*ConfigRef) GetName ¶
func (m *ConfigRef) GetName() string
func (*ConfigRef) ProtoMessage ¶
func (*ConfigRef) ProtoMessage()
func (*ConfigRef) Reset ¶
func (m *ConfigRef) Reset()
func (*ConfigRef) String ¶
func (m *ConfigRef) String() string
type ConfigSource ¶
Represents a source file which is used to generate the service configuration defined by `google.api.Service`.
type ConfigSource struct { // A unique ID for a specific instance of this message, typically assigned // by the client for tracking purpose. If empty, the server may choose to // generate one instead. Id string `protobuf:"bytes,5,opt,name=id" json:"id,omitempty"` // Set of source configuration files that are used to generate a service // configuration (`google.api.Service`). Files []*ConfigFile `protobuf:"bytes,2,rep,name=files" json:"files,omitempty"` }
func (*ConfigSource) Descriptor ¶
func (*ConfigSource) Descriptor() ([]byte, []int)
func (*ConfigSource) GetFiles ¶
func (m *ConfigSource) GetFiles() []*ConfigFile
func (*ConfigSource) GetId ¶
func (m *ConfigSource) GetId() string
func (*ConfigSource) ProtoMessage ¶
func (*ConfigSource) ProtoMessage()
func (*ConfigSource) Reset ¶
func (m *ConfigSource) Reset()
func (*ConfigSource) String ¶
func (m *ConfigSource) String() string
type CreateServiceConfigRequest ¶
Request message for CreateServiceConfig method.
type CreateServiceConfigRequest struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // The service configuration resource. ServiceConfig *google_api21.Service `protobuf:"bytes,2,opt,name=service_config,json=serviceConfig" json:"service_config,omitempty"` }
func (*CreateServiceConfigRequest) Descriptor ¶
func (*CreateServiceConfigRequest) Descriptor() ([]byte, []int)
func (*CreateServiceConfigRequest) GetServiceConfig ¶
func (m *CreateServiceConfigRequest) GetServiceConfig() *google_api21.Service
func (*CreateServiceConfigRequest) GetServiceName ¶
func (m *CreateServiceConfigRequest) GetServiceName() string
func (*CreateServiceConfigRequest) ProtoMessage ¶
func (*CreateServiceConfigRequest) ProtoMessage()
func (*CreateServiceConfigRequest) Reset ¶
func (m *CreateServiceConfigRequest) Reset()
func (*CreateServiceConfigRequest) String ¶
func (m *CreateServiceConfigRequest) String() string
type CreateServiceRequest ¶
Request message for CreateService method.
type CreateServiceRequest struct {
// Initial values for the service resource.
Service *ManagedService `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"`
}
func (*CreateServiceRequest) Descriptor ¶
func (*CreateServiceRequest) Descriptor() ([]byte, []int)
func (*CreateServiceRequest) GetService ¶
func (m *CreateServiceRequest) GetService() *ManagedService
func (*CreateServiceRequest) ProtoMessage ¶
func (*CreateServiceRequest) ProtoMessage()
func (*CreateServiceRequest) Reset ¶
func (m *CreateServiceRequest) Reset()
func (*CreateServiceRequest) String ¶
func (m *CreateServiceRequest) String() string
type CreateServiceRolloutRequest ¶
Request message for 'CreateServiceRollout'
type CreateServiceRolloutRequest struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // The rollout resource. The `service_name` field is output only. Rollout *Rollout `protobuf:"bytes,2,opt,name=rollout" json:"rollout,omitempty"` }
func (*CreateServiceRolloutRequest) Descriptor ¶
func (*CreateServiceRolloutRequest) Descriptor() ([]byte, []int)
func (*CreateServiceRolloutRequest) GetRollout ¶
func (m *CreateServiceRolloutRequest) GetRollout() *Rollout
func (*CreateServiceRolloutRequest) GetServiceName ¶
func (m *CreateServiceRolloutRequest) GetServiceName() string
func (*CreateServiceRolloutRequest) ProtoMessage ¶
func (*CreateServiceRolloutRequest) ProtoMessage()
func (*CreateServiceRolloutRequest) Reset ¶
func (m *CreateServiceRolloutRequest) Reset()
func (*CreateServiceRolloutRequest) String ¶
func (m *CreateServiceRolloutRequest) String() string
type DeleteServiceRequest ¶
Request message for DeleteService method.
type DeleteServiceRequest struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` }
func (*DeleteServiceRequest) Descriptor ¶
func (*DeleteServiceRequest) Descriptor() ([]byte, []int)
func (*DeleteServiceRequest) GetServiceName ¶
func (m *DeleteServiceRequest) GetServiceName() string
func (*DeleteServiceRequest) ProtoMessage ¶
func (*DeleteServiceRequest) ProtoMessage()
func (*DeleteServiceRequest) Reset ¶
func (m *DeleteServiceRequest) Reset()
func (*DeleteServiceRequest) String ¶
func (m *DeleteServiceRequest) String() string
type Diagnostic ¶
Represents a diagnostic message (error or warning)
type Diagnostic struct { // File name and line number of the error or warning. Location string `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"` // The kind of diagnostic information provided. Kind Diagnostic_Kind `protobuf:"varint,2,opt,name=kind,enum=google.api.servicemanagement.v1.Diagnostic_Kind" json:"kind,omitempty"` // Message describing the error or warning. Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` }
func (*Diagnostic) Descriptor ¶
func (*Diagnostic) Descriptor() ([]byte, []int)
func (*Diagnostic) GetKind ¶
func (m *Diagnostic) GetKind() Diagnostic_Kind
func (*Diagnostic) GetLocation ¶
func (m *Diagnostic) GetLocation() string
func (*Diagnostic) GetMessage ¶
func (m *Diagnostic) GetMessage() string
func (*Diagnostic) ProtoMessage ¶
func (*Diagnostic) ProtoMessage()
func (*Diagnostic) Reset ¶
func (m *Diagnostic) Reset()
func (*Diagnostic) String ¶
func (m *Diagnostic) String() string
type Diagnostic_Kind ¶
The kind of diagnostic information possible.
type Diagnostic_Kind int32
const ( // Warnings and errors Diagnostic_WARNING Diagnostic_Kind = 0 // Only errors Diagnostic_ERROR Diagnostic_Kind = 1 )
func (Diagnostic_Kind) EnumDescriptor ¶
func (Diagnostic_Kind) EnumDescriptor() ([]byte, []int)
func (Diagnostic_Kind) String ¶
func (x Diagnostic_Kind) String() string
type DisableServiceRequest ¶
Request message for DisableService method.
type DisableServiceRequest struct { // Name of the service to disable. Specifying an unknown service name // will cause the request to fail. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // The identity of consumer resource which service disablement will be // applied to. // // The Google Service Management implementation accepts the following // forms: // - "project:<project_id>" // // Note: this is made compatible with // google.api.servicecontrol.v1.Operation.consumer_id. ConsumerId string `protobuf:"bytes,2,opt,name=consumer_id,json=consumerId" json:"consumer_id,omitempty"` }
func (*DisableServiceRequest) Descriptor ¶
func (*DisableServiceRequest) Descriptor() ([]byte, []int)
func (*DisableServiceRequest) GetConsumerId ¶
func (m *DisableServiceRequest) GetConsumerId() string
func (*DisableServiceRequest) GetServiceName ¶
func (m *DisableServiceRequest) GetServiceName() string
func (*DisableServiceRequest) ProtoMessage ¶
func (*DisableServiceRequest) ProtoMessage()
func (*DisableServiceRequest) Reset ¶
func (m *DisableServiceRequest) Reset()
func (*DisableServiceRequest) String ¶
func (m *DisableServiceRequest) String() string
type EnableServiceRequest ¶
Request message for EnableService method.
type EnableServiceRequest struct { // Name of the service to enable. Specifying an unknown service name will // cause the request to fail. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // The identity of consumer resource which service enablement will be // applied to. // // The Google Service Management implementation accepts the following // forms: // - "project:<project_id>" // // Note: this is made compatible with // google.api.servicecontrol.v1.Operation.consumer_id. ConsumerId string `protobuf:"bytes,2,opt,name=consumer_id,json=consumerId" json:"consumer_id,omitempty"` }
func (*EnableServiceRequest) Descriptor ¶
func (*EnableServiceRequest) Descriptor() ([]byte, []int)
func (*EnableServiceRequest) GetConsumerId ¶
func (m *EnableServiceRequest) GetConsumerId() string
func (*EnableServiceRequest) GetServiceName ¶
func (m *EnableServiceRequest) GetServiceName() string
func (*EnableServiceRequest) ProtoMessage ¶
func (*EnableServiceRequest) ProtoMessage()
func (*EnableServiceRequest) Reset ¶
func (m *EnableServiceRequest) Reset()
func (*EnableServiceRequest) String ¶
func (m *EnableServiceRequest) String() string
type GenerateConfigReportRequest ¶
Request message for GenerateConfigReport method.
type GenerateConfigReportRequest struct { // Service configuration for which we want to generate the report. // For this version of API, the supported types are // [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef], // [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource], // and [google.api.Service][google.api.Service] NewConfig *google_protobuf1.Any `protobuf:"bytes,1,opt,name=new_config,json=newConfig" json:"new_config,omitempty"` // Service configuration against which the comparison will be done. // For this version of API, the supported types are // [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef], // [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource], // and [google.api.Service][google.api.Service] OldConfig *google_protobuf1.Any `protobuf:"bytes,2,opt,name=old_config,json=oldConfig" json:"old_config,omitempty"` }
func (*GenerateConfigReportRequest) Descriptor ¶
func (*GenerateConfigReportRequest) Descriptor() ([]byte, []int)
func (*GenerateConfigReportRequest) GetNewConfig ¶
func (m *GenerateConfigReportRequest) GetNewConfig() *google_protobuf1.Any
func (*GenerateConfigReportRequest) GetOldConfig ¶
func (m *GenerateConfigReportRequest) GetOldConfig() *google_protobuf1.Any
func (*GenerateConfigReportRequest) ProtoMessage ¶
func (*GenerateConfigReportRequest) ProtoMessage()
func (*GenerateConfigReportRequest) Reset ¶
func (m *GenerateConfigReportRequest) Reset()
func (*GenerateConfigReportRequest) String ¶
func (m *GenerateConfigReportRequest) String() string
type GenerateConfigReportResponse ¶
Response message for GenerateConfigReport method.
type GenerateConfigReportResponse struct { // Name of the service this report belongs to. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // ID of the service configuration this report belongs to. Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` // list of ChangeReport, each corresponding to comparison between two // service configurations. ChangeReports []*ChangeReport `protobuf:"bytes,3,rep,name=change_reports,json=changeReports" json:"change_reports,omitempty"` // Errors / Linter warnings associated with the service definition this // report // belongs to. Diagnostics []*Diagnostic `protobuf:"bytes,4,rep,name=diagnostics" json:"diagnostics,omitempty"` }
func (*GenerateConfigReportResponse) Descriptor ¶
func (*GenerateConfigReportResponse) Descriptor() ([]byte, []int)
func (*GenerateConfigReportResponse) GetChangeReports ¶
func (m *GenerateConfigReportResponse) GetChangeReports() []*ChangeReport
func (*GenerateConfigReportResponse) GetDiagnostics ¶
func (m *GenerateConfigReportResponse) GetDiagnostics() []*Diagnostic
func (*GenerateConfigReportResponse) GetId ¶
func (m *GenerateConfigReportResponse) GetId() string
func (*GenerateConfigReportResponse) GetServiceName ¶
func (m *GenerateConfigReportResponse) GetServiceName() string
func (*GenerateConfigReportResponse) ProtoMessage ¶
func (*GenerateConfigReportResponse) ProtoMessage()
func (*GenerateConfigReportResponse) Reset ¶
func (m *GenerateConfigReportResponse) Reset()
func (*GenerateConfigReportResponse) String ¶
func (m *GenerateConfigReportResponse) String() string
type GetServiceConfigRequest ¶
Request message for GetServiceConfig method.
type GetServiceConfigRequest struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // The id of the service configuration resource. ConfigId string `protobuf:"bytes,2,opt,name=config_id,json=configId" json:"config_id,omitempty"` // Specifies which parts of the Service Config should be returned in the // response. View GetServiceConfigRequest_ConfigView `protobuf:"varint,3,opt,name=view,enum=google.api.servicemanagement.v1.GetServiceConfigRequest_ConfigView" json:"view,omitempty"` }
func (*GetServiceConfigRequest) Descriptor ¶
func (*GetServiceConfigRequest) Descriptor() ([]byte, []int)
func (*GetServiceConfigRequest) GetConfigId ¶
func (m *GetServiceConfigRequest) GetConfigId() string
func (*GetServiceConfigRequest) GetServiceName ¶
func (m *GetServiceConfigRequest) GetServiceName() string
func (*GetServiceConfigRequest) GetView ¶
func (m *GetServiceConfigRequest) GetView() GetServiceConfigRequest_ConfigView
func (*GetServiceConfigRequest) ProtoMessage ¶
func (*GetServiceConfigRequest) ProtoMessage()
func (*GetServiceConfigRequest) Reset ¶
func (m *GetServiceConfigRequest) Reset()
func (*GetServiceConfigRequest) String ¶
func (m *GetServiceConfigRequest) String() string
type GetServiceConfigRequest_ConfigView ¶
type GetServiceConfigRequest_ConfigView int32
const ( // Server response includes all fields except SourceInfo. GetServiceConfigRequest_BASIC GetServiceConfigRequest_ConfigView = 0 // Server response includes all fields including SourceInfo. // SourceFiles are of type 'google.api.servicemanagement.v1.ConfigFile' // and are only available for configs created using the // SubmitConfigSource method. GetServiceConfigRequest_FULL GetServiceConfigRequest_ConfigView = 1 )
func (GetServiceConfigRequest_ConfigView) EnumDescriptor ¶
func (GetServiceConfigRequest_ConfigView) EnumDescriptor() ([]byte, []int)
func (GetServiceConfigRequest_ConfigView) String ¶
func (x GetServiceConfigRequest_ConfigView) String() string
type GetServiceRequest ¶
Request message for `GetService` method.
type GetServiceRequest struct { // The name of the service. See the `ServiceManager` overview for naming // requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` }
func (*GetServiceRequest) Descriptor ¶
func (*GetServiceRequest) Descriptor() ([]byte, []int)
func (*GetServiceRequest) GetServiceName ¶
func (m *GetServiceRequest) GetServiceName() string
func (*GetServiceRequest) ProtoMessage ¶
func (*GetServiceRequest) ProtoMessage()
func (*GetServiceRequest) Reset ¶
func (m *GetServiceRequest) Reset()
func (*GetServiceRequest) String ¶
func (m *GetServiceRequest) String() string
type GetServiceRolloutRequest ¶
Request message for GetServiceRollout method.
type GetServiceRolloutRequest struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // The id of the rollout resource. RolloutId string `protobuf:"bytes,2,opt,name=rollout_id,json=rolloutId" json:"rollout_id,omitempty"` }
func (*GetServiceRolloutRequest) Descriptor ¶
func (*GetServiceRolloutRequest) Descriptor() ([]byte, []int)
func (*GetServiceRolloutRequest) GetRolloutId ¶
func (m *GetServiceRolloutRequest) GetRolloutId() string
func (*GetServiceRolloutRequest) GetServiceName ¶
func (m *GetServiceRolloutRequest) GetServiceName() string
func (*GetServiceRolloutRequest) ProtoMessage ¶
func (*GetServiceRolloutRequest) ProtoMessage()
func (*GetServiceRolloutRequest) Reset ¶
func (m *GetServiceRolloutRequest) Reset()
func (*GetServiceRolloutRequest) String ¶
func (m *GetServiceRolloutRequest) String() string
type ListServiceConfigsRequest ¶
Request message for ListServiceConfigs method.
type ListServiceConfigsRequest struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // The token of the page to retrieve. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken" json:"page_token,omitempty"` // The max number of items to include in the response list. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"` }
func (*ListServiceConfigsRequest) Descriptor ¶
func (*ListServiceConfigsRequest) Descriptor() ([]byte, []int)
func (*ListServiceConfigsRequest) GetPageSize ¶
func (m *ListServiceConfigsRequest) GetPageSize() int32
func (*ListServiceConfigsRequest) GetPageToken ¶
func (m *ListServiceConfigsRequest) GetPageToken() string
func (*ListServiceConfigsRequest) GetServiceName ¶
func (m *ListServiceConfigsRequest) GetServiceName() string
func (*ListServiceConfigsRequest) ProtoMessage ¶
func (*ListServiceConfigsRequest) ProtoMessage()
func (*ListServiceConfigsRequest) Reset ¶
func (m *ListServiceConfigsRequest) Reset()
func (*ListServiceConfigsRequest) String ¶
func (m *ListServiceConfigsRequest) String() string
type ListServiceConfigsResponse ¶
Response message for ListServiceConfigs method.
type ListServiceConfigsResponse struct { // The list of service configuration resources. ServiceConfigs []*google_api21.Service `protobuf:"bytes,1,rep,name=service_configs,json=serviceConfigs" json:"service_configs,omitempty"` // The token of the next page of results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"` }
func (*ListServiceConfigsResponse) Descriptor ¶
func (*ListServiceConfigsResponse) Descriptor() ([]byte, []int)
func (*ListServiceConfigsResponse) GetNextPageToken ¶
func (m *ListServiceConfigsResponse) GetNextPageToken() string
func (*ListServiceConfigsResponse) GetServiceConfigs ¶
func (m *ListServiceConfigsResponse) GetServiceConfigs() []*google_api21.Service
func (*ListServiceConfigsResponse) ProtoMessage ¶
func (*ListServiceConfigsResponse) ProtoMessage()
func (*ListServiceConfigsResponse) Reset ¶
func (m *ListServiceConfigsResponse) Reset()
func (*ListServiceConfigsResponse) String ¶
func (m *ListServiceConfigsResponse) String() string
type ListServiceRolloutsRequest ¶
Request message for 'ListServiceRollouts'
type ListServiceRolloutsRequest struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // The token of the page to retrieve. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken" json:"page_token,omitempty"` // The max number of items to include in the response list. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"` // Use `filter` to return subset of rollouts. // The following filters are supported: // -- To limit the results to only those in // [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', // use filter='status=SUCCESS' // -- To limit the results to those in // [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' // or 'FAILED', use filter='status=CANCELLED OR status=FAILED' Filter string `protobuf:"bytes,4,opt,name=filter" json:"filter,omitempty"` }
func (*ListServiceRolloutsRequest) Descriptor ¶
func (*ListServiceRolloutsRequest) Descriptor() ([]byte, []int)
func (*ListServiceRolloutsRequest) GetFilter ¶
func (m *ListServiceRolloutsRequest) GetFilter() string
func (*ListServiceRolloutsRequest) GetPageSize ¶
func (m *ListServiceRolloutsRequest) GetPageSize() int32
func (*ListServiceRolloutsRequest) GetPageToken ¶
func (m *ListServiceRolloutsRequest) GetPageToken() string
func (*ListServiceRolloutsRequest) GetServiceName ¶
func (m *ListServiceRolloutsRequest) GetServiceName() string
func (*ListServiceRolloutsRequest) ProtoMessage ¶
func (*ListServiceRolloutsRequest) ProtoMessage()
func (*ListServiceRolloutsRequest) Reset ¶
func (m *ListServiceRolloutsRequest) Reset()
func (*ListServiceRolloutsRequest) String ¶
func (m *ListServiceRolloutsRequest) String() string
type ListServiceRolloutsResponse ¶
Response message for ListServiceRollouts method.
type ListServiceRolloutsResponse struct { // The list of rollout resources. Rollouts []*Rollout `protobuf:"bytes,1,rep,name=rollouts" json:"rollouts,omitempty"` // The token of the next page of results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"` }
func (*ListServiceRolloutsResponse) Descriptor ¶
func (*ListServiceRolloutsResponse) Descriptor() ([]byte, []int)
func (*ListServiceRolloutsResponse) GetNextPageToken ¶
func (m *ListServiceRolloutsResponse) GetNextPageToken() string
func (*ListServiceRolloutsResponse) GetRollouts ¶
func (m *ListServiceRolloutsResponse) GetRollouts() []*Rollout
func (*ListServiceRolloutsResponse) ProtoMessage ¶
func (*ListServiceRolloutsResponse) ProtoMessage()
func (*ListServiceRolloutsResponse) Reset ¶
func (m *ListServiceRolloutsResponse) Reset()
func (*ListServiceRolloutsResponse) String ¶
func (m *ListServiceRolloutsResponse) String() string
type ListServicesRequest ¶
Request message for `ListServices` method.
type ListServicesRequest struct { // Include services produced by the specified project. ProducerProjectId string `protobuf:"bytes,1,opt,name=producer_project_id,json=producerProjectId" json:"producer_project_id,omitempty"` // Requested size of the next page of data. PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize" json:"page_size,omitempty"` // Token identifying which result to start with; returned by a previous list // call. PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken" json:"page_token,omitempty"` // Include services consumed by the specified consumer. // // The Google Service Management implementation accepts the following // forms: // - project:<project_id> ConsumerId string `protobuf:"bytes,7,opt,name=consumer_id,json=consumerId" json:"consumer_id,omitempty"` }
func (*ListServicesRequest) Descriptor ¶
func (*ListServicesRequest) Descriptor() ([]byte, []int)
func (*ListServicesRequest) GetConsumerId ¶
func (m *ListServicesRequest) GetConsumerId() string
func (*ListServicesRequest) GetPageSize ¶
func (m *ListServicesRequest) GetPageSize() int32
func (*ListServicesRequest) GetPageToken ¶
func (m *ListServicesRequest) GetPageToken() string
func (*ListServicesRequest) GetProducerProjectId ¶
func (m *ListServicesRequest) GetProducerProjectId() string
func (*ListServicesRequest) ProtoMessage ¶
func (*ListServicesRequest) ProtoMessage()
func (*ListServicesRequest) Reset ¶
func (m *ListServicesRequest) Reset()
func (*ListServicesRequest) String ¶
func (m *ListServicesRequest) String() string
type ListServicesResponse ¶
Response message for `ListServices` method.
type ListServicesResponse struct { // The returned services will only have the name field set. Services []*ManagedService `protobuf:"bytes,1,rep,name=services" json:"services,omitempty"` // Token that can be passed to `ListServices` to resume a paginated query. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"` }
func (*ListServicesResponse) Descriptor ¶
func (*ListServicesResponse) Descriptor() ([]byte, []int)
func (*ListServicesResponse) GetNextPageToken ¶
func (m *ListServicesResponse) GetNextPageToken() string
func (*ListServicesResponse) GetServices ¶
func (m *ListServicesResponse) GetServices() []*ManagedService
func (*ListServicesResponse) ProtoMessage ¶
func (*ListServicesResponse) ProtoMessage()
func (*ListServicesResponse) Reset ¶
func (m *ListServicesResponse) Reset()
func (*ListServicesResponse) String ¶
func (m *ListServicesResponse) String() string
type ManagedService ¶
The full representation of a Service that is managed by Google Service Management.
type ManagedService struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // ID of the project that produces and owns this service. ProducerProjectId string `protobuf:"bytes,3,opt,name=producer_project_id,json=producerProjectId" json:"producer_project_id,omitempty"` }
func (*ManagedService) Descriptor ¶
func (*ManagedService) Descriptor() ([]byte, []int)
func (*ManagedService) GetProducerProjectId ¶
func (m *ManagedService) GetProducerProjectId() string
func (*ManagedService) GetServiceName ¶
func (m *ManagedService) GetServiceName() string
func (*ManagedService) ProtoMessage ¶
func (*ManagedService) ProtoMessage()
func (*ManagedService) Reset ¶
func (m *ManagedService) Reset()
func (*ManagedService) String ¶
func (m *ManagedService) String() string
type OperationMetadata ¶
The metadata associated with a long running operation resource.
type OperationMetadata struct { // The full name of the resources that this operation is directly // associated with. ResourceNames []string `protobuf:"bytes,1,rep,name=resource_names,json=resourceNames" json:"resource_names,omitempty"` // Detailed status information for each step. The order is undetermined. Steps []*OperationMetadata_Step `protobuf:"bytes,2,rep,name=steps" json:"steps,omitempty"` // Percentage of completion of this operation, ranging from 0 to 100. ProgressPercentage int32 `protobuf:"varint,3,opt,name=progress_percentage,json=progressPercentage" json:"progress_percentage,omitempty"` // The start time of the operation. StartTime *google_protobuf9.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime" json:"start_time,omitempty"` }
func (*OperationMetadata) Descriptor ¶
func (*OperationMetadata) Descriptor() ([]byte, []int)
func (*OperationMetadata) GetProgressPercentage ¶
func (m *OperationMetadata) GetProgressPercentage() int32
func (*OperationMetadata) GetResourceNames ¶
func (m *OperationMetadata) GetResourceNames() []string
func (*OperationMetadata) GetStartTime ¶
func (m *OperationMetadata) GetStartTime() *google_protobuf9.Timestamp
func (*OperationMetadata) GetSteps ¶
func (m *OperationMetadata) GetSteps() []*OperationMetadata_Step
func (*OperationMetadata) ProtoMessage ¶
func (*OperationMetadata) ProtoMessage()
func (*OperationMetadata) Reset ¶
func (m *OperationMetadata) Reset()
func (*OperationMetadata) String ¶
func (m *OperationMetadata) String() string
type OperationMetadata_Status ¶
Code describes the status of one operation step.
type OperationMetadata_Status int32
const ( // Unspecifed code. OperationMetadata_STATUS_UNSPECIFIED OperationMetadata_Status = 0 // The step has completed without errors. OperationMetadata_DONE OperationMetadata_Status = 1 // The step has not started yet. OperationMetadata_NOT_STARTED OperationMetadata_Status = 2 // The step is in progress. OperationMetadata_IN_PROGRESS OperationMetadata_Status = 3 // The step has completed with errors. OperationMetadata_FAILED OperationMetadata_Status = 4 // The step has completed with cancellation. OperationMetadata_CANCELLED OperationMetadata_Status = 5 )
func (OperationMetadata_Status) EnumDescriptor ¶
func (OperationMetadata_Status) EnumDescriptor() ([]byte, []int)
func (OperationMetadata_Status) String ¶
func (x OperationMetadata_Status) String() string
type OperationMetadata_Step ¶
Represents the status of one operation step.
type OperationMetadata_Step struct { // The short description of the step. Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` // The status code. Status OperationMetadata_Status `protobuf:"varint,4,opt,name=status,enum=google.api.servicemanagement.v1.OperationMetadata_Status" json:"status,omitempty"` }
func (*OperationMetadata_Step) Descriptor ¶
func (*OperationMetadata_Step) Descriptor() ([]byte, []int)
func (*OperationMetadata_Step) GetDescription ¶
func (m *OperationMetadata_Step) GetDescription() string
func (*OperationMetadata_Step) GetStatus ¶
func (m *OperationMetadata_Step) GetStatus() OperationMetadata_Status
func (*OperationMetadata_Step) ProtoMessage ¶
func (*OperationMetadata_Step) ProtoMessage()
func (*OperationMetadata_Step) Reset ¶
func (m *OperationMetadata_Step) Reset()
func (*OperationMetadata_Step) String ¶
func (m *OperationMetadata_Step) String() string
type Rollout ¶
A rollout resource that defines how service configuration versions are pushed to control plane systems. Typically, you create a new version of the service config, and then create a Rollout to push the service config.
type Rollout struct { // Optional unique identifier of this Rollout. Only lower case letters, digits // and '-' are allowed. // // If not specified by client, the server will generate one. The generated id // will have the form of <date><revision number>, where "date" is the create // date in ISO 8601 format. "revision number" is a monotonically increasing // positive number that is reset every day for each service. // An example of the generated rollout_id is '2016-02-16r1' RolloutId string `protobuf:"bytes,1,opt,name=rollout_id,json=rolloutId" json:"rollout_id,omitempty"` // Creation time of the rollout. Readonly. CreateTime *google_protobuf9.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime" json:"create_time,omitempty"` // The user who created the Rollout. Readonly. CreatedBy string `protobuf:"bytes,3,opt,name=created_by,json=createdBy" json:"created_by,omitempty"` // The status of this rollout. Readonly. In case of a failed rollout, // the system will automatically rollback to the current Rollout // version. Readonly. Status Rollout_RolloutStatus `protobuf:"varint,4,opt,name=status,enum=google.api.servicemanagement.v1.Rollout_RolloutStatus" json:"status,omitempty"` // Strategy that defines which versions of service configurations should be // pushed // and how they should be used at runtime. // // Types that are valid to be assigned to Strategy: // *Rollout_TrafficPercentStrategy_ // *Rollout_DeleteServiceStrategy_ Strategy isRollout_Strategy `protobuf_oneof:"strategy"` // The name of the service associated with this Rollout. ServiceName string `protobuf:"bytes,8,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` }
func (*Rollout) Descriptor ¶
func (*Rollout) Descriptor() ([]byte, []int)
func (*Rollout) GetCreateTime ¶
func (m *Rollout) GetCreateTime() *google_protobuf9.Timestamp
func (*Rollout) GetCreatedBy ¶
func (m *Rollout) GetCreatedBy() string
func (*Rollout) GetDeleteServiceStrategy ¶
func (m *Rollout) GetDeleteServiceStrategy() *Rollout_DeleteServiceStrategy
func (*Rollout) GetRolloutId ¶
func (m *Rollout) GetRolloutId() string
func (*Rollout) GetServiceName ¶
func (m *Rollout) GetServiceName() string
func (*Rollout) GetStatus ¶
func (m *Rollout) GetStatus() Rollout_RolloutStatus
func (*Rollout) GetStrategy ¶
func (m *Rollout) GetStrategy() isRollout_Strategy
func (*Rollout) GetTrafficPercentStrategy ¶
func (m *Rollout) GetTrafficPercentStrategy() *Rollout_TrafficPercentStrategy
func (*Rollout) ProtoMessage ¶
func (*Rollout) ProtoMessage()
func (*Rollout) Reset ¶
func (m *Rollout) Reset()
func (*Rollout) String ¶
func (m *Rollout) String() string
func (*Rollout) XXX_OneofFuncs ¶
func (*Rollout) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type Rollout_DeleteServiceStrategy ¶
Strategy used to delete a service. This strategy is a placeholder only used by the system generated rollout to delete a service.
type Rollout_DeleteServiceStrategy struct { }
func (*Rollout_DeleteServiceStrategy) Descriptor ¶
func (*Rollout_DeleteServiceStrategy) Descriptor() ([]byte, []int)
func (*Rollout_DeleteServiceStrategy) ProtoMessage ¶
func (*Rollout_DeleteServiceStrategy) ProtoMessage()
func (*Rollout_DeleteServiceStrategy) Reset ¶
func (m *Rollout_DeleteServiceStrategy) Reset()
func (*Rollout_DeleteServiceStrategy) String ¶
func (m *Rollout_DeleteServiceStrategy) String() string
type Rollout_DeleteServiceStrategy_ ¶
type Rollout_DeleteServiceStrategy_ struct { DeleteServiceStrategy *Rollout_DeleteServiceStrategy `protobuf:"bytes,200,opt,name=delete_service_strategy,json=deleteServiceStrategy,oneof"` }
type Rollout_RolloutStatus ¶
Status of a Rollout.
type Rollout_RolloutStatus int32
const ( // No status specified. Rollout_ROLLOUT_STATUS_UNSPECIFIED Rollout_RolloutStatus = 0 // The Rollout is in progress. Rollout_IN_PROGRESS Rollout_RolloutStatus = 1 // The Rollout has completed successfully. Rollout_SUCCESS Rollout_RolloutStatus = 2 // The Rollout has been cancelled. This can happen if you have overlapping // Rollout pushes, and the previous ones will be cancelled. Rollout_CANCELLED Rollout_RolloutStatus = 3 // The Rollout has failed. It is typically caused by configuration errors. Rollout_FAILED Rollout_RolloutStatus = 4 // The Rollout has not started yet and is pending for execution. Rollout_PENDING Rollout_RolloutStatus = 5 )
func (Rollout_RolloutStatus) EnumDescriptor ¶
func (Rollout_RolloutStatus) EnumDescriptor() ([]byte, []int)
func (Rollout_RolloutStatus) String ¶
func (x Rollout_RolloutStatus) String() string
type Rollout_TrafficPercentStrategy ¶
Strategy that specifies how Google Service Control should select different versions of service configurations based on traffic percentage.
One example of how to gradually rollout a new service configuration using this strategy: Day 1
Rollout { id: "example.googleapis.com/rollout_20160206" traffic_percent_strategy { percentages: { "example.googleapis.com/20160201": 70.00 "example.googleapis.com/20160206": 30.00 } } }
Day 2
Rollout { id: "example.googleapis.com/rollout_20160207" traffic_percent_strategy: { percentages: { "example.googleapis.com/20160206": 100.00 } } }
type Rollout_TrafficPercentStrategy struct { // Maps service configuration IDs to their corresponding traffic percentage. // Key is the service configuration ID, Value is the traffic percentage // which must be greater than 0.0 and the sum must equal to 100.0. Percentages map[string]float64 `protobuf:"bytes,1,rep,name=percentages" json:"percentages,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` }
func (*Rollout_TrafficPercentStrategy) Descriptor ¶
func (*Rollout_TrafficPercentStrategy) Descriptor() ([]byte, []int)
func (*Rollout_TrafficPercentStrategy) GetPercentages ¶
func (m *Rollout_TrafficPercentStrategy) GetPercentages() map[string]float64
func (*Rollout_TrafficPercentStrategy) ProtoMessage ¶
func (*Rollout_TrafficPercentStrategy) ProtoMessage()
func (*Rollout_TrafficPercentStrategy) Reset ¶
func (m *Rollout_TrafficPercentStrategy) Reset()
func (*Rollout_TrafficPercentStrategy) String ¶
func (m *Rollout_TrafficPercentStrategy) String() string
type Rollout_TrafficPercentStrategy_ ¶
type Rollout_TrafficPercentStrategy_ struct { TrafficPercentStrategy *Rollout_TrafficPercentStrategy `protobuf:"bytes,5,opt,name=traffic_percent_strategy,json=trafficPercentStrategy,oneof"` }
type ServiceManagerClient ¶
type ServiceManagerClient interface { // Lists managed services. // // Returns all public services. For authenticated users, also returns all // services the calling user has "servicemanagement.services.get" permission // for. // // **BETA:** If the caller specifies the `consumer_id`, it returns only the // services enabled on the consumer. The `consumer_id` must have the format // of "project:{PROJECT-ID}". ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error) // Gets a managed service. Authentication is required unless the service is // public. GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*ManagedService, error) // Creates a new managed service. // Please note one producer project can own no more than 20 services. // // Operation<response: ManagedService> CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) // Deletes a managed service. This method will change the service to the // `Soft-Delete` state for 30 days. Within this period, service producers may // call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service. // After 30 days, the service will be permanently deleted. // // Operation<response: google.protobuf.Empty> DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) // Revives a previously deleted managed service. The method restores the // service using the configuration at the time the service was deleted. // The target service must exist and must have been deleted within the // last 30 days. // // Operation<response: UndeleteServiceResponse> UndeleteService(ctx context.Context, in *UndeleteServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) // Lists the history of the service configuration for a managed service, // from the newest to the oldest. ListServiceConfigs(ctx context.Context, in *ListServiceConfigsRequest, opts ...grpc.CallOption) (*ListServiceConfigsResponse, error) // Gets a service configuration (version) for a managed service. GetServiceConfig(ctx context.Context, in *GetServiceConfigRequest, opts ...grpc.CallOption) (*google_api21.Service, error) // Creates a new service configuration (version) for a managed service. // This method only stores the service configuration. To roll out the service // configuration to backend systems please call // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. CreateServiceConfig(ctx context.Context, in *CreateServiceConfigRequest, opts ...grpc.CallOption) (*google_api21.Service, error) // Creates a new service configuration (version) for a managed service based // on // user-supplied configuration source files (for example: OpenAPI // Specification). This method stores the source configurations as well as the // generated service configuration. To rollout the service configuration to // other services, // please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. // // Operation<response: SubmitConfigSourceResponse> SubmitConfigSource(ctx context.Context, in *SubmitConfigSourceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) // Lists the history of the service configuration rollouts for a managed // service, from the newest to the oldest. ListServiceRollouts(ctx context.Context, in *ListServiceRolloutsRequest, opts ...grpc.CallOption) (*ListServiceRolloutsResponse, error) // Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout]. GetServiceRollout(ctx context.Context, in *GetServiceRolloutRequest, opts ...grpc.CallOption) (*Rollout, error) // Creates a new service configuration rollout. Based on rollout, the // Google Service Management will roll out the service configurations to // different backend services. For example, the logging configuration will be // pushed to Google Cloud Logging. // // Please note that any previous pending and running Rollouts and associated // Operations will be automatically cancelled so that the latest Rollout will // not be blocked by previous Rollouts. // // Operation<response: Rollout> CreateServiceRollout(ctx context.Context, in *CreateServiceRolloutRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) // Generates and returns a report (errors, warnings and changes from // existing configurations) associated with // GenerateConfigReportRequest.new_value // // If GenerateConfigReportRequest.old_value is specified, // GenerateConfigReportRequest will contain a single ChangeReport based on the // comparison between GenerateConfigReportRequest.new_value and // GenerateConfigReportRequest.old_value. // If GenerateConfigReportRequest.old_value is not specified, this method // will compare GenerateConfigReportRequest.new_value with the last pushed // service configuration. GenerateConfigReport(ctx context.Context, in *GenerateConfigReportRequest, opts ...grpc.CallOption) (*GenerateConfigReportResponse, error) // Enables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can be used // for the project. See // [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for // more information. // // Operation<response: EnableServiceResponse> EnableService(ctx context.Context, in *EnableServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) // Disables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can no longer be // be used for the project. It prevents accidental usage that may cause // unexpected billing charges or security leaks. // // Operation<response: DisableServiceResponse> DisableService(ctx context.Context, in *DisableServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) }
func NewServiceManagerClient ¶
func NewServiceManagerClient(cc *grpc.ClientConn) ServiceManagerClient
type ServiceManagerServer ¶
type ServiceManagerServer interface { // Lists managed services. // // Returns all public services. For authenticated users, also returns all // services the calling user has "servicemanagement.services.get" permission // for. // // **BETA:** If the caller specifies the `consumer_id`, it returns only the // services enabled on the consumer. The `consumer_id` must have the format // of "project:{PROJECT-ID}". ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) // Gets a managed service. Authentication is required unless the service is // public. GetService(context.Context, *GetServiceRequest) (*ManagedService, error) // Creates a new managed service. // Please note one producer project can own no more than 20 services. // // Operation<response: ManagedService> CreateService(context.Context, *CreateServiceRequest) (*google_longrunning.Operation, error) // Deletes a managed service. This method will change the service to the // `Soft-Delete` state for 30 days. Within this period, service producers may // call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service. // After 30 days, the service will be permanently deleted. // // Operation<response: google.protobuf.Empty> DeleteService(context.Context, *DeleteServiceRequest) (*google_longrunning.Operation, error) // Revives a previously deleted managed service. The method restores the // service using the configuration at the time the service was deleted. // The target service must exist and must have been deleted within the // last 30 days. // // Operation<response: UndeleteServiceResponse> UndeleteService(context.Context, *UndeleteServiceRequest) (*google_longrunning.Operation, error) // Lists the history of the service configuration for a managed service, // from the newest to the oldest. ListServiceConfigs(context.Context, *ListServiceConfigsRequest) (*ListServiceConfigsResponse, error) // Gets a service configuration (version) for a managed service. GetServiceConfig(context.Context, *GetServiceConfigRequest) (*google_api21.Service, error) // Creates a new service configuration (version) for a managed service. // This method only stores the service configuration. To roll out the service // configuration to backend systems please call // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. CreateServiceConfig(context.Context, *CreateServiceConfigRequest) (*google_api21.Service, error) // Creates a new service configuration (version) for a managed service based // on // user-supplied configuration source files (for example: OpenAPI // Specification). This method stores the source configurations as well as the // generated service configuration. To rollout the service configuration to // other services, // please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. // // Operation<response: SubmitConfigSourceResponse> SubmitConfigSource(context.Context, *SubmitConfigSourceRequest) (*google_longrunning.Operation, error) // Lists the history of the service configuration rollouts for a managed // service, from the newest to the oldest. ListServiceRollouts(context.Context, *ListServiceRolloutsRequest) (*ListServiceRolloutsResponse, error) // Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout]. GetServiceRollout(context.Context, *GetServiceRolloutRequest) (*Rollout, error) // Creates a new service configuration rollout. Based on rollout, the // Google Service Management will roll out the service configurations to // different backend services. For example, the logging configuration will be // pushed to Google Cloud Logging. // // Please note that any previous pending and running Rollouts and associated // Operations will be automatically cancelled so that the latest Rollout will // not be blocked by previous Rollouts. // // Operation<response: Rollout> CreateServiceRollout(context.Context, *CreateServiceRolloutRequest) (*google_longrunning.Operation, error) // Generates and returns a report (errors, warnings and changes from // existing configurations) associated with // GenerateConfigReportRequest.new_value // // If GenerateConfigReportRequest.old_value is specified, // GenerateConfigReportRequest will contain a single ChangeReport based on the // comparison between GenerateConfigReportRequest.new_value and // GenerateConfigReportRequest.old_value. // If GenerateConfigReportRequest.old_value is not specified, this method // will compare GenerateConfigReportRequest.new_value with the last pushed // service configuration. GenerateConfigReport(context.Context, *GenerateConfigReportRequest) (*GenerateConfigReportResponse, error) // Enables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can be used // for the project. See // [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for // more information. // // Operation<response: EnableServiceResponse> EnableService(context.Context, *EnableServiceRequest) (*google_longrunning.Operation, error) // Disables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can no longer be // be used for the project. It prevents accidental usage that may cause // unexpected billing charges or security leaks. // // Operation<response: DisableServiceResponse> DisableService(context.Context, *DisableServiceRequest) (*google_longrunning.Operation, error) }
type SubmitConfigSourceRequest ¶
Request message for SubmitConfigSource method.
type SubmitConfigSourceRequest struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // The source configuration for the service. ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource" json:"config_source,omitempty"` // Optional. If set, this will result in the generation of a // `google.api.Service` configuration based on the `ConfigSource` provided, // but the generated config and the sources will NOT be persisted. ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly" json:"validate_only,omitempty"` }
func (*SubmitConfigSourceRequest) Descriptor ¶
func (*SubmitConfigSourceRequest) Descriptor() ([]byte, []int)
func (*SubmitConfigSourceRequest) GetConfigSource ¶
func (m *SubmitConfigSourceRequest) GetConfigSource() *ConfigSource
func (*SubmitConfigSourceRequest) GetServiceName ¶
func (m *SubmitConfigSourceRequest) GetServiceName() string
func (*SubmitConfigSourceRequest) GetValidateOnly ¶
func (m *SubmitConfigSourceRequest) GetValidateOnly() bool
func (*SubmitConfigSourceRequest) ProtoMessage ¶
func (*SubmitConfigSourceRequest) ProtoMessage()
func (*SubmitConfigSourceRequest) Reset ¶
func (m *SubmitConfigSourceRequest) Reset()
func (*SubmitConfigSourceRequest) String ¶
func (m *SubmitConfigSourceRequest) String() string
type SubmitConfigSourceResponse ¶
Response message for SubmitConfigSource method.
type SubmitConfigSourceResponse struct {
// The generated service configuration.
ServiceConfig *google_api21.Service `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig" json:"service_config,omitempty"`
}
func (*SubmitConfigSourceResponse) Descriptor ¶
func (*SubmitConfigSourceResponse) Descriptor() ([]byte, []int)
func (*SubmitConfigSourceResponse) GetServiceConfig ¶
func (m *SubmitConfigSourceResponse) GetServiceConfig() *google_api21.Service
func (*SubmitConfigSourceResponse) ProtoMessage ¶
func (*SubmitConfigSourceResponse) ProtoMessage()
func (*SubmitConfigSourceResponse) Reset ¶
func (m *SubmitConfigSourceResponse) Reset()
func (*SubmitConfigSourceResponse) String ¶
func (m *SubmitConfigSourceResponse) String() string
type UndeleteServiceRequest ¶
Request message for UndeleteService method.
type UndeleteServiceRequest struct { // The name of the service. See the [overview](/service-management/overview) // for naming requirements. For example: `example.googleapis.com`. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` }
func (*UndeleteServiceRequest) Descriptor ¶
func (*UndeleteServiceRequest) Descriptor() ([]byte, []int)
func (*UndeleteServiceRequest) GetServiceName ¶
func (m *UndeleteServiceRequest) GetServiceName() string
func (*UndeleteServiceRequest) ProtoMessage ¶
func (*UndeleteServiceRequest) ProtoMessage()
func (*UndeleteServiceRequest) Reset ¶
func (m *UndeleteServiceRequest) Reset()
func (*UndeleteServiceRequest) String ¶
func (m *UndeleteServiceRequest) String() string
type UndeleteServiceResponse ¶
Response message for UndeleteService method.
type UndeleteServiceResponse struct {
// Revived service resource.
Service *ManagedService `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"`
}
func (*UndeleteServiceResponse) Descriptor ¶
func (*UndeleteServiceResponse) Descriptor() ([]byte, []int)
func (*UndeleteServiceResponse) GetService ¶
func (m *UndeleteServiceResponse) GetService() *ManagedService
func (*UndeleteServiceResponse) ProtoMessage ¶
func (*UndeleteServiceResponse) ProtoMessage()
func (*UndeleteServiceResponse) Reset ¶
func (m *UndeleteServiceResponse) Reset()
func (*UndeleteServiceResponse) String ¶
func (m *UndeleteServiceResponse) String() string