Movatterモバイル変換


[0]ホーム

URL:


versionhistory

package
v0.257.0Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package versionhistory provides access to the versionhistory.googleapis.com API.

For product documentation, see:https://developer.chrome.com/docs/web-platform/versionhistory/guide

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/versionhistory/v1"...ctx := context.Background()versionhistoryService, err := versionhistory.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

versionhistoryService, err := versionhistory.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)versionhistoryService, err := versionhistory.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeChannel

type Channel struct {// ChannelType: Type of channel.//// Possible values://   "CHANNEL_TYPE_UNSPECIFIED"//   "STABLE" - The Stable channel.//   "BETA" - The Beta channel.//   "DEV" - The Dev channel.//   "CANARY" - The Canary channel.//   "CANARY_ASAN" - The Canary channel for Chrome, with DCHECK/ASAN enabled.//   "ALL"//   "EXTENDED" - The Extended Stable channel for Chrome.//   "LTS" - The Long-term support channel for ChromeOS.//   "LTC" - The Long-term support candidate channel for ChromeOS.ChannelTypestring `json:"channelType,omitempty"`// Name: Channel name. Format is// "{product}/platforms/{platform}/channels/{channel}"Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Channel: Each Channel is owned by a Platform and owns a collection ofversions. Possible Channels are listed in the Channel enum below. Not allChannels are available for every Platform (e.g. CANARY does not exist forLINUX).

func (Channel)MarshalJSON

func (sChannel) MarshalJSON() ([]byte,error)

typeInterval

type Interval struct {// EndTime: Optional. Exclusive end of the interval. If specified, a Timestamp// matching this interval will have to be before the end.EndTimestring `json:"endTime,omitempty"`// StartTime: Optional. Inclusive start of the interval. If specified, a// Timestamp matching this interval will have to be the same or after the// start.StartTimestring `json:"startTime,omitempty"`// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Interval: Represents a time interval, encoded as a Timestamp start(inclusive) and a Timestamp end (exclusive). The start must be less than orequal to the end. When the start equals the end, the interval is empty(matches no time). When both start and end are unspecified, the intervalmatches any time.

func (Interval)MarshalJSON

func (sInterval) MarshalJSON() ([]byte,error)

typeListChannelsResponse

type ListChannelsResponse struct {// Channels: The list of channels.Channels []*Channel `json:"channels,omitempty"`// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Channels") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Channels") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListChannelsResponse: Response message for ListChannels.

func (ListChannelsResponse)MarshalJSON

func (sListChannelsResponse) MarshalJSON() ([]byte,error)

typeListPlatformsResponse

type ListPlatformsResponse struct {// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// Platforms: The list of platforms.Platforms []*Platform `json:"platforms,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListPlatformsResponse: Response message for ListPlatforms.

func (ListPlatformsResponse)MarshalJSON

func (sListPlatformsResponse) MarshalJSON() ([]byte,error)

typeListReleasesResponse

type ListReleasesResponse struct {// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// Releases: The list of releases.Releases []*Release `json:"releases,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListReleasesResponse: Response message for ListReleases.

func (ListReleasesResponse)MarshalJSON

func (sListReleasesResponse) MarshalJSON() ([]byte,error)

typeListVersionsResponse

type ListVersionsResponse struct {// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// Versions: The list of versions.Versions []*Version `json:"versions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListVersionsResponse: Response message for ListVersions.

func (ListVersionsResponse)MarshalJSON

func (sListVersionsResponse) MarshalJSON() ([]byte,error)

typePlatform

type Platform struct {// Name: Platform name. Format is "{product}/platforms/{platform}"Namestring `json:"name,omitempty"`// PlatformType: Type of platform.//// Possible values://   "PLATFORM_TYPE_UNSPECIFIED"//   "WIN" - Chrome Desktop for Windows (32-bit).//   "WIN64" - Chrome Desktop for Windows (x86_64).//   "MAC" - Chrome Desktop for macOS (x86_64).//   "LINUX" - Chrome Desktop for Linux.//   "ANDROID" - Chrome for Android.//   "WEBVIEW" - WebView for Android.//   "IOS" - Chrome for iOS.//   "ALL"//   "MAC_ARM64" - Chrome for macOS (ARM64).//   "LACROS" - ChromeOS Lacros (x86_64).//   "LACROS_ARM32" - ChromeOS Lacros (ARM).//   "CHROMEOS" - ChromeOS.//   "LACROS_ARM64" - ChromeOS Lacros (ARM64).//   "FUCHSIA" - Chrome for Fuchsia.//   "WIN_ARM64" - Chrome Desktop for Windows (ARM64).PlatformTypestring `json:"platformType,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Platform: Each Platform is owned by a Product and owns a collection ofchannels. Available platforms are listed in Platform enum below. Not allChannels are available for every Platform (e.g. CANARY does not exist forLINUX).

func (Platform)MarshalJSON

func (sPlatform) MarshalJSON() ([]byte,error)

typePlatformsChannelsListCall

type PlatformsChannelsListCall struct {// contains filtered or unexported fields}

func (*PlatformsChannelsListCall)Context

Context sets the context to be used in this call's Do method.

func (*PlatformsChannelsListCall)Do

Do executes the "versionhistory.platforms.channels.list" call.Any non-2xx status code is an error. Response headers are in either*ListChannelsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PlatformsChannelsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlatformsChannelsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlatformsChannelsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*PlatformsChannelsListCall)PageSize

PageSize sets the optional parameter "pageSize": Optional limit on thenumber of channels to include in the response. If unspecified, the serverwill pick an appropriate default.

func (*PlatformsChannelsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListChannels` call. Provide this to retrieve the subsequentpage.

func (*PlatformsChannelsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typePlatformsChannelsService

type PlatformsChannelsService struct {Versions *PlatformsChannelsVersionsService// contains filtered or unexported fields}

funcNewPlatformsChannelsService

func NewPlatformsChannelsService(s *Service) *PlatformsChannelsService

func (*PlatformsChannelsService)List

List: Returns list of channels that are available for a given platform.

  • parent: The platform, which owns this collection of channels. Format:{product}/platforms/{platform}.

typePlatformsChannelsVersionsListCall

type PlatformsChannelsVersionsListCall struct {// contains filtered or unexported fields}

func (*PlatformsChannelsVersionsListCall)Context

Context sets the context to be used in this call's Do method.

func (*PlatformsChannelsVersionsListCall)Do

Do executes the "versionhistory.platforms.channels.versions.list" call.Any non-2xx status code is an error. Response headers are in either*ListVersionsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PlatformsChannelsVersionsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlatformsChannelsVersionsListCall)Filter

Filter sets the optional parameter "filter": Filter string. Format is acomma separated list of All comma separated filter clauses are conjoinedwith a logical "and". Valid field_names are "version", "name", "platform",and "channel". Valid operators are "<", "<=", "=", ">=", and ">". Channelcomparison is done by distance from stable. Ex) stable < beta, beta < dev,canary < canary_asan. Version comparison is done numerically. If version isnot entirely written, the version will be appended with 0 in missing fields.Ex) version > 80 becoms version > 80.0.0.0 Name and platform are filtered bystring comparison. Ex) "...?filter=channel<=beta, version >= 80 Ex)"...?filter=version > 80, version < 81

func (*PlatformsChannelsVersionsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlatformsChannelsVersionsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*PlatformsChannelsVersionsListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Ordering string. Validorder_by strings are "version", "name", "platform", and "channel".Optionally, you can append " desc" or " asc" to specify the sorting order.Multiple order_by strings can be used in a comma separated list. Ordering bychannel will sort by distance from the stable channel (not alphabetically).A list of channels sorted in this order is: stable, beta, dev, canary, andcanary_asan. Sorting by name may cause unexpected behaviour as it is a naivestring sort. For example, 1.0.0.8 will be before 1.0.0.10 in descendingorder. If order_by is not specified the response will be sorted by versionin descending order. Ex) "...?order_by=version asc" Ex)"...?order_by=platform desc, channel, version"

func (*PlatformsChannelsVersionsListCall)PageSize

PageSize sets the optional parameter "pageSize": Optional limit on thenumber of versions to include in the response. If unspecified, the serverwill pick an appropriate default.

func (*PlatformsChannelsVersionsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListVersions` call. Provide this to retrieve the subsequentpage.

func (*PlatformsChannelsVersionsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typePlatformsChannelsVersionsReleasesListCall

type PlatformsChannelsVersionsReleasesListCall struct {// contains filtered or unexported fields}

func (*PlatformsChannelsVersionsReleasesListCall)Context

Context sets the context to be used in this call's Do method.

func (*PlatformsChannelsVersionsReleasesListCall)Do

Do executes the "versionhistory.platforms.channels.versions.releases.list" call.Any non-2xx status code is an error. Response headers are in either*ListReleasesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PlatformsChannelsVersionsReleasesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlatformsChannelsVersionsReleasesListCall)Filter

Filter sets the optional parameter "filter": Filter string. Format is acomma separated list of All comma separated filter clauses are conjoinedwith a logical "and". Valid field_names are "version", "name", "platform","channel", "fraction" "starttime", and "endtime". Valid operators are "<","<=", "=", ">=", and ">". Channel comparison is done by distance fromstable. must be a valid channel when filtering by channel. Ex) stable <beta, beta < dev, canary < canary_asan. Version comparison is donenumerically. Ex) 1.0.0.8 < 1.0.0.10. If version is not entirely written, theversion will be appended with 0 for the missing fields. Ex) version > 80becoms version > 80.0.0.0 When filtering by starttime or endtime, stringmust be inRFC 3339 date string format. Name and platform are filtered bystring comparison. Ex) "...?filter=channel<=beta, version >= 80 Ex)"...?filter=version > 80, version < 81 Ex)"...?filter=starttime>2020-01-01T00:00:00Z

func (*PlatformsChannelsVersionsReleasesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlatformsChannelsVersionsReleasesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*PlatformsChannelsVersionsReleasesListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Ordering string. Validorder_by strings are "version", "name", "starttime", "endtime", "platform","channel", and "fraction". Optionally, you can append "desc" or "asc" tospecify the sorting order. Multiple order_by strings can be used in a commaseparated list. Ordering by channel will sort by distance from the stablechannel (not alphabetically). A list of channels sorted in this order is:stable, beta, dev, canary, and canary_asan. Sorting by name may causeunexpected behaviour as it is a naive string sort. For example, 1.0.0.8 willbe before 1.0.0.10 in descending order. If order_by is not specified theresponse will be sorted by starttime in descending order. Ex)"...?order_by=starttime asc" Ex) "...?order_by=platform desc, channel,startime desc"

func (*PlatformsChannelsVersionsReleasesListCall)PageSize

PageSize sets the optional parameter "pageSize": Optional limit on thenumber of releases to include in the response. If unspecified, the serverwill pick an appropriate default.

func (*PlatformsChannelsVersionsReleasesListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListReleases` call. Provide this to retrieve the subsequentpage.

func (*PlatformsChannelsVersionsReleasesListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typePlatformsChannelsVersionsReleasesService

type PlatformsChannelsVersionsReleasesService struct {// contains filtered or unexported fields}

func (*PlatformsChannelsVersionsReleasesService)List

List: Returns list of releases of the given version.

  • parent: The version, which owns this collection of releases. Format:{product}/platforms/{platform}/channels/{channel}/versions/{version}.

typePlatformsChannelsVersionsService

type PlatformsChannelsVersionsService struct {Releases *PlatformsChannelsVersionsReleasesService// contains filtered or unexported fields}

funcNewPlatformsChannelsVersionsService

func NewPlatformsChannelsVersionsService(s *Service) *PlatformsChannelsVersionsService

func (*PlatformsChannelsVersionsService)List

List: Returns list of version for the given platform/channel.

  • parent: The channel, which owns this collection of versions. Format:{product}/platforms/{platform}/channels/{channel}.

typePlatformsListCall

type PlatformsListCall struct {// contains filtered or unexported fields}

func (*PlatformsListCall)Context

Context sets the context to be used in this call's Do method.

func (*PlatformsListCall)Do

Do executes the "versionhistory.platforms.list" call.Any non-2xx status code is an error. Response headers are in either*ListPlatformsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PlatformsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlatformsListCall)Header

func (c *PlatformsListCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlatformsListCall)IfNoneMatch

func (c *PlatformsListCall) IfNoneMatch(entityTagstring) *PlatformsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*PlatformsListCall)PageSize

func (c *PlatformsListCall) PageSize(pageSizeint64) *PlatformsListCall

PageSize sets the optional parameter "pageSize": Optional limit on thenumber of channels to include in the response. If unspecified, the serverwill pick an appropriate default.

func (*PlatformsListCall)PageToken

func (c *PlatformsListCall) PageToken(pageTokenstring) *PlatformsListCall

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListChannels` call. Provide this to retrieve the subsequentpage.

func (*PlatformsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typePlatformsService

type PlatformsService struct {Channels *PlatformsChannelsService// contains filtered or unexported fields}

funcNewPlatformsService

func NewPlatformsService(s *Service) *PlatformsService

func (*PlatformsService)List

List: Returns list of platforms that are available for a given product. Theresource "product" has no resource name in its name.

  • parent: The product, which owns this collection of platforms. Format:{product}.

typeRelease

type Release struct {// Fraction: Rollout fraction. This fraction indicates the fraction of people// that should receive this version in this release. If the fraction is not// specified in ReleaseManager, the API will assume fraction is 1.Fractionfloat64 `json:"fraction,omitempty"`// FractionGroup: Rollout fraction group. Only fractions with the same// fraction_group are statistically comparable: there may be non-fractional// differences between different fraction groups.FractionGroupint64 `json:"fractionGroup,omitempty,string"`// Name: Release name. Format is// "{product}/platforms/{platform}/channels/{channel}/versions/{version}/release// s/{release}"Namestring `json:"name,omitempty"`// Pinnable: Whether or not the release was available for version pinning.Pinnablebool `json:"pinnable,omitempty"`// RolloutData: Rollout-related metadata. Some releases are part of one or more// A/B rollouts. This field contains the names and data describing this// release's role in any rollouts.RolloutData []*RolloutData `json:"rolloutData,omitempty"`// Serving: Timestamp interval of when the release was live. If end_time is// unspecified, the release is currently live.Serving *Interval `json:"serving,omitempty"`// Version: String containing just the version number. e.g. "84.0.4147.38"Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Fraction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Fraction") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Release: A Release is owned by a Version. A Release contains informationabout the release(s) of its parent version. This includes when the releasebegan and ended, as well as what percentage it was released at. If theversion is released again, or if the serving percentage changes, it willcreate another release under the version.

func (Release)MarshalJSON

func (sRelease) MarshalJSON() ([]byte,error)

func (*Release)UnmarshalJSON

func (s *Release) UnmarshalJSON(data []byte)error

typeRolloutDataadded inv0.248.0

type RolloutData struct {// RolloutName: The name of the rollout.RolloutNamestring `json:"rolloutName,omitempty"`// Tag: Tags associated with a release's role in a rollout. Most rollouts will// have at least one release with a "rollout" tag and another release with a// "control" tag. Some rollouts may have additional named arms.Tag []string `json:"tag,omitempty"`// ForceSendFields is a list of field names (e.g. "RolloutName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RolloutName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RolloutData: Rollout-related metadata for a release.

func (RolloutData)MarshalJSONadded inv0.248.0

func (sRolloutData) MarshalJSON() ([]byte,error)

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentPlatforms *PlatformsService// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewService

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

typeVersion

type Version struct {// Name: Version name. Format is// "{product}/platforms/{platform}/channels/{channel}/versions/{version}" e.g.// "chrome/platforms/win/channels/beta/versions/84.0.4147.38"Namestring `json:"name,omitempty"`// Version: String containing just the version number. e.g. "84.0.4147.38"Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Version: Each Version is owned by a Channel. A Version only displays theVersion number (e.g. 84.0.4147.38). A Version owns a collection of releases.

func (Version)MarshalJSON

func (sVersion) MarshalJSON() ([]byte,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp