google_api_servicemanagement_v1

package
v0.0.0-...-dbc791b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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",
}
View Source
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,
}
View Source
var Diagnostic_Kind_name = map[int32]string{
	0: "WARNING",
	1: "ERROR",
}
View Source
var Diagnostic_Kind_value = map[string]int32{
	"WARNING": 0,
	"ERROR":   1,
}
View Source
var GetServiceConfigRequest_ConfigView_name = map[int32]string{
	0: "BASIC",
	1: "FULL",
}
View Source
var GetServiceConfigRequest_ConfigView_value = map[string]int32{
	"BASIC": 0,
	"FULL":  1,
}
View Source
var OperationMetadata_Status_name = map[int32]string{
	0: "STATUS_UNSPECIFIED",
	1: "DONE",
	2: "NOT_STARTED",
	3: "IN_PROGRESS",
	4: "FAILED",
	5: "CANCELLED",
}
View Source
var OperationMetadata_Status_value = map[string]int32{
	"STATUS_UNSPECIFIED": 0,
	"DONE":               1,
	"NOT_STARTED":        2,
	"IN_PROGRESS":        3,
	"FAILED":             4,
	"CANCELLED":          5,
}
View Source
var Rollout_RolloutStatus_name = map[int32]string{
	0: "ROLLOUT_STATUS_UNSPECIFIED",
	1: "IN_PROGRESS",
	2: "SUCCESS",
	3: "CANCELLED",
	4: "FAILED",
	5: "PENDING",
}
View Source
var Rollout_RolloutStatus_value = map[string]int32{
	"ROLLOUT_STATUS_UNSPECIFIED": 0,
	"IN_PROGRESS":                1,
	"SUCCESS":                    2,
	"CANCELLED":                  3,
	"FAILED":                     4,
	"PENDING":                    5,
}

Functions

This section is empty.

Types

type ChangeReport

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"`
}

Change report associated with a particular service configuration.

It contains a list of ConfigChanges based on the comparison between two service configurations.

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

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,proto3" 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 `` /* 143-byte string literal not displayed */
}

Generic specification of a source configuration file

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

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,proto3" json:"name,omitempty"`
}

Represents a service configuration with its name and id.

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

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,proto3" 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"`
}

Represents a source file which is used to generate the service configuration defined by `google.api.Service`.

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

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,proto3" json:"service_name,omitempty"`
	// The service configuration resource.
	ServiceConfig *google_api22.Service `protobuf:"bytes,2,opt,name=service_config,json=serviceConfig" json:"service_config,omitempty"`
}

Request message for CreateServiceConfig method.

func (*CreateServiceConfigRequest) Descriptor

func (*CreateServiceConfigRequest) Descriptor() ([]byte, []int)

func (*CreateServiceConfigRequest) GetServiceConfig

func (m *CreateServiceConfigRequest) GetServiceConfig() *google_api22.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

type CreateServiceRequest struct {
	// Initial values for the service resource.
	Service *ManagedService `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"`
}

Request message for CreateService method.

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

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,proto3" 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"`
}

Request message for 'CreateServiceRollout'

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

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,proto3" json:"service_name,omitempty"`
}

Request message for DeleteService method.

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

type Diagnostic struct {
	// File name and line number of the error or warning.
	Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// The kind of diagnostic information provided.
	Kind Diagnostic_Kind `protobuf:"varint,2,opt,name=kind,proto3,enum=google.api.servicemanagement.v1.Diagnostic_Kind" json:"kind,omitempty"`
	// Message describing the error or warning.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}

Represents a diagnostic message (error or warning)

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

type Diagnostic_Kind int32

The kind of diagnostic information possible.

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

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,proto3" 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,proto3" json:"consumer_id,omitempty"`
}

Request message for DisableService method.

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

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,proto3" 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,proto3" json:"consumer_id,omitempty"`
}

Request message for EnableService method.

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

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"`
}

Request message for GenerateConfigReport method.

func (*GenerateConfigReportRequest) Descriptor

func (*GenerateConfigReportRequest) Descriptor() ([]byte, []int)

func (*GenerateConfigReportRequest) GetNewConfig

func (*GenerateConfigReportRequest) GetOldConfig

func (*GenerateConfigReportRequest) ProtoMessage

func (*GenerateConfigReportRequest) ProtoMessage()

func (*GenerateConfigReportRequest) Reset

func (m *GenerateConfigReportRequest) Reset()

func (*GenerateConfigReportRequest) String

func (m *GenerateConfigReportRequest) String() string

type GenerateConfigReportResponse

type GenerateConfigReportResponse struct {
	// Name of the service this report belongs to.
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// ID of the service configuration this report belongs to.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" 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"`
}

Response message for GenerateConfigReport method.

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 (*GenerateConfigReportResponse) GetServiceName

func (m *GenerateConfigReportResponse) GetServiceName() string

func (*GenerateConfigReportResponse) ProtoMessage

func (*GenerateConfigReportResponse) ProtoMessage()

func (*GenerateConfigReportResponse) Reset

func (m *GenerateConfigReportResponse) Reset()

func (*GenerateConfigReportResponse) String

type GetServiceConfigRequest

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,proto3" json:"service_name,omitempty"`
	// The id of the service configuration resource.
	ConfigId string `protobuf:"bytes,2,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
	// Specifies which parts of the Service Config should be returned in the
	// response.
	View GetServiceConfigRequest_ConfigView `` /* 134-byte string literal not displayed */
}

Request message for GetServiceConfig method.

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 (*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

type GetServiceRequest

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,proto3" json:"service_name,omitempty"`
}

Request message for `GetService` method.

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

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,proto3" json:"service_name,omitempty"`
	// The id of the rollout resource.
	RolloutId string `protobuf:"bytes,2,opt,name=rollout_id,json=rolloutId,proto3" json:"rollout_id,omitempty"`
}

Request message for GetServiceRollout method.

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

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,proto3" json:"service_name,omitempty"`
	// The token of the page to retrieve.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" 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,proto3" json:"page_size,omitempty"`
}

Request message for ListServiceConfigs method.

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

type ListServiceConfigsResponse struct {
	// The list of service configuration resources.
	ServiceConfigs []*google_api22.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,proto3" json:"next_page_token,omitempty"`
}

Response message for ListServiceConfigs method.

func (*ListServiceConfigsResponse) Descriptor

func (*ListServiceConfigsResponse) Descriptor() ([]byte, []int)

func (*ListServiceConfigsResponse) GetNextPageToken

func (m *ListServiceConfigsResponse) GetNextPageToken() string

func (*ListServiceConfigsResponse) GetServiceConfigs

func (m *ListServiceConfigsResponse) GetServiceConfigs() []*google_api22.Service

func (*ListServiceConfigsResponse) ProtoMessage

func (*ListServiceConfigsResponse) ProtoMessage()

func (*ListServiceConfigsResponse) Reset

func (m *ListServiceConfigsResponse) Reset()

func (*ListServiceConfigsResponse) String

func (m *ListServiceConfigsResponse) String() string

type ListServiceRolloutsRequest

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,proto3" json:"service_name,omitempty"`
	// The token of the page to retrieve.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" 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,proto3" 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,proto3" json:"filter,omitempty"`
}

Request message for 'ListServiceRollouts'

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

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,proto3" json:"next_page_token,omitempty"`
}

Response message for ListServiceRollouts method.

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

type ListServicesRequest struct {
	// Include services produced by the specified project.
	ProducerProjectId string `protobuf:"bytes,1,opt,name=producer_project_id,json=producerProjectId,proto3" json:"producer_project_id,omitempty"`
	// Requested size of the next page of data.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" 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,proto3" 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,proto3" json:"consumer_id,omitempty"`
}

Request message for `ListServices` method.

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

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,proto3" json:"next_page_token,omitempty"`
}

Response message for `ListServices` method.

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

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,proto3" 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,proto3" json:"producer_project_id,omitempty"`
}

The full representation of a Service that is managed by Google Service Management.

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

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,proto3" 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"`
}

The metadata associated with a long running operation resource.

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

type OperationMetadata_Status int32

Code describes the status of one operation step.

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

type OperationMetadata_Step struct {
	// The short description of the step.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The status code.
	Status OperationMetadata_Status `` /* 128-byte string literal not displayed */
}

Represents the status of one operation step.

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 (*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

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,proto3" 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,proto3" 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,proto3,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,proto3" json:"service_name,omitempty"`
}

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.

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

type Rollout_DeleteServiceStrategy struct {
}

Strategy used to delete a service. This strategy is a placeholder only used by the system generated rollout to delete a service.

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

type Rollout_DeleteServiceStrategy_

type Rollout_DeleteServiceStrategy_ struct {
	DeleteServiceStrategy *Rollout_DeleteServiceStrategy `protobuf:"bytes,200,opt,name=delete_service_strategy,json=deleteServiceStrategy,oneof"`
}

type Rollout_RolloutStatus

type Rollout_RolloutStatus int32

Status of a Rollout.

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

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 `` /* 158-byte string literal not displayed */
}

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
    }
  }
}

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

type Rollout_TrafficPercentStrategy_

type Rollout_TrafficPercentStrategy_ struct {
	TrafficPercentStrategy *Rollout_TrafficPercentStrategy `protobuf:"bytes,5,opt,name=traffic_percent_strategy,json=trafficPercentStrategy,oneof"`
}

type SubmitConfigSourceRequest

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,proto3" 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,proto3" json:"validate_only,omitempty"`
}

Request message for SubmitConfigSource method.

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

type SubmitConfigSourceResponse struct {
	// The generated service configuration.
	ServiceConfig *google_api22.Service `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig" json:"service_config,omitempty"`
}

Response message for SubmitConfigSource method.

func (*SubmitConfigSourceResponse) Descriptor

func (*SubmitConfigSourceResponse) Descriptor() ([]byte, []int)

func (*SubmitConfigSourceResponse) GetServiceConfig

func (m *SubmitConfigSourceResponse) GetServiceConfig() *google_api22.Service

func (*SubmitConfigSourceResponse) ProtoMessage

func (*SubmitConfigSourceResponse) ProtoMessage()

func (*SubmitConfigSourceResponse) Reset

func (m *SubmitConfigSourceResponse) Reset()

func (*SubmitConfigSourceResponse) String

func (m *SubmitConfigSourceResponse) String() string

type UndeleteServiceRequest

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,proto3" json:"service_name,omitempty"`
}

Request message for UndeleteService method.

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

type UndeleteServiceResponse struct {
	// Revived service resource.
	Service *ManagedService `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"`
}

Response message for UndeleteService method.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL