From 91406081538e06ab580f59d6fba001dc34f8574a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 24 Oct 2022 11:49:40 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#1720) --- admin/directory/v1/admin-api.json | 78 +- admin/directory/v1/admin-gen.go | 110 +- admin/reports/v1/admin-api.json | 6 +- admin/reports/v1/admin-gen.go | 132 +- alertcenter/v1beta1/alertcenter-api.json | 6 +- alertcenter/v1beta1/alertcenter-gen.go | 5 + appengine/v1beta/appengine-api.json | 325 +++- appengine/v1beta/appengine-gen.go | 1360 ++++++++++++++++- .../v1/bigqueryreservation-api.json | 4 +- .../v1/bigqueryreservation-gen.go | 12 +- .../v1beta1/bigqueryreservation-api.json | 4 +- .../v1beta1/bigqueryreservation-gen.go | 12 +- chat/v1/chat-api.json | 8 +- chat/v1/chat-gen.go | 17 +- cloudbuild/v1/cloudbuild-api.json | 10 +- cloudbuild/v1/cloudbuild-gen.go | 19 +- cloudbuild/v1alpha1/cloudbuild-api.json | 10 +- cloudbuild/v1alpha1/cloudbuild-gen.go | 19 +- cloudbuild/v1alpha2/cloudbuild-api.json | 10 +- cloudbuild/v1alpha2/cloudbuild-gen.go | 19 +- cloudbuild/v1beta1/cloudbuild-api.json | 10 +- cloudbuild/v1beta1/cloudbuild-gen.go | 19 +- .../v3/cloudresourcemanager-api.json | 12 +- .../v3/cloudresourcemanager-gen.go | 30 +- composer/v1/composer-api.json | 27 +- composer/v1/composer-gen.go | 45 + .../v1/containeranalysis-api.json | 156 +- containeranalysis/v1/containeranalysis-gen.go | 211 +++ .../v1alpha1/containeranalysis-api.json | 158 +- .../v1alpha1/containeranalysis-gen.go | 213 ++- .../v1beta1/containeranalysis-api.json | 156 +- .../v1beta1/containeranalysis-gen.go | 211 +++ datacatalog/v1/datacatalog-api.json | 38 +- datacatalog/v1/datacatalog-gen.go | 53 +- .../v1beta1/networkmanagement-api.json | 10 +- .../v1beta1/networkmanagement-gen.go | 6 +- redis/v1beta1/redis-api.json | 27 +- redis/v1beta1/redis-gen.go | 45 + retail/v2/retail-api.json | 98 +- retail/v2/retail-gen.go | 163 +- retail/v2alpha/retail-api.json | 84 +- retail/v2alpha/retail-gen.go | 149 +- retail/v2beta/retail-api.json | 84 +- retail/v2beta/retail-gen.go | 149 +- run/v1/run-api.json | 6 +- run/v1/run-gen.go | 5 +- run/v2/run-api.json | 62 +- run/v2/run-gen.go | 123 +- servicedirectory/v1/servicedirectory-api.json | 17 +- servicedirectory/v1/servicedirectory-gen.go | 12 + sqladmin/v1/sqladmin-api.json | 28 +- sqladmin/v1/sqladmin-gen.go | 57 +- sqladmin/v1beta4/sqladmin-api.json | 28 +- sqladmin/v1beta4/sqladmin-gen.go | 57 +- 54 files changed, 3970 insertions(+), 745 deletions(-) diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index a475b6b6474..2fe13357d35 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -396,7 +396,7 @@ "type": "string" }, "includeChildOrgunits": { - "description": "Return devices from all child orgunits, as well as the specified org unit. If this is set to true 'orgUnitPath' must be provided.", + "description": "Return devices from all child orgunits, as well as the specified org unit. If this is set to true, 'orgUnitPath' must be provided.", "location": "query", "type": "boolean" }, @@ -4630,7 +4630,7 @@ } } }, - "revision": "20220919", + "revision": "20221018", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { @@ -5195,7 +5195,7 @@ "id": "ChromeOsDevice", "properties": { "activeTimeRanges": { - "description": "List of active time ranges (Read-only).", + "description": "A list of active time ranges (Read-only).", "items": { "properties": { "activeTime": { @@ -5306,7 +5306,7 @@ "items": { "properties": { "cpuTemperatureInfo": { - "description": "List of CPU temperature samples.", + "description": "A list of CPU temperature samples.", "items": { "properties": { "label": { @@ -5341,7 +5341,7 @@ "type": "array" }, "deviceFiles": { - "description": "List of device files to download (Read-only)", + "description": "A list of device files to download (Read-only)", "items": { "properties": { "createTime": { @@ -5504,9 +5504,9 @@ "type": "string" }, "recentUsers": { - "description": "List of recent device users, in descending order, by last login time.", + "description": "A list of recent device users, in descending order, by last login time.", "items": { - "description": "List of recent device users, in descending order, by last login time.", + "description": "A list of recent device users, in descending order, by last login time.", "properties": { "email": { "description": "The user's email address. This is only present if the user type is `USER_TYPE_MANAGED`.", @@ -5522,7 +5522,7 @@ "type": "array" }, "screenshotFiles": { - "description": "List of screenshot files to download. Type is always \"SCREENSHOT_FILE\". (Read-only)", + "description": "A list of screenshot files to download. Type is always \"SCREENSHOT_FILE\". (Read-only)", "items": { "properties": { "createTime": { @@ -5624,7 +5624,7 @@ "type": "object" }, "ChromeOsDeviceAction": { - "description": "The data regarding an action to update the status of a Chrome OS device.", + "description": "Data about an update to the status of a Chrome OS device.", "id": "ChromeOsDeviceAction", "properties": { "action": { @@ -5647,7 +5647,7 @@ "id": "ChromeOsDevices", "properties": { "chromeosdevices": { - "description": "List of Chrome OS Device objects.", + "description": "A list of Chrome OS Device objects.", "items": { "$ref": "ChromeOsDevice" }, @@ -5991,7 +5991,7 @@ "id": "DomainAliases", "properties": { "domainAliases": { - "description": "List of domain alias objects.", + "description": "A list of domain alias objects.", "items": { "$ref": "DomainAlias" }, @@ -6018,7 +6018,7 @@ "type": "string" }, "domainAliases": { - "description": "List of domain alias objects. (Read-only)", + "description": "A list of domain alias objects. (Read-only)", "items": { "$ref": "DomainAlias" }, @@ -6057,7 +6057,7 @@ "id": "Domains2", "properties": { "domains": { - "description": "List of domain objects.", + "description": "A list of domain objects.", "items": { "$ref": "Domains" }, @@ -6229,7 +6229,7 @@ "type": "boolean" }, "aliases": { - "description": "Read-only. A list of a group's alias email addresses. To add, update, or remove a group's aliases, use the `groups.aliases` methods. If edited in a group's POST or PUT request, the edit is ignored.", + "description": "Read-only. The list of a group's alias email addresses. To add, update, or remove a group's aliases, use the `groups.aliases` methods. If edited in a group's POST or PUT request, the edit is ignored.", "items": { "type": "string" }, @@ -6271,7 +6271,7 @@ "type": "string" }, "nonEditableAliases": { - "description": "Read-only. A list of the group's non-editable alias email addresses that are outside of the account's primary domain or subdomains. These are functioning email addresses used by the group. This is a read-only property returned in the API's response for a group. If edited in a group's POST or PUT request, the edit is ignored.", + "description": "Read-only. The list of the group's non-editable alias email addresses that are outside of the account's primary domain or subdomains. These are functioning email addresses used by the group. This is a read-only property returned in the API's response for a group. If edited in a group's POST or PUT request, the edit is ignored.", "items": { "type": "string" }, @@ -6315,7 +6315,7 @@ "type": "string" }, "groups": { - "description": "List of group objects.", + "description": "A list of group objects.", "items": { "$ref": "Group" }, @@ -6439,7 +6439,7 @@ "type": "string" }, "members": { - "description": "List of member objects.", + "description": "A list of member objects.", "items": { "$ref": "Member" }, @@ -6542,7 +6542,7 @@ "type": "string" }, "email": { - "description": "List of owner's email addresses. If your application needs the current list of user emails, use the [get](/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. For additional information, see the [retrieve a user](/admin-sdk/directory/v1/guides/manage-users#get_user) method.", + "description": "The list of the owner's email addresses. If your application needs the current list of user emails, use the [get](/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. For additional information, see the [retrieve a user](/admin-sdk/directory/v1/guides/manage-users#get_user) method.", "items": { "type": "string" }, @@ -6604,7 +6604,7 @@ "type": "string" }, "name": { - "description": "List of the owner's user names. If your application needs the current list of device owner names, use the [get](/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. For more information about retrieving mobile device user information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-users#get_user).", + "description": "The list of the owner's user names. If your application needs the current list of device owner names, use the [get](/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. For more information about retrieving mobile device user information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-users#get_user).", "items": { "type": "string" }, @@ -6619,7 +6619,7 @@ "type": "string" }, "otherAccountsInfo": { - "description": "List of accounts added on device (Read-only)", + "description": "The list of accounts added on device (Read-only)", "items": { "type": "string" }, @@ -6701,7 +6701,7 @@ "type": "string" }, "mobiledevices": { - "description": "List of Mobile Device objects.", + "description": "A list of Mobile Device objects.", "items": { "$ref": "MobileDevice" }, @@ -6776,7 +6776,7 @@ "type": "string" }, "organizationUnits": { - "description": "List of organizational unit objects.", + "description": "A list of organizational unit objects.", "items": { "$ref": "OrgUnit" }, @@ -6805,7 +6805,7 @@ "The update state is unspecified.", "There is an update pending but it hasn't started.", "The pending update is being downloaded.", - "The device is ready to install the update, but it just needs to reboot." + "The device is ready to install the update, but must reboot." ], "type": "string" }, @@ -7354,7 +7354,7 @@ "type": "string" }, "schemas": { - "description": "List of UserSchema objects.", + "description": "A list of UserSchema objects.", "items": { "$ref": "Schema" }, @@ -7434,7 +7434,7 @@ "id": "User", "properties": { "addresses": { - "description": "A list of the user's addresses. The maximum allowed data size for this field is 10Kb.", + "description": "The list of the user's addresses. The maximum allowed data size for this field is 10Kb.", "type": "any" }, "agreedToTerms": { @@ -7443,7 +7443,7 @@ "type": "boolean" }, "aliases": { - "description": "Output only. A list of the user's alias email addresses.", + "description": "Output only. The list of the user's alias email addresses.", "items": { "type": "string" }, @@ -7482,7 +7482,7 @@ "type": "string" }, "emails": { - "description": "A list of the user's email addresses. The maximum allowed data size for this field is 10Kb.", + "description": "The list of the user's email addresses. The maximum allowed data size for this field is 10Kb.", "type": "any" }, "etag": { @@ -7491,7 +7491,7 @@ "type": "string" }, "externalIds": { - "description": "A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.", + "description": "The list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.", "type": "any" }, "gender": { @@ -7507,7 +7507,7 @@ "type": "string" }, "ims": { - "description": "The user's Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.", + "description": "The list of the user's Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.", "type": "any" }, "includeInGlobalAddressList": { @@ -7544,7 +7544,7 @@ "type": "boolean" }, "keywords": { - "description": "The user's keywords. The maximum allowed data size for this field is 1Kb.", + "description": "The list of the user's keywords. The maximum allowed data size for this field is 1Kb.", "type": "any" }, "kind": { @@ -7577,7 +7577,7 @@ "description": "Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1Kb." }, "nonEditableAliases": { - "description": "Output only. List of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain.", + "description": "Output only. The list of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain.", "items": { "type": "string" }, @@ -7593,7 +7593,7 @@ "type": "string" }, "organizations": { - "description": "A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.", + "description": "The list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.", "type": "any" }, "password": { @@ -7606,11 +7606,11 @@ "type": "string" }, "phones": { - "description": "A list of the user's phone numbers. The maximum allowed data size for this field is 1Kb.", + "description": "The list of the user's phone numbers. The maximum allowed data size for this field is 1Kb.", "type": "any" }, "posixAccounts": { - "description": "A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.", + "description": "The list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.", "type": "any" }, "primaryEmail": { @@ -7631,7 +7631,7 @@ "type": "string" }, "relations": { - "description": "A list of the user's relationships to other users. The maximum allowed data size for this field is 2Kb.", + "description": "The list of the user's relationships to other users. The maximum allowed data size for this field is 2Kb.", "type": "any" }, "sshPublicKeys": { @@ -7955,6 +7955,10 @@ "UserName": { "id": "UserName", "properties": { + "displayName": { + "description": "The user's display name. Limit: 256 characters.", + "type": "string" + }, "familyName": { "annotations": { "required": [ @@ -8249,7 +8253,7 @@ "type": "string" }, "users": { - "description": "List of user objects.", + "description": "A list of user objects.", "items": { "$ref": "User" }, @@ -8283,7 +8287,7 @@ "type": "object" }, "VerificationCodes": { - "description": "JSON response template for List verification codes operation in Directory API.", + "description": "JSON response template for list verification codes operation in Directory API.", "id": "VerificationCodes", "properties": { "etag": { diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index 0f6133cc97a..fceb54a6292 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -1526,7 +1526,7 @@ func (s *Channel) MarshalJSON() ([]byte, error) { // common API tasks, see the Developer's Guide // (/admin-sdk/directory/v1/guides/manage-chrome-devices). type ChromeOsDevice struct { - // ActiveTimeRanges: List of active time ranges (Read-only). + // ActiveTimeRanges: A list of active time ranges (Read-only). ActiveTimeRanges []*ChromeOsDeviceActiveTimeRanges `json:"activeTimeRanges,omitempty"` // AnnotatedAssetId: The asset identifier as noted by an administrator @@ -1561,7 +1561,7 @@ type ChromeOsDevice struct { // (Read-only) CpuStatusReports []*ChromeOsDeviceCpuStatusReports `json:"cpuStatusReports,omitempty"` - // DeviceFiles: List of device files to download (Read-only) + // DeviceFiles: A list of device files to download (Read-only) DeviceFiles []*ChromeOsDeviceDeviceFiles `json:"deviceFiles,omitempty"` // DeviceId: The unique ID of the Chrome device. @@ -1681,12 +1681,12 @@ type ChromeOsDevice struct { // PlatformVersion: The Chrome device's platform version. PlatformVersion string `json:"platformVersion,omitempty"` - // RecentUsers: List of recent device users, in descending order, by + // RecentUsers: A list of recent device users, in descending order, by // last login time. RecentUsers []*ChromeOsDeviceRecentUsers `json:"recentUsers,omitempty"` - // ScreenshotFiles: List of screenshot files to download. Type is always - // "SCREENSHOT_FILE". (Read-only) + // ScreenshotFiles: A list of screenshot files to download. Type is + // always "SCREENSHOT_FILE". (Read-only) ScreenshotFiles []*ChromeOsDeviceScreenshotFiles `json:"screenshotFiles,omitempty"` // SerialNumber: The Chrome device serial number entered when the device @@ -1883,7 +1883,7 @@ func (s *ChromeOsDeviceCpuInfoLogicalCpusCStates) MarshalJSON() ([]byte, error) } type ChromeOsDeviceCpuStatusReports struct { - // CpuTemperatureInfo: List of CPU temperature samples. + // CpuTemperatureInfo: A list of CPU temperature samples. CpuTemperatureInfo []*ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo `json:"cpuTemperatureInfo,omitempty"` CpuUtilizationPercentageInfo []int64 `json:"cpuUtilizationPercentageInfo,omitempty"` @@ -2072,8 +2072,8 @@ func (s *ChromeOsDeviceLastKnownNetwork) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChromeOsDeviceRecentUsers: List of recent device users, in descending -// order, by last login time. +// ChromeOsDeviceRecentUsers: A list of recent device users, in +// descending order, by last login time. type ChromeOsDeviceRecentUsers struct { // Email: The user's email address. This is only present if the user // type is `USER_TYPE_MANAGED`. @@ -2216,8 +2216,8 @@ func (s *ChromeOsDeviceTpmVersionInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChromeOsDeviceAction: The data regarding an action to update the -// status of a Chrome OS device. +// ChromeOsDeviceAction: Data about an update to the status of a Chrome +// OS device. type ChromeOsDeviceAction struct { // Action: Action to be taken on the Chrome OS device. Action string `json:"action,omitempty"` @@ -2252,7 +2252,7 @@ func (s *ChromeOsDeviceAction) MarshalJSON() ([]byte, error) { } type ChromeOsDevices struct { - // Chromeosdevices: List of Chrome OS Device objects. + // Chromeosdevices: A list of Chrome OS Device objects. Chromeosdevices []*ChromeOsDevice `json:"chromeosdevices,omitempty"` // Etag: ETag of the resource. @@ -2781,7 +2781,7 @@ func (s *DomainAlias) MarshalJSON() ([]byte, error) { } type DomainAliases struct { - // DomainAliases: List of domain alias objects. + // DomainAliases: A list of domain alias objects. DomainAliases []*DomainAlias `json:"domainAliases,omitempty"` // Etag: ETag of the resource. @@ -2822,7 +2822,7 @@ type Domains struct { // (https://en.wikipedia.org/wiki/Epoch_time) format. (Read-only). CreationTime int64 `json:"creationTime,omitempty,string"` - // DomainAliases: List of domain alias objects. (Read-only) + // DomainAliases: A list of domain alias objects. (Read-only) DomainAliases []*DomainAlias `json:"domainAliases,omitempty"` // DomainName: The domain name of the customer. @@ -2868,7 +2868,7 @@ func (s *Domains) MarshalJSON() ([]byte, error) { } type Domains2 struct { - // Domains: List of domain objects. + // Domains: A list of domain objects. Domains []*Domains `json:"domains,omitempty"` // Etag: ETag of the resource. @@ -3187,7 +3187,7 @@ type Group struct { // an administrator rather than a user. AdminCreated bool `json:"adminCreated,omitempty"` - // Aliases: Read-only. A list of a group's alias email addresses. To + // Aliases: Read-only. The list of a group's alias email addresses. To // add, update, or remove a group's aliases, use the `groups.aliases` // methods. If edited in a group's POST or PUT request, the edit is // ignored. @@ -3228,7 +3228,7 @@ type Group struct { // Name: The group's display name. Name string `json:"name,omitempty"` - // NonEditableAliases: Read-only. A list of the group's non-editable + // NonEditableAliases: Read-only. The list of the group's non-editable // alias email addresses that are outside of the account's primary // domain or subdomains. These are functioning email addresses used by // the group. This is a read-only property returned in the API's @@ -3309,7 +3309,7 @@ type Groups struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` - // Groups: List of group objects. + // Groups: A list of group objects. Groups []*Group `json:"groups,omitempty"` // Kind: Kind of resource this is. @@ -3536,7 +3536,7 @@ type Members struct { // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` - // Members: List of member objects. + // Members: A list of member objects. Members []*Member `json:"members,omitempty"` // NextPageToken: Token used to access next page of this result. @@ -3652,8 +3652,8 @@ type MobileDevice struct { // DevicePasswordStatus: DevicePasswordStatus (Read-only) DevicePasswordStatus string `json:"devicePasswordStatus,omitempty"` - // Email: List of owner's email addresses. If your application needs the - // current list of user emails, use the get + // Email: The list of the owner's email addresses. If your application + // needs the current list of user emails, use the get // (/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. // For additional information, see the retrieve a user // (/admin-sdk/directory/v1/guides/manage-users#get_user) method. @@ -3712,8 +3712,8 @@ type MobileDevice struct { // vice). Model string `json:"model,omitempty"` - // Name: List of the owner's user names. If your application needs the - // current list of device owner names, use the get + // Name: The list of the owner's user names. If your application needs + // the current list of device owner names, use the get // (/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. // For more information about retrieving mobile device user information, // see the Developer's Guide @@ -3732,7 +3732,7 @@ type MobileDevice struct { // vice). Os string `json:"os,omitempty"` - // OtherAccountsInfo: List of accounts added on device (Read-only) + // OtherAccountsInfo: The list of accounts added on device (Read-only) OtherAccountsInfo []string `json:"otherAccountsInfo,omitempty"` // Privilege: DMAgentPermission (Read-only) @@ -3882,7 +3882,7 @@ type MobileDevices struct { // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` - // Mobiledevices: List of Mobile Device objects. + // Mobiledevices: A list of Mobile Device objects. Mobiledevices []*MobileDevice `json:"mobiledevices,omitempty"` // NextPageToken: Token used to access next page of this result. @@ -4011,7 +4011,7 @@ type OrgUnits struct { // is `admin#directory#orgUnits`. Kind string `json:"kind,omitempty"` - // OrganizationUnits: List of organizational unit objects. + // OrganizationUnits: A list of organizational unit objects. OrganizationUnits []*OrgUnit `json:"organizationUnits,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -4056,7 +4056,7 @@ type OsUpdateStatus struct { // "updateStateDownloadInProgress" - The pending update is being // downloaded. // "updateStateNeedReboot" - The device is ready to install the - // update, but it just needs to reboot. + // update, but must reboot. State string `json:"state,omitempty"` // TargetKioskAppVersion: New required platform version from the pending @@ -4881,7 +4881,7 @@ type Schemas struct { // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` - // Schemas: List of UserSchema objects. + // Schemas: A list of UserSchema objects. Schemas []*Schema `json:"schemas,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -5016,7 +5016,7 @@ func (s *Tokens) MarshalJSON() ([]byte, error) { // and the User Aliases Developer's Guide // (/admin-sdk/directory/v1/guides/manage-user-aliases.html). type User struct { - // Addresses: A list of the user's addresses. The maximum allowed data + // Addresses: The list of the user's addresses. The maximum allowed data // size for this field is 10Kb. Addresses interface{} `json:"addresses,omitempty"` @@ -5025,7 +5025,7 @@ type User struct { // agreement. AgreedToTerms bool `json:"agreedToTerms,omitempty"` - // Aliases: Output only. A list of the user's alias email addresses. + // Aliases: Output only. The list of the user's alias email addresses. Aliases []string `json:"aliases,omitempty"` // Archived: Indicates if user is archived. @@ -5056,15 +5056,16 @@ type User struct { DeletionTime string `json:"deletionTime,omitempty"` - // Emails: A list of the user's email addresses. The maximum allowed + // Emails: The list of the user's email addresses. The maximum allowed // data size for this field is 10Kb. Emails interface{} `json:"emails,omitempty"` // Etag: Output only. ETag of the resource. Etag string `json:"etag,omitempty"` - // ExternalIds: A list of external IDs for the user, such as an employee - // or network ID. The maximum allowed data size for this field is 2Kb. + // ExternalIds: The list of external IDs for the user, such as an + // employee or network ID. The maximum allowed data size for this field + // is 2Kb. ExternalIds interface{} `json:"externalIds,omitempty"` // Gender: The user's gender. The maximum allowed data size for this @@ -5085,10 +5086,10 @@ type User struct { // request URI's `userKey`. Id string `json:"id,omitempty"` - // Ims: The user's Instant Messenger (IM) accounts. A user account can - // have multiple ims properties. But, only one of these ims properties - // can be the primary IM contact. The maximum allowed data size for this - // field is 2Kb. + // Ims: The list of the user's Instant Messenger (IM) accounts. A user + // account can have multiple ims properties. But, only one of these ims + // properties can be the primary IM contact. The maximum allowed data + // size for this field is 2Kb. Ims interface{} `json:"ims,omitempty"` // IncludeInGlobalAddressList: Indicates if the user's profile is @@ -5135,8 +5136,8 @@ type User struct { // assigned a Gmail license. IsMailboxSetup bool `json:"isMailboxSetup,omitempty"` - // Keywords: The user's keywords. The maximum allowed data size for this - // field is 1Kb. + // Keywords: The list of the user's keywords. The maximum allowed data + // size for this field is 1Kb. Keywords interface{} `json:"keywords,omitempty"` // Kind: Output only. The type of the API resource. For Users resources, @@ -5165,7 +5166,7 @@ type User struct { // size for this field is 1Kb. Name *UserName `json:"name,omitempty"` - // NonEditableAliases: Output only. List of the user's non-editable + // NonEditableAliases: Output only. The list of the user's non-editable // alias email addresses. These are typically outside the account's // primary domain or sub-domain. NonEditableAliases []string `json:"nonEditableAliases,omitempty"` @@ -5178,18 +5179,18 @@ type User struct { // represented as a forward slash (`/`). OrgUnitPath string `json:"orgUnitPath,omitempty"` - // Organizations: A list of organizations the user belongs to. The + // Organizations: The list of organizations the user belongs to. The // maximum allowed data size for this field is 10Kb. Organizations interface{} `json:"organizations,omitempty"` // Password: User's password Password string `json:"password,omitempty"` - // Phones: A list of the user's phone numbers. The maximum allowed data - // size for this field is 1Kb. + // Phones: The list of the user's phone numbers. The maximum allowed + // data size for this field is 1Kb. Phones interface{} `json:"phones,omitempty"` - // PosixAccounts: A list of POSIX + // PosixAccounts: The list of POSIX // (https://www.opengroup.org/austin/papers/posix_faq.html) account // information for the user. PosixAccounts interface{} `json:"posixAccounts,omitempty"` @@ -5207,7 +5208,7 @@ type User struct { // *+16506661212*. RecoveryPhone string `json:"recoveryPhone,omitempty"` - // Relations: A list of the user's relationships to other users. The + // Relations: The list of the user's relationships to other users. The // maximum allowed data size for this field is 2Kb. Relations interface{} `json:"relations,omitempty"` @@ -5734,6 +5735,9 @@ func (s *UserMakeAdmin) MarshalJSON() ([]byte, error) { } type UserName struct { + // DisplayName: The user's display name. Limit: 256 characters. + DisplayName string `json:"displayName,omitempty"` + // FamilyName: The user's last name. Required when creating a user // account. FamilyName string `json:"familyName,omitempty"` @@ -5746,7 +5750,7 @@ type UserName struct { // account. GivenName string `json:"givenName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FamilyName") to + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -5754,10 +5758,10 @@ type UserName struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FamilyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -6148,7 +6152,7 @@ type Users struct { // of Push Response) TriggerEvent string `json:"trigger_event,omitempty"` - // Users: List of user objects. + // Users: A list of user objects. Users []*User `json:"users,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -6219,7 +6223,7 @@ func (s *VerificationCode) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// VerificationCodes: JSON response template for List verification codes +// VerificationCodes: JSON response template for list verification codes // operation in Directory API. type VerificationCodes struct { // Etag: ETag of the resource. @@ -7142,7 +7146,7 @@ func (r *ChromeosdevicesService) List(customerId string) *ChromeosdevicesListCal // IncludeChildOrgunits sets the optional parameter // "includeChildOrgunits": Return devices from all child orgunits, as -// well as the specified org unit. If this is set to true 'orgUnitPath' +// well as the specified org unit. If this is set to true, 'orgUnitPath' // must be provided. func (c *ChromeosdevicesListCall) IncludeChildOrgunits(includeChildOrgunits bool) *ChromeosdevicesListCall { c.urlParams_.Set("includeChildOrgunits", fmt.Sprint(includeChildOrgunits)) @@ -7350,7 +7354,7 @@ func (c *ChromeosdevicesListCall) Do(opts ...googleapi.CallOption) (*ChromeOsDev // "type": "string" // }, // "includeChildOrgunits": { - // "description": "Return devices from all child orgunits, as well as the specified org unit. If this is set to true 'orgUnitPath' must be provided.", + // "description": "Return devices from all child orgunits, as well as the specified org unit. If this is set to true, 'orgUnitPath' must be provided.", // "location": "query", // "type": "boolean" // }, diff --git a/admin/reports/v1/admin-api.json b/admin/reports/v1/admin-api.json index ab74f039fad..a1edde55e97 100644 --- a/admin/reports/v1/admin-api.json +++ b/admin/reports/v1/admin-api.json @@ -197,7 +197,7 @@ "type": "string" }, "filters": { - "description": "The `filters` query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form `parameter1 name[parameter1 value],parameter2 name[parameter2 value],...` These event parameters are associated with a specific `eventName`. An empty report is returned if the filtered request's parameter does not belong to the `eventName`. For more information about `eventName` parameters, see the list of event names for various applications above in `applicationName`. In the following Admin Activity example, the \u003c\u003e operator is URL-encoded in the request's query string (%3C%3E): GET...\u0026eventName=CHANGE_CALENDAR_SETTING \u0026filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's `doc_id` parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (\u003c\u003e) relational operator. In the first example, the report returns each edited document's `doc_id`. In the second example, the report returns each viewed document's `doc_id` that equals the value 12345 and does not return any viewed document's which have a `doc_id` value of 98765. The \u003c\u003e operator is URL-encoded in the request's query string (%3C%3E): GET...\u0026eventName=edit\u0026filters=doc_id GET...\u0026eventName=view\u0026filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - `==` - 'equal to'. - `\u003c\u003e` - 'not equal to'. It is URL-encoded (%3C%3E). - `\u003c` - 'less than'. It is URL-encoded (%3C). - `\u003c=` - 'less than or equal to'. It is URL-encoded (%3C=). - `\u003e` - 'greater than'. It is URL-encoded (%3E). - `\u003e=` - 'greater than or equal to'. It is URL-encoded (%3E=). *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned. ", + "description": "The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `\u003c\u003e` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...\u0026eventName=edit\u0026filters=doc_id==12345 GET...\u0026eventName=edit\u0026filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `\u003c\u003e`—'not equal to'. Must be URL-encoded (%3C%3E). * `\u003c`—'less than'. Must be URL-encoded (%3C). * `\u003c=`—'less than or equal to'. Must be URL-encoded (%3C=). * `\u003e`—'greater than'. Must be URL-encoded (%3E). * `\u003e=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned.", "location": "query", "pattern": "(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+,)*(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+)", "type": "string" @@ -336,7 +336,7 @@ "type": "string" }, "filters": { - "description": "The `filters` query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form `parameter1 name[parameter1 value],parameter2 name[parameter2 value],...` These event parameters are associated with a specific `eventName`. An empty report is returned if the filtered request's parameter does not belong to the `eventName`. For more information about `eventName` parameters, see the list of event names for various applications above in `applicationName`. In the following Admin Activity example, the \u003c\u003e operator is URL-encoded in the request's query string (%3C%3E): GET...\u0026eventName=CHANGE_CALENDAR_SETTING \u0026filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's `doc_id` parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (\u003c\u003e) relational operator. In the first example, the report returns each edited document's `doc_id`. In the second example, the report returns each viewed document's `doc_id` that equals the value 12345 and does not return any viewed document's which have a `doc_id` value of 98765. The \u003c\u003e operator is URL-encoded in the request's query string (%3C%3E): GET...\u0026eventName=edit\u0026filters=doc_id GET...\u0026eventName=view\u0026filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - `==` - 'equal to'. - `\u003c\u003e` - 'not equal to'. It is URL-encoded (%3C%3E). - `\u003c` - 'less than'. It is URL-encoded (%3C). - `\u003c=` - 'less than or equal to'. It is URL-encoded (%3C=). - `\u003e` - 'greater than'. It is URL-encoded (%3E). - `\u003e=` - 'greater than or equal to'. It is URL-encoded (%3E=). *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned. ", + "description": "The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `\u003c\u003e` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...\u0026eventName=edit\u0026filters=doc_id==12345 GET...\u0026eventName=edit\u0026filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `\u003c\u003e`—'not equal to'. Must be URL-encoded (%3C%3E). * `\u003c`—'less than'. Must be URL-encoded (%3C). * `\u003c=`—'less than or equal to'. Must be URL-encoded (%3C=). * `\u003e`—'greater than'. Must be URL-encoded (%3E). * `\u003e=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned.", "location": "query", "pattern": "(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+,)*(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+)", "type": "string" @@ -623,7 +623,7 @@ } } }, - "revision": "20211207", + "revision": "20221018", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Activities": { diff --git a/admin/reports/v1/admin-gen.go b/admin/reports/v1/admin-gen.go index 8c14ef922ef..b224331f00f 100644 --- a/admin/reports/v1/admin-gen.go +++ b/admin/reports/v1/admin-gen.go @@ -1000,39 +1000,37 @@ func (c *ActivitiesListCall) EventName(eventName string) *ActivitiesListCall { } // Filters sets the optional parameter "filters": The `filters` query -// string is a comma-separated list. The list is composed of event -// parameters that are manipulated by relational operators. Event -// parameters are in the form `parameter1 name[parameter1 -// value],parameter2 name[parameter2 value],...` These event parameters -// are associated with a specific `eventName`. An empty report is -// returned if the filtered request's parameter does not belong to the -// `eventName`. For more information about `eventName` parameters, see -// the list of event names for various applications above in -// `applicationName`. In the following Admin Activity example, the <> -// operator is URL-encoded in the request's query string (%3C%3E): -// GET...&eventName=CHANGE_CALENDAR_SETTING -// &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive -// example, the list can be a view or edit event's `doc_id` parameter -// with a value that is manipulated by an 'equal to' (==) or 'not equal -// to' (<>) relational operator. In the first example, the report -// returns each edited document's `doc_id`. In the second example, the -// report returns each viewed document's `doc_id` that equals the value -// 12345 and does not return any viewed document's which have a `doc_id` -// value of 98765. The <> operator is URL-encoded in the request's query -// string (%3C%3E): GET...&eventName=edit&filters=doc_id -// GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The -// relational operators include: - `==` - 'equal to'. - `<>` - 'not -// equal to'. It is URL-encoded (%3C%3E). - `<` - 'less than'. It is -// URL-encoded (%3C). - `<=` - 'less than or equal to'. It is -// URL-encoded (%3C=). - `>` - 'greater than'. It is URL-encoded (%3E). -// - `>=` - 'greater than or equal to'. It is URL-encoded (%3E=). -// *Note:* The API doesn't accept multiple values of a parameter. If a -// particular parameter is supplied more than once in the API request, -// the API only accepts the last value of that request parameter. In -// addition, if an invalid request parameter is supplied in the API -// request, the API ignores that request parameter and returns the -// response corresponding to the remaining valid request parameters. If -// no parameters are requested, all parameters are returned. +// string is a comma-separated list composed of event parameters +// manipulated by relational operators. Event parameters are in the form +// `{parameter1 name}{relational operator}{parameter1 value},{parameter2 +// name}{relational operator}{parameter2 value},...` These event +// parameters are associated with a specific `eventName`. An empty +// report is returned if the request's parameter doesn't belong to the +// `eventName`. For more information about the available `eventName` +// fields for each application and their associated parameters, go to +// the ApplicationName (#applicationname) table, then click through to +// the Activity Events page in the Appendix for the application you +// want. In the following Drive activity examples, the returned list +// consists of all `edit` events where the `doc_id` parameter value +// matches the conditions defined by the relational operator. In the +// first example, the request returns all edited documents with a +// `doc_id` value equal to `12345`. In the second example, the report +// returns any edited documents where the `doc_id` value is not equal to +// `98765`. The `<>` operator is URL-encoded in the request's query +// string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345 +// GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query +// supports these relational operators: * `==`—'equal to'. * +// `<>`—'not equal to'. Must be URL-encoded (%3C%3E). * `<`—'less +// than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. +// Must be URL-encoded (%3C=). * `>`—'greater than'. Must be +// URL-encoded (%3E). * `>=`—'greater than or equal to'. Must be +// URL-encoded (%3E=). **Note:** The API doesn't accept multiple values +// of the same parameter. If a parameter is supplied more than once in +// the API request, the API only accepts the last value of that +// parameter. In addition, if an invalid parameter is supplied in the +// API request, the API ignores that parameter and returns the response +// corresponding to the remaining valid parameters. If no parameters are +// requested, all parameters are returned. func (c *ActivitiesListCall) Filters(filters string) *ActivitiesListCall { c.urlParams_.Set("filters", filters) return c @@ -1274,7 +1272,7 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*Activities, erro // "type": "string" // }, // "filters": { - // "description": "The `filters` query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form `parameter1 name[parameter1 value],parameter2 name[parameter2 value],...` These event parameters are associated with a specific `eventName`. An empty report is returned if the filtered request's parameter does not belong to the `eventName`. For more information about `eventName` parameters, see the list of event names for various applications above in `applicationName`. In the following Admin Activity example, the \u003c\u003e operator is URL-encoded in the request's query string (%3C%3E): GET...\u0026eventName=CHANGE_CALENDAR_SETTING \u0026filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's `doc_id` parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (\u003c\u003e) relational operator. In the first example, the report returns each edited document's `doc_id`. In the second example, the report returns each viewed document's `doc_id` that equals the value 12345 and does not return any viewed document's which have a `doc_id` value of 98765. The \u003c\u003e operator is URL-encoded in the request's query string (%3C%3E): GET...\u0026eventName=edit\u0026filters=doc_id GET...\u0026eventName=view\u0026filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - `==` - 'equal to'. - `\u003c\u003e` - 'not equal to'. It is URL-encoded (%3C%3E). - `\u003c` - 'less than'. It is URL-encoded (%3C). - `\u003c=` - 'less than or equal to'. It is URL-encoded (%3C=). - `\u003e` - 'greater than'. It is URL-encoded (%3E). - `\u003e=` - 'greater than or equal to'. It is URL-encoded (%3E=). *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned. ", + // "description": "The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `\u003c\u003e` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...\u0026eventName=edit\u0026filters=doc_id==12345 GET...\u0026eventName=edit\u0026filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `\u003c\u003e`—'not equal to'. Must be URL-encoded (%3C%3E). * `\u003c`—'less than'. Must be URL-encoded (%3C). * `\u003c=`—'less than or equal to'. Must be URL-encoded (%3C=). * `\u003e`—'greater than'. Must be URL-encoded (%3E). * `\u003e=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned.", // "location": "query", // "pattern": "(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+,)*(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+)", // "type": "string" @@ -1439,39 +1437,37 @@ func (c *ActivitiesWatchCall) EventName(eventName string) *ActivitiesWatchCall { } // Filters sets the optional parameter "filters": The `filters` query -// string is a comma-separated list. The list is composed of event -// parameters that are manipulated by relational operators. Event -// parameters are in the form `parameter1 name[parameter1 -// value],parameter2 name[parameter2 value],...` These event parameters -// are associated with a specific `eventName`. An empty report is -// returned if the filtered request's parameter does not belong to the -// `eventName`. For more information about `eventName` parameters, see -// the list of event names for various applications above in -// `applicationName`. In the following Admin Activity example, the <> -// operator is URL-encoded in the request's query string (%3C%3E): -// GET...&eventName=CHANGE_CALENDAR_SETTING -// &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive -// example, the list can be a view or edit event's `doc_id` parameter -// with a value that is manipulated by an 'equal to' (==) or 'not equal -// to' (<>) relational operator. In the first example, the report -// returns each edited document's `doc_id`. In the second example, the -// report returns each viewed document's `doc_id` that equals the value -// 12345 and does not return any viewed document's which have a `doc_id` -// value of 98765. The <> operator is URL-encoded in the request's query -// string (%3C%3E): GET...&eventName=edit&filters=doc_id -// GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The -// relational operators include: - `==` - 'equal to'. - `<>` - 'not -// equal to'. It is URL-encoded (%3C%3E). - `<` - 'less than'. It is -// URL-encoded (%3C). - `<=` - 'less than or equal to'. It is -// URL-encoded (%3C=). - `>` - 'greater than'. It is URL-encoded (%3E). -// - `>=` - 'greater than or equal to'. It is URL-encoded (%3E=). -// *Note:* The API doesn't accept multiple values of a parameter. If a -// particular parameter is supplied more than once in the API request, -// the API only accepts the last value of that request parameter. In -// addition, if an invalid request parameter is supplied in the API -// request, the API ignores that request parameter and returns the -// response corresponding to the remaining valid request parameters. If -// no parameters are requested, all parameters are returned. +// string is a comma-separated list composed of event parameters +// manipulated by relational operators. Event parameters are in the form +// `{parameter1 name}{relational operator}{parameter1 value},{parameter2 +// name}{relational operator}{parameter2 value},...` These event +// parameters are associated with a specific `eventName`. An empty +// report is returned if the request's parameter doesn't belong to the +// `eventName`. For more information about the available `eventName` +// fields for each application and their associated parameters, go to +// the ApplicationName (#applicationname) table, then click through to +// the Activity Events page in the Appendix for the application you +// want. In the following Drive activity examples, the returned list +// consists of all `edit` events where the `doc_id` parameter value +// matches the conditions defined by the relational operator. In the +// first example, the request returns all edited documents with a +// `doc_id` value equal to `12345`. In the second example, the report +// returns any edited documents where the `doc_id` value is not equal to +// `98765`. The `<>` operator is URL-encoded in the request's query +// string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345 +// GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query +// supports these relational operators: * `==`—'equal to'. * +// `<>`—'not equal to'. Must be URL-encoded (%3C%3E). * `<`—'less +// than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. +// Must be URL-encoded (%3C=). * `>`—'greater than'. Must be +// URL-encoded (%3E). * `>=`—'greater than or equal to'. Must be +// URL-encoded (%3E=). **Note:** The API doesn't accept multiple values +// of the same parameter. If a parameter is supplied more than once in +// the API request, the API only accepts the last value of that +// parameter. In addition, if an invalid parameter is supplied in the +// API request, the API ignores that parameter and returns the response +// corresponding to the remaining valid parameters. If no parameters are +// requested, all parameters are returned. func (c *ActivitiesWatchCall) Filters(filters string) *ActivitiesWatchCall { c.urlParams_.Set("filters", filters) return c @@ -1705,7 +1701,7 @@ func (c *ActivitiesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) // "type": "string" // }, // "filters": { - // "description": "The `filters` query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form `parameter1 name[parameter1 value],parameter2 name[parameter2 value],...` These event parameters are associated with a specific `eventName`. An empty report is returned if the filtered request's parameter does not belong to the `eventName`. For more information about `eventName` parameters, see the list of event names for various applications above in `applicationName`. In the following Admin Activity example, the \u003c\u003e operator is URL-encoded in the request's query string (%3C%3E): GET...\u0026eventName=CHANGE_CALENDAR_SETTING \u0026filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's `doc_id` parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (\u003c\u003e) relational operator. In the first example, the report returns each edited document's `doc_id`. In the second example, the report returns each viewed document's `doc_id` that equals the value 12345 and does not return any viewed document's which have a `doc_id` value of 98765. The \u003c\u003e operator is URL-encoded in the request's query string (%3C%3E): GET...\u0026eventName=edit\u0026filters=doc_id GET...\u0026eventName=view\u0026filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - `==` - 'equal to'. - `\u003c\u003e` - 'not equal to'. It is URL-encoded (%3C%3E). - `\u003c` - 'less than'. It is URL-encoded (%3C). - `\u003c=` - 'less than or equal to'. It is URL-encoded (%3C=). - `\u003e` - 'greater than'. It is URL-encoded (%3E). - `\u003e=` - 'greater than or equal to'. It is URL-encoded (%3E=). *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned. ", + // "description": "The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `\u003c\u003e` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...\u0026eventName=edit\u0026filters=doc_id==12345 GET...\u0026eventName=edit\u0026filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `\u003c\u003e`—'not equal to'. Must be URL-encoded (%3C%3E). * `\u003c`—'less than'. Must be URL-encoded (%3C). * `\u003c=`—'less than or equal to'. Must be URL-encoded (%3C=). * `\u003e`—'greater than'. Must be URL-encoded (%3E). * `\u003e=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned.", // "location": "query", // "pattern": "(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+,)*(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+)", // "type": "string" diff --git a/alertcenter/v1beta1/alertcenter-api.json b/alertcenter/v1beta1/alertcenter-api.json index 0ae1b2b8046..33ea57001f0 100644 --- a/alertcenter/v1beta1/alertcenter-api.json +++ b/alertcenter/v1beta1/alertcenter-api.json @@ -423,7 +423,7 @@ } } }, - "revision": "20221010", + "revision": "20221017", "rootUrl": "https://alertcenter.googleapis.com/", "schemas": { "AbuseDetected": { @@ -438,6 +438,10 @@ "description": "Displayed after Customer abuse detected - {alert_descriptor}. If missing, alert name will be displayed as Customer abuse detected.", "type": "string" }, + "nextSteps": { + "description": "Customizable text to display in the next steps section of the alert. Will be parsed as HTML to allow new paragraphs and hyperlinks.", + "type": "string" + }, "product": { "description": "Product that the abuse is originating from.", "type": "string" diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index c673a0b5115..627859be4ad 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -181,6 +181,11 @@ type AbuseDetected struct { // Customer abuse detected. AlertDescriptor string `json:"alertDescriptor,omitempty"` + // NextSteps: Customizable text to display in the next steps section of + // the alert. Will be parsed as HTML to allow new paragraphs and + // hyperlinks. + NextSteps string `json:"nextSteps,omitempty"` + // Product: Product that the abuse is originating from. Product string `json:"product,omitempty"` diff --git a/appengine/v1beta/appengine-api.json b/appengine/v1beta/appengine-api.json index 76a53d63485..6a8a22fba72 100644 --- a/appengine/v1beta/appengine-api.json +++ b/appengine/v1beta/appengine-api.json @@ -118,7 +118,13 @@ "httpMethod": "POST", "id": "appengine.apps.create", "parameterOrder": [], - "parameters": {}, + "parameters": { + "parent": { + "description": "The project and location in which the application should be created, specified in the format projects/*/locations/*", + "location": "query", + "type": "string" + } + }, "path": "v1beta/apps", "request": { "$ref": "Application" @@ -1593,9 +1599,306 @@ } } } + }, + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "appengine.projects.locations.get", + "parameterOrder": [ + "projectsId", + "locationsId" + ], + "parameters": { + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. Resource name for the location.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1beta/projects/{projectsId}/locations/{locationsId}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/appengine.admin", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1beta/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "appengine.projects.locations.list", + "parameterOrder": [ + "projectsId" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. The resource that owns the locations collection, if applicable.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1beta/projects/{projectsId}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/appengine.admin", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + }, + "resources": { + "applications": { + "methods": { + "create": { + "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications", + "httpMethod": "POST", + "id": "appengine.projects.locations.applications.create", + "parameterOrder": [ + "projectsId", + "locationsId" + ], + "parameters": { + "locationsId": { + "description": "Part of `parent`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `parent`. The project and location in which the application should be created, specified in the format projects/*/locations/*", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications", + "request": { + "$ref": "Application" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets information about an application.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", + "httpMethod": "GET", + "id": "appengine.projects.locations.applications.get", + "parameterOrder": [ + "projectsId", + "locationsId", + "applicationsId" + ], + "parameters": { + "applicationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. Name of the Application resource to get. Example: apps/myapp.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", + "response": { + "$ref": "Application" + }, + "scopes": [ + "https://www.googleapis.com/auth/appengine.admin", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "repair": { + "description": "Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B\"name\"%3A\"projects%2F-%2FserviceAccounts%2Funique_id\"%2C\"resource\"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", + "httpMethod": "POST", + "id": "appengine.projects.locations.applications.repair", + "parameterOrder": [ + "projectsId", + "locationsId", + "applicationsId" + ], + "parameters": { + "applicationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. Name of the application to repair. Example: apps/myapp", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", + "request": { + "$ref": "RepairApplicationRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "appengine.projects.locations.operations.get", + "parameterOrder": [ + "projectsId", + "locationsId", + "operationsId" + ], + "parameters": { + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "operationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. The name of the operation resource.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/appengine.admin", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "appengine.projects.locations.operations.list", + "parameterOrder": [ + "projectsId", + "locationsId" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. The name of the operation's parent resource.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/appengine.admin", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + } + } + } + } } }, - "revision": "20220826", + "revision": "20221017", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -1681,7 +1984,8 @@ "type": "string" }, "codeBucket": { - "description": "Google Cloud Storage bucket that can be used for storing files associated with this application. This bucket is associated with the application and can be used by the gcloud deployment commands.@OutputOnly", + "description": "Output only. Google Cloud Storage bucket that can be used for storing files associated with this application. This bucket is associated with the application and can be used by the gcloud deployment commands.@OutputOnly", + "readOnly": true, "type": "string" }, "databaseType": { @@ -1701,7 +2005,8 @@ "type": "string" }, "defaultBucket": { - "description": "Google Cloud Storage bucket that can be used by this application to store content.@OutputOnly", + "description": "Output only. Google Cloud Storage bucket that can be used by this application to store content.@OutputOnly", + "readOnly": true, "type": "string" }, "defaultCookieExpiration": { @@ -1710,7 +2015,8 @@ "type": "string" }, "defaultHostname": { - "description": "Hostname used to reach this application, as resolved by App Engine.@OutputOnly", + "description": "Output only. Hostname used to reach this application, as resolved by App Engine.@OutputOnly", + "readOnly": true, "type": "string" }, "dispatchRules": { @@ -1725,7 +2031,8 @@ "description": "The feature specific settings to be used in the application." }, "gcrDomain": { - "description": "The Google Container Registry domain used for storing managed build docker images for this application.", + "description": "Output only. The Google Container Registry domain used for storing managed build docker images for this application.", + "readOnly": true, "type": "string" }, "iap": { @@ -1740,7 +2047,8 @@ "type": "string" }, "name": { - "description": "Full path to the Application resource in the API. Example: apps/myapp.@OutputOnly", + "description": "Output only. Full path to the Application resource in the API. Example: apps/myapp.@OutputOnly", + "readOnly": true, "type": "string" }, "serviceAccount": { @@ -2405,7 +2713,8 @@ "type": "string" }, "oauth2ClientSecretSha256": { - "description": "Hex-encoded SHA-256 hash of the client secret.@OutputOnly", + "description": "Output only. Hex-encoded SHA-256 hash of the client secret.@OutputOnly", + "readOnly": true, "type": "string" } }, diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 21bf911daab..893b08011ea 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -132,6 +132,7 @@ func New(client *http.Client) (*APIService, error) { } s := &APIService{client: client, BasePath: basePath} s.Apps = NewAppsService(s) + s.Projects = NewProjectsService(s) return s, nil } @@ -141,6 +142,8 @@ type APIService struct { UserAgent string // optional additional User-Agent fragment Apps *AppsService + + Projects *ProjectsService } func (s *APIService) userAgent() string { @@ -279,6 +282,51 @@ type AppsServicesVersionsInstancesService struct { s *APIService } +func NewProjectsService(s *APIService) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *APIService + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Applications = NewProjectsLocationsApplicationsService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *APIService + + Applications *ProjectsLocationsApplicationsService + + Operations *ProjectsLocationsOperationsService +} + +func NewProjectsLocationsApplicationsService(s *APIService) *ProjectsLocationsApplicationsService { + rs := &ProjectsLocationsApplicationsService{s: s} + return rs +} + +type ProjectsLocationsApplicationsService struct { + s *APIService +} + +func NewProjectsLocationsOperationsService(s *APIService) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *APIService +} + // ApiConfigHandler: Google Cloud Endpoints // (https://cloud.google.com/endpoints) configuration for API handlers. type ApiConfigHandler struct { @@ -395,10 +443,10 @@ type Application struct { // Google Account. AuthDomain string `json:"authDomain,omitempty"` - // CodeBucket: Google Cloud Storage bucket that can be used for storing - // files associated with this application. This bucket is associated - // with the application and can be used by the gcloud deployment - // commands.@OutputOnly + // CodeBucket: Output only. Google Cloud Storage bucket that can be used + // for storing files associated with this application. This bucket is + // associated with the application and can be used by the gcloud + // deployment commands.@OutputOnly CodeBucket string `json:"codeBucket,omitempty"` // DatabaseType: The type of the Cloud Firestore or Cloud Datastore @@ -411,16 +459,16 @@ type Application struct { // "CLOUD_DATASTORE_COMPATIBILITY" - Cloud Firestore in Datastore Mode DatabaseType string `json:"databaseType,omitempty"` - // DefaultBucket: Google Cloud Storage bucket that can be used by this - // application to store content.@OutputOnly + // DefaultBucket: Output only. Google Cloud Storage bucket that can be + // used by this application to store content.@OutputOnly DefaultBucket string `json:"defaultBucket,omitempty"` // DefaultCookieExpiration: Cookie expiration policy for this // application. DefaultCookieExpiration string `json:"defaultCookieExpiration,omitempty"` - // DefaultHostname: Hostname used to reach this application, as resolved - // by App Engine.@OutputOnly + // DefaultHostname: Output only. Hostname used to reach this + // application, as resolved by App Engine.@OutputOnly DefaultHostname string `json:"defaultHostname,omitempty"` // DispatchRules: HTTP path dispatch rules for requests to the @@ -432,8 +480,8 @@ type Application struct { // application. FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"` - // GcrDomain: The Google Container Registry domain used for storing - // managed build docker images for this application. + // GcrDomain: Output only. The Google Container Registry domain used for + // storing managed build docker images for this application. GcrDomain string `json:"gcrDomain,omitempty"` Iap *IdentityAwareProxy `json:"iap,omitempty"` @@ -450,8 +498,8 @@ type Application struct { // (https://cloud.google.com/appengine/docs/locations). LocationId string `json:"locationId,omitempty"` - // Name: Full path to the Application resource in the API. Example: - // apps/myapp.@OutputOnly + // Name: Output only. Full path to the Application resource in the API. + // Example: apps/myapp.@OutputOnly Name string `json:"name,omitempty"` // ServiceAccount: The service account associated with the application. @@ -1710,8 +1758,8 @@ type IdentityAwareProxy struct { // returned in the oauth2_client_secret_sha256 field.@InputOnly Oauth2ClientSecret string `json:"oauth2ClientSecret,omitempty"` - // Oauth2ClientSecretSha256: Hex-encoded SHA-256 hash of the client - // secret.@OutputOnly + // Oauth2ClientSecretSha256: Output only. Hex-encoded SHA-256 hash of + // the client secret.@OutputOnly Oauth2ClientSecretSha256 string `json:"oauth2ClientSecretSha256,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to @@ -3952,6 +4000,14 @@ func (r *AppsService) Create(application *Application) *AppsCreateCall { return c } +// Parent sets the optional parameter "parent": The project and location +// in which the application should be created, specified in the format +// projects/*/locations/* +func (c *AppsCreateCall) Parent(parent string) *AppsCreateCall { + c.urlParams_.Set("parent", parent) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4045,7 +4101,13 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { // "httpMethod": "POST", // "id": "appengine.apps.create", // "parameterOrder": [], - // "parameters": {}, + // "parameters": { + // "parent": { + // "description": "The project and location in which the application should be created, specified in the format projects/*/locations/*", + // "location": "query", + // "type": "string" + // } + // }, // "path": "v1beta/apps", // "request": { // "$ref": "Application" @@ -10549,3 +10611,1271 @@ func (c *AppsServicesVersionsInstancesListCall) Pages(ctx context.Context, f fun c.PageToken(x.NextPageToken) } } + +// method id "appengine.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *APIService + projectsId string + locationsId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. Resource name for the location. +func (r *ProjectsLocationsService) Get(projectsId string, locationsId string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "appengine.projects.locations.get", + // "parameterOrder": [ + // "projectsId", + // "locationsId" + // ], + // "parameters": { + // "locationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "projectsId": { + // "description": "Part of `name`. Resource name for the location.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/projects/{projectsId}/locations/{locationsId}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/appengine.admin", + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "appengine.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *APIService + projectsId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - projectsId: Part of `name`. The resource that owns the locations +// collection, if applicable. +func (r *ProjectsLocationsService) List(projectsId string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the next_page_token field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1beta/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "appengine.projects.locations.list", + // "parameterOrder": [ + // "projectsId" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // }, + // "projectsId": { + // "description": "Part of `name`. The resource that owns the locations collection, if applicable.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/projects/{projectsId}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/appengine.admin", + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// 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. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "appengine.projects.locations.applications.create": + +type ProjectsLocationsApplicationsCreateCall struct { + s *APIService + projectsId string + locationsId string + application *Application + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an App Engine application for a Google Cloud Platform +// project. Required fields: id - The ID of the target Cloud Platform +// project. location - The region +// (https://cloud.google.com/appengine/docs/locations) where you want +// the App Engine application located.For more information about App +// Engine applications, see Managing Projects, Applications, and Billing +// (https://cloud.google.com/appengine/docs/standard/python/console/). +// +// - locationsId: Part of `parent`. See documentation of `projectsId`. +// - projectsId: Part of `parent`. The project and location in which the +// application should be created, specified in the format +// projects/*/locations/*. +func (r *ProjectsLocationsApplicationsService) Create(projectsId string, locationsId string, application *Application) *ProjectsLocationsApplicationsCreateCall { + c := &ProjectsLocationsApplicationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.application = application + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsApplicationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsApplicationsCreateCall) Context(ctx context.Context) *ProjectsLocationsApplicationsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsApplicationsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.application) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsApplicationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications", + // "httpMethod": "POST", + // "id": "appengine.projects.locations.applications.create", + // "parameterOrder": [ + // "projectsId", + // "locationsId" + // ], + // "parameters": { + // "locationsId": { + // "description": "Part of `parent`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "projectsId": { + // "description": "Part of `parent`. The project and location in which the application should be created, specified in the format projects/*/locations/*", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications", + // "request": { + // "$ref": "Application" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.projects.locations.applications.get": + +type ProjectsLocationsApplicationsGetCall struct { + s *APIService + projectsId string + locationsId string + applicationsId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about an application. +// +// - applicationsId: Part of `name`. See documentation of `projectsId`. +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. Name of the Application resource to +// get. Example: apps/myapp. +func (r *ProjectsLocationsApplicationsService) Get(projectsId string, locationsId string, applicationsId string) *ProjectsLocationsApplicationsGetCall { + c := &ProjectsLocationsApplicationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.applicationsId = applicationsId + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsApplicationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsApplicationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsApplicationsGetCall) Context(ctx context.Context) *ProjectsLocationsApplicationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsApplicationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + "applicationsId": c.applicationsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.get" call. +// Exactly one of *Application or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Application.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsApplicationsGetCall) Do(opts ...googleapi.CallOption) (*Application, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Application{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about an application.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", + // "httpMethod": "GET", + // "id": "appengine.projects.locations.applications.get", + // "parameterOrder": [ + // "projectsId", + // "locationsId", + // "applicationsId" + // ], + // "parameters": { + // "applicationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "locationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "projectsId": { + // "description": "Part of `name`. Name of the Application resource to get. Example: apps/myapp.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", + // "response": { + // "$ref": "Application" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/appengine.admin", + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "appengine.projects.locations.applications.repair": + +type ProjectsLocationsApplicationsRepairCall struct { + s *APIService + projectsId string + locationsId string + applicationsId string + repairapplicationrequest *RepairApplicationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Repair: Recreates the required App Engine features for the specified +// App Engine application, for example a Cloud Storage bucket or App +// Engine service account. Use this method if you receive an error +// message about a missing feature, for example, Error retrieving the +// App Engine service account. If you have deleted your App Engine +// service account, this will not be able to recreate it. Instead, you +// should attempt to use the IAM undelete API if possible at +// https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D +// . If the deletion was recent, the numeric ID can be found in the +// Cloud Console Activity Log. +// +// - applicationsId: Part of `name`. See documentation of `projectsId`. +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. Name of the application to repair. +// Example: apps/myapp. +func (r *ProjectsLocationsApplicationsService) Repair(projectsId string, locationsId string, applicationsId string, repairapplicationrequest *RepairApplicationRequest) *ProjectsLocationsApplicationsRepairCall { + c := &ProjectsLocationsApplicationsRepairCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.applicationsId = applicationsId + c.repairapplicationrequest = repairapplicationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsApplicationsRepairCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsRepairCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsApplicationsRepairCall) Context(ctx context.Context) *ProjectsLocationsApplicationsRepairCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsApplicationsRepairCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsRepairCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.repairapplicationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + "applicationsId": c.applicationsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.repair" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsApplicationsRepairCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B\"name\"%3A\"projects%2F-%2FserviceAccounts%2Funique_id\"%2C\"resource\"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", + // "httpMethod": "POST", + // "id": "appengine.projects.locations.applications.repair", + // "parameterOrder": [ + // "projectsId", + // "locationsId", + // "applicationsId" + // ], + // "parameters": { + // "applicationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "locationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "projectsId": { + // "description": "Part of `name`. Name of the application to repair. Example: apps/myapp", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", + // "request": { + // "$ref": "RepairApplicationRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *APIService + projectsId string + locationsId string + operationsId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - operationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(projectsId string, locationsId string, operationsId string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.operationsId = operationsId + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + "operationsId": c.operationsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "appengine.projects.locations.operations.get", + // "parameterOrder": [ + // "projectsId", + // "locationsId", + // "operationsId" + // ], + // "parameters": { + // "locationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "operationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "projectsId": { + // "description": "Part of `name`. The name of the operation resource.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/appengine.admin", + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "appengine.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *APIService + projectsId string + locationsId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// UNIMPLEMENTED.NOTE: the name binding allows API services to override +// the binding to use different resource name schemes, such as +// users/*/operations. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +// +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. The name of the operation's parent +// resource. +func (r *ProjectsLocationsOperationsService) List(projectsId string, locationsId string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "appengine.projects.locations.operations.list", + // "parameterOrder": [ + // "projectsId", + // "locationsId" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "locationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // }, + // "projectsId": { + // "description": "Part of `name`. The name of the operation's parent resource.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/appengine.admin", + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// 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. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index 8a92d2e742b..de6dc0af314 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -823,7 +823,7 @@ } } }, - "revision": "20220819", + "revision": "20221016", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -1085,7 +1085,7 @@ "id": "Reservation", "properties": { "concurrency": { - "description": "Maximum number of queries that are allowed to run concurrently in this reservation. This is a soft limit due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency will be automatically set based on the reservation size.", + "description": "Job concurrency target which sets a soft upper bound on the number of jobs that can run concurrently in this reservation. This is a soft target due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency target will be automatically computed by the system. NOTE: this field is exposed as `target_job_concurrency` in the Information Schema, DDL and BQ CLI.", "format": "int64", "type": "string" }, diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 3a803320002..f2ade9165f9 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -632,11 +632,13 @@ func (s *MoveAssignmentRequest) MarshalJSON() ([]byte, error) { // Reservation: A reservation is a mechanism used to guarantee slots to // users. type Reservation struct { - // Concurrency: Maximum number of queries that are allowed to run - // concurrently in this reservation. This is a soft limit due to - // asynchronous nature of the system and various optimizations for small - // queries. Default value is 0 which means that concurrency will be - // automatically set based on the reservation size. + // Concurrency: Job concurrency target which sets a soft upper bound on + // the number of jobs that can run concurrently in this reservation. + // This is a soft target due to asynchronous nature of the system and + // various optimizations for small queries. Default value is 0 which + // means that concurrency target will be automatically computed by the + // system. NOTE: this field is exposed as `target_job_concurrency` in + // the Information Schema, DDL and BQ CLI. Concurrency int64 `json:"concurrency,omitempty,string"` // CreationTime: Output only. Creation time of the reservation. diff --git a/bigqueryreservation/v1beta1/bigqueryreservation-api.json b/bigqueryreservation/v1beta1/bigqueryreservation-api.json index 69782e80489..7adfdce1078 100644 --- a/bigqueryreservation/v1beta1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1beta1/bigqueryreservation-api.json @@ -786,7 +786,7 @@ } } }, - "revision": "20220415", + "revision": "20221016", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -1046,7 +1046,7 @@ "id": "Reservation", "properties": { "concurrency": { - "description": "Maximum number of queries that are allowed to run concurrently in this reservation. This is a soft limit due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency will be automatically set based on the reservation size.", + "description": "Job concurrency target which sets a soft upper bound on the number of jobs that can run concurrently in this reservation. This is a soft target due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency target will be automatically computed by the system. NOTE: this field is exposed as `target_job_concurrency` in the Information Schema, DDL and BQ CLI.", "format": "int64", "type": "string" }, diff --git a/bigqueryreservation/v1beta1/bigqueryreservation-gen.go b/bigqueryreservation/v1beta1/bigqueryreservation-gen.go index 69966947246..e06691ee07e 100644 --- a/bigqueryreservation/v1beta1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1beta1/bigqueryreservation-gen.go @@ -630,11 +630,13 @@ func (s *MoveAssignmentRequest) MarshalJSON() ([]byte, error) { // Reservation: A reservation is a mechanism used to guarantee slots to // users. type Reservation struct { - // Concurrency: Maximum number of queries that are allowed to run - // concurrently in this reservation. This is a soft limit due to - // asynchronous nature of the system and various optimizations for small - // queries. Default value is 0 which means that concurrency will be - // automatically set based on the reservation size. + // Concurrency: Job concurrency target which sets a soft upper bound on + // the number of jobs that can run concurrently in this reservation. + // This is a soft target due to asynchronous nature of the system and + // various optimizations for small queries. Default value is 0 which + // means that concurrency target will be automatically computed by the + // system. NOTE: this field is exposed as `target_job_concurrency` in + // the Information Schema, DDL and BQ CLI. Concurrency int64 `json:"concurrency,omitempty,string"` // CreationTime: Output only. Creation time of the reservation. diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 2ae8677cb18..282d8fc7d2e 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -590,7 +590,7 @@ } }, "delete": { - "description": "Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + "description": "Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer Preview](https://developers.google.com/workspace/preview): Deletes a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "DELETE", "id": "chat.spaces.messages.delete", @@ -612,7 +612,7 @@ } }, "get": { - "description": "Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + "description": "Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer Preview](https://developers.google.com/workspace/preview): Returns a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "GET", "id": "chat.spaces.messages.get", @@ -702,7 +702,7 @@ } } }, - "revision": "20221013", + "revision": "20221019", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -2591,7 +2591,7 @@ }, "space": { "$ref": "Space", - "description": "The space the message belongs to." + "description": "The space the message belongs to. When accessed with [user authentication](https://developers.google.com/chat/api/guides/auth/users), only the name of the Space is populated." }, "text": { "description": "Plain-text body of the message. The first link to an image, video, web page, or other preview-able item generates a preview chip.", diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 4599e2a7b0f..c625943646f 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -3214,7 +3214,10 @@ type Message struct { // SlashCommand: Output only. Slash command information, if applicable. SlashCommand *SlashCommand `json:"slashCommand,omitempty"` - // Space: The space the message belongs to. + // Space: The space the message belongs to. When accessed with user + // authentication + // (https://developers.google.com/chat/api/guides/auth/users), only the + // name of the Space is populated. Space *Space `json:"space,omitempty"` // Text: Plain-text body of the message. The first link to an image, @@ -6205,6 +6208,10 @@ type SpacesMessagesDeleteCall struct { // Delete: Deletes a message. Requires service account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). +// Developer Preview (https://developers.google.com/workspace/preview): +// Deletes a message. Requires user authentication +// (https://developers.google.com/chat/api/guides/auth/users) and the +// `chat.messages` authorization scope. // // - name: Resource name of the message to be deleted, in the form // "spaces/*/messages/*" Example: @@ -6301,7 +6308,7 @@ func (c *SpacesMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, err } return ret, nil // { - // "description": "Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + // "description": "Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer Preview](https://developers.google.com/workspace/preview): Deletes a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "DELETE", // "id": "chat.spaces.messages.delete", @@ -6338,6 +6345,10 @@ type SpacesMessagesGetCall struct { // Get: Returns a message. Requires service account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). +// Developer Preview (https://developers.google.com/workspace/preview): +// Returns a message. Requires user authentication +// (https://developers.google.com/chat/api/guides/auth/users) and the +// `chat.messages` or `chat.messages.readonly` authorization scope. // // - name: Resource name of the message to retrieve. Format: // spaces/{space}/messages/{message} If the message begins with @@ -6451,7 +6462,7 @@ func (c *SpacesMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, erro } return ret, nil // { - // "description": "Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + // "description": "Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer Preview](https://developers.google.com/workspace/preview): Returns a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "GET", // "id": "chat.spaces.messages.get", diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index dbc31c4928e..727aeebe9e7 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2295,7 +2295,7 @@ } } }, - "revision": "20220928", + "revision": "20221015", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -2877,7 +2877,7 @@ "additionalProperties": { "$ref": "TimeSpan" }, - "description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.", + "description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.", "readOnly": true, "type": "object" }, @@ -4756,12 +4756,12 @@ "id": "Results", "properties": { "artifactManifest": { - "description": "Path to the artifact manifest. Only populated when artifacts are uploaded.", + "description": "Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.", "type": "string" }, "artifactTiming": { "$ref": "TimeSpan", - "description": "Time to push all non-container artifacts." + "description": "Time to push all non-container artifacts to Cloud Storage." }, "buildStepImages": { "description": "List of build step digests, in the order corresponding to build step indices.", @@ -4793,7 +4793,7 @@ "type": "array" }, "numArtifacts": { - "description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.", + "description": "Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.", "format": "int64", "type": "string" }, diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 5c407660e3d..1cfdf42964e 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -1258,9 +1258,10 @@ type Build struct { // Timing: Output only. Stores timing information for phases of the // build. Valid keys are: * BUILD: time to execute all build steps. * - // PUSH: time to push all specified images. * FETCHSOURCE: time to fetch - // source. * SETUPBUILD: time to set up build. If the build does not - // specify source or images, these keys will not be included. + // PUSH: time to push all artifacts including docker images and non + // docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: + // time to set up build. If the build does not specify source or images, + // these keys will not be included. Timing map[string]TimeSpan `json:"timing,omitempty"` // Warnings: Output only. Non-fatal problems encountered during the @@ -4307,11 +4308,13 @@ func (s *RepoSource) MarshalJSON() ([]byte, error) { // Results: Artifacts created by the build pipeline. type Results struct { - // ArtifactManifest: Path to the artifact manifest. Only populated when - // artifacts are uploaded. + // ArtifactManifest: Path to the artifact manifest for non-container + // artifacts uploaded to Cloud Storage. Only populated when artifacts + // are uploaded to Cloud Storage. ArtifactManifest string `json:"artifactManifest,omitempty"` - // ArtifactTiming: Time to push all non-container artifacts. + // ArtifactTiming: Time to push all non-container artifacts to Cloud + // Storage. ArtifactTiming *TimeSpan `json:"artifactTiming,omitempty"` // BuildStepImages: List of build step digests, in the order @@ -4332,8 +4335,8 @@ type Results struct { // end of the build. MavenArtifacts []*UploadedMavenArtifact `json:"mavenArtifacts,omitempty"` - // NumArtifacts: Number of artifacts uploaded. Only populated when - // artifacts are uploaded. + // NumArtifacts: Number of non-container artifacts uploaded to Cloud + // Storage. Only populated when artifacts are uploaded to Cloud Storage. NumArtifacts int64 `json:"numArtifacts,omitempty,string"` // PythonPackages: Python artifacts uploaded to Artifact Registry at the diff --git a/cloudbuild/v1alpha1/cloudbuild-api.json b/cloudbuild/v1alpha1/cloudbuild-api.json index 3c4e60e3d32..6a1df4216e7 100644 --- a/cloudbuild/v1alpha1/cloudbuild-api.json +++ b/cloudbuild/v1alpha1/cloudbuild-api.json @@ -306,7 +306,7 @@ } } }, - "revision": "20220928", + "revision": "20221015", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -718,7 +718,7 @@ "additionalProperties": { "$ref": "TimeSpan" }, - "description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.", + "description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.", "readOnly": true, "type": "object" }, @@ -1775,12 +1775,12 @@ "id": "Results", "properties": { "artifactManifest": { - "description": "Path to the artifact manifest. Only populated when artifacts are uploaded.", + "description": "Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.", "type": "string" }, "artifactTiming": { "$ref": "TimeSpan", - "description": "Time to push all non-container artifacts." + "description": "Time to push all non-container artifacts to Cloud Storage." }, "buildStepImages": { "description": "List of build step digests, in the order corresponding to build step indices.", @@ -1812,7 +1812,7 @@ "type": "array" }, "numArtifacts": { - "description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.", + "description": "Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.", "format": "int64", "type": "string" }, diff --git a/cloudbuild/v1alpha1/cloudbuild-gen.go b/cloudbuild/v1alpha1/cloudbuild-gen.go index c6adf40fdd1..fda5434c111 100644 --- a/cloudbuild/v1alpha1/cloudbuild-gen.go +++ b/cloudbuild/v1alpha1/cloudbuild-gen.go @@ -760,9 +760,10 @@ type Build struct { // Timing: Output only. Stores timing information for phases of the // build. Valid keys are: * BUILD: time to execute all build steps. * - // PUSH: time to push all specified images. * FETCHSOURCE: time to fetch - // source. * SETUPBUILD: time to set up build. If the build does not - // specify source or images, these keys will not be included. + // PUSH: time to push all artifacts including docker images and non + // docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: + // time to set up build. If the build does not specify source or images, + // these keys will not be included. Timing map[string]TimeSpan `json:"timing,omitempty"` // Warnings: Output only. Non-fatal problems encountered during the @@ -2420,11 +2421,13 @@ func (s *RepoSource) MarshalJSON() ([]byte, error) { // Results: Artifacts created by the build pipeline. type Results struct { - // ArtifactManifest: Path to the artifact manifest. Only populated when - // artifacts are uploaded. + // ArtifactManifest: Path to the artifact manifest for non-container + // artifacts uploaded to Cloud Storage. Only populated when artifacts + // are uploaded to Cloud Storage. ArtifactManifest string `json:"artifactManifest,omitempty"` - // ArtifactTiming: Time to push all non-container artifacts. + // ArtifactTiming: Time to push all non-container artifacts to Cloud + // Storage. ArtifactTiming *TimeSpan `json:"artifactTiming,omitempty"` // BuildStepImages: List of build step digests, in the order @@ -2445,8 +2448,8 @@ type Results struct { // end of the build. MavenArtifacts []*UploadedMavenArtifact `json:"mavenArtifacts,omitempty"` - // NumArtifacts: Number of artifacts uploaded. Only populated when - // artifacts are uploaded. + // NumArtifacts: Number of non-container artifacts uploaded to Cloud + // Storage. Only populated when artifacts are uploaded to Cloud Storage. NumArtifacts int64 `json:"numArtifacts,omitempty,string"` // PythonPackages: Python artifacts uploaded to Artifact Registry at the diff --git a/cloudbuild/v1alpha2/cloudbuild-api.json b/cloudbuild/v1alpha2/cloudbuild-api.json index 638cbffd7db..364d8657fe1 100644 --- a/cloudbuild/v1alpha2/cloudbuild-api.json +++ b/cloudbuild/v1alpha2/cloudbuild-api.json @@ -317,7 +317,7 @@ } } }, - "revision": "20220928", + "revision": "20221015", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -729,7 +729,7 @@ "additionalProperties": { "$ref": "TimeSpan" }, - "description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.", + "description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.", "readOnly": true, "type": "object" }, @@ -1778,12 +1778,12 @@ "id": "Results", "properties": { "artifactManifest": { - "description": "Path to the artifact manifest. Only populated when artifacts are uploaded.", + "description": "Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.", "type": "string" }, "artifactTiming": { "$ref": "TimeSpan", - "description": "Time to push all non-container artifacts." + "description": "Time to push all non-container artifacts to Cloud Storage." }, "buildStepImages": { "description": "List of build step digests, in the order corresponding to build step indices.", @@ -1815,7 +1815,7 @@ "type": "array" }, "numArtifacts": { - "description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.", + "description": "Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.", "format": "int64", "type": "string" }, diff --git a/cloudbuild/v1alpha2/cloudbuild-gen.go b/cloudbuild/v1alpha2/cloudbuild-gen.go index e99c04b20f3..982a88f49ed 100644 --- a/cloudbuild/v1alpha2/cloudbuild-gen.go +++ b/cloudbuild/v1alpha2/cloudbuild-gen.go @@ -760,9 +760,10 @@ type Build struct { // Timing: Output only. Stores timing information for phases of the // build. Valid keys are: * BUILD: time to execute all build steps. * - // PUSH: time to push all specified images. * FETCHSOURCE: time to fetch - // source. * SETUPBUILD: time to set up build. If the build does not - // specify source or images, these keys will not be included. + // PUSH: time to push all artifacts including docker images and non + // docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: + // time to set up build. If the build does not specify source or images, + // these keys will not be included. Timing map[string]TimeSpan `json:"timing,omitempty"` // Warnings: Output only. Non-fatal problems encountered during the @@ -2413,11 +2414,13 @@ func (s *RepoSource) MarshalJSON() ([]byte, error) { // Results: Artifacts created by the build pipeline. type Results struct { - // ArtifactManifest: Path to the artifact manifest. Only populated when - // artifacts are uploaded. + // ArtifactManifest: Path to the artifact manifest for non-container + // artifacts uploaded to Cloud Storage. Only populated when artifacts + // are uploaded to Cloud Storage. ArtifactManifest string `json:"artifactManifest,omitempty"` - // ArtifactTiming: Time to push all non-container artifacts. + // ArtifactTiming: Time to push all non-container artifacts to Cloud + // Storage. ArtifactTiming *TimeSpan `json:"artifactTiming,omitempty"` // BuildStepImages: List of build step digests, in the order @@ -2438,8 +2441,8 @@ type Results struct { // end of the build. MavenArtifacts []*UploadedMavenArtifact `json:"mavenArtifacts,omitempty"` - // NumArtifacts: Number of artifacts uploaded. Only populated when - // artifacts are uploaded. + // NumArtifacts: Number of non-container artifacts uploaded to Cloud + // Storage. Only populated when artifacts are uploaded to Cloud Storage. NumArtifacts int64 `json:"numArtifacts,omitempty,string"` // PythonPackages: Python artifacts uploaded to Artifact Registry at the diff --git a/cloudbuild/v1beta1/cloudbuild-api.json b/cloudbuild/v1beta1/cloudbuild-api.json index b020006bae7..cbf34c6f33f 100644 --- a/cloudbuild/v1beta1/cloudbuild-api.json +++ b/cloudbuild/v1beta1/cloudbuild-api.json @@ -322,7 +322,7 @@ } } }, - "revision": "20220928", + "revision": "20221015", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -734,7 +734,7 @@ "additionalProperties": { "$ref": "TimeSpan" }, - "description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.", + "description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.", "readOnly": true, "type": "object" }, @@ -1783,12 +1783,12 @@ "id": "Results", "properties": { "artifactManifest": { - "description": "Path to the artifact manifest. Only populated when artifacts are uploaded.", + "description": "Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.", "type": "string" }, "artifactTiming": { "$ref": "TimeSpan", - "description": "Time to push all non-container artifacts." + "description": "Time to push all non-container artifacts to Cloud Storage." }, "buildStepImages": { "description": "List of build step digests, in the order corresponding to build step indices.", @@ -1820,7 +1820,7 @@ "type": "array" }, "numArtifacts": { - "description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.", + "description": "Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.", "format": "int64", "type": "string" }, diff --git a/cloudbuild/v1beta1/cloudbuild-gen.go b/cloudbuild/v1beta1/cloudbuild-gen.go index 6aa5b9a0b73..babc8ee3c71 100644 --- a/cloudbuild/v1beta1/cloudbuild-gen.go +++ b/cloudbuild/v1beta1/cloudbuild-gen.go @@ -760,9 +760,10 @@ type Build struct { // Timing: Output only. Stores timing information for phases of the // build. Valid keys are: * BUILD: time to execute all build steps. * - // PUSH: time to push all specified images. * FETCHSOURCE: time to fetch - // source. * SETUPBUILD: time to set up build. If the build does not - // specify source or images, these keys will not be included. + // PUSH: time to push all artifacts including docker images and non + // docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: + // time to set up build. If the build does not specify source or images, + // these keys will not be included. Timing map[string]TimeSpan `json:"timing,omitempty"` // Warnings: Output only. Non-fatal problems encountered during the @@ -2416,11 +2417,13 @@ func (s *RepoSource) MarshalJSON() ([]byte, error) { // Results: Artifacts created by the build pipeline. type Results struct { - // ArtifactManifest: Path to the artifact manifest. Only populated when - // artifacts are uploaded. + // ArtifactManifest: Path to the artifact manifest for non-container + // artifacts uploaded to Cloud Storage. Only populated when artifacts + // are uploaded to Cloud Storage. ArtifactManifest string `json:"artifactManifest,omitempty"` - // ArtifactTiming: Time to push all non-container artifacts. + // ArtifactTiming: Time to push all non-container artifacts to Cloud + // Storage. ArtifactTiming *TimeSpan `json:"artifactTiming,omitempty"` // BuildStepImages: List of build step digests, in the order @@ -2441,8 +2444,8 @@ type Results struct { // end of the build. MavenArtifacts []*UploadedMavenArtifact `json:"mavenArtifacts,omitempty"` - // NumArtifacts: Number of artifacts uploaded. Only populated when - // artifacts are uploaded. + // NumArtifacts: Number of non-container artifacts uploaded to Cloud + // Storage. Only populated when artifacts are uploaded to Cloud Storage. NumArtifacts int64 `json:"numArtifacts,omitempty,string"` // PythonPackages: Python artifacts uploaded to Artifact Registry at the diff --git a/cloudresourcemanager/v3/cloudresourcemanager-api.json b/cloudresourcemanager/v3/cloudresourcemanager-api.json index a94ee1d66c7..be43fce366c 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v3/cloudresourcemanager-api.json @@ -111,7 +111,7 @@ "effectiveTags": { "methods": { "list": { - "description": "Return a list of effective tags for the given cloud resource, as specified in `parent`.", + "description": "Return a list of effective tags for the given Google Cloud resource, as specified in `parent`.", "flatPath": "v3/effectiveTags", "httpMethod": "GET", "id": "cloudresourcemanager.effectiveTags.list", @@ -1073,7 +1073,7 @@ "tagBindings": { "methods": { "create": { - "description": "Creates a TagBinding between a TagValue and a cloud resource (currently project, folder, or organization).", + "description": "Creates a TagBinding between a TagValue and a Google Cloud resource.", "flatPath": "v3/tagBindings", "httpMethod": "POST", "id": "cloudresourcemanager.tagBindings.create", @@ -1122,7 +1122,7 @@ ] }, "list": { - "description": "Lists the TagBindings for the given cloud resource, as specified with `parent`. NOTE: The `parent` field is expected to be a full resource name: https://cloud.google.com/apis/design/resource_names#full_resource_name", + "description": "Lists the TagBindings for the given Google Cloud resource, as specified with `parent`. NOTE: The `parent` field is expected to be a full resource name: https://cloud.google.com/apis/design/resource_names#full_resource_name", "flatPath": "v3/tagBindings", "httpMethod": "GET", "id": "cloudresourcemanager.tagBindings.list", @@ -1760,7 +1760,7 @@ } } }, - "revision": "20220925", + "revision": "20221016", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -2731,7 +2731,7 @@ "type": "object" }, "TagBinding": { - "description": "A TagBinding represents a connection between a TagValue and a cloud resource (currently project, folder, or organization). Once a TagBinding is created, the TagValue is applied to all the descendants of the cloud resource.", + "description": "A TagBinding represents a connection between a TagValue and a cloud resource Once a TagBinding is created, the TagValue is applied to all the descendants of the Google Cloud resource.", "id": "TagBinding", "properties": { "name": { @@ -2819,7 +2819,7 @@ ], "enumDescriptions": [ "Unspecified purpose.", - "Purpose for Compute Engine firewalls. A corresponding purpose_data should be set for the network the tag is intended for. The key should be 'network' and the value should be in the format of the network url id string: https://compute.googleapis.com/v1/projects/{project_number}/global/networks/{network_id}" + "Purpose for Compute Engine firewalls. A corresponding purpose_data should be set for the network the tag is intended for. The key should be 'network' and the value should be in either of these two formats: -https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id} -{project_id}/{network_name} Examples: -https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600 -fail-closed-load-testing/load-testing-network" ], "type": "string" }, diff --git a/cloudresourcemanager/v3/cloudresourcemanager-gen.go b/cloudresourcemanager/v3/cloudresourcemanager-gen.go index f0feae773d4..cd933a7c757 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v3/cloudresourcemanager-gen.go @@ -2077,9 +2077,8 @@ func (s *Status) MarshalJSON() ([]byte, error) { } // TagBinding: A TagBinding represents a connection between a TagValue -// and a cloud resource (currently project, folder, or organization). -// Once a TagBinding is created, the TagValue is applied to all the -// descendants of the cloud resource. +// and a cloud resource Once a TagBinding is created, the TagValue is +// applied to all the descendants of the Google Cloud resource. type TagBinding struct { // Name: Output only. The name of the TagBinding. This is a String of // the form: `tagBindings/{full-resource-name}/{tag-value-name}` (e.g. @@ -2212,8 +2211,13 @@ type TagKey struct { // "GCE_FIREWALL" - Purpose for Compute Engine firewalls. A // corresponding purpose_data should be set for the network the tag is // intended for. The key should be 'network' and the value should be in - // the format of the network url id string: - // https://compute.googleapis.com/v1/projects/{project_number}/global/networks/{network_id} + // either of these two formats: + // -https://www.googleapis.com/compute/{compute_version}/projects/{projec + // t_id}/global/networks/{network_id} -{project_id}/{network_name} + // Examples: + // -https://www.googleapis.com/compute/staging_v1/projects/fail-closed-lo + // ad-testing/global/networks/6992953698831725600 + // -fail-closed-load-testing/load-testing-network Purpose string `json:"purpose,omitempty"` // PurposeData: Optional. Purpose data corresponds to the policy system @@ -2446,8 +2450,8 @@ type EffectiveTagsListCall struct { header_ http.Header } -// List: Return a list of effective tags for the given cloud resource, -// as specified in `parent`. +// List: Return a list of effective tags for the given Google Cloud +// resource, as specified in `parent`. func (r *EffectiveTagsService) List() *EffectiveTagsListCall { c := &EffectiveTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c @@ -2574,7 +2578,7 @@ func (c *EffectiveTagsListCall) Do(opts ...googleapi.CallOption) (*ListEffective } return ret, nil // { - // "description": "Return a list of effective tags for the given cloud resource, as specified in `parent`.", + // "description": "Return a list of effective tags for the given Google Cloud resource, as specified in `parent`.", // "flatPath": "v3/effectiveTags", // "httpMethod": "GET", // "id": "cloudresourcemanager.effectiveTags.list", @@ -7785,8 +7789,8 @@ type TagBindingsCreateCall struct { header_ http.Header } -// Create: Creates a TagBinding between a TagValue and a cloud resource -// (currently project, folder, or organization). +// Create: Creates a TagBinding between a TagValue and a Google Cloud +// resource. func (r *TagBindingsService) Create(tagbinding *TagBinding) *TagBindingsCreateCall { c := &TagBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tagbinding = tagbinding @@ -7889,7 +7893,7 @@ func (c *TagBindingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, er } return ret, nil // { - // "description": "Creates a TagBinding between a TagValue and a cloud resource (currently project, folder, or organization).", + // "description": "Creates a TagBinding between a TagValue and a Google Cloud resource.", // "flatPath": "v3/tagBindings", // "httpMethod": "POST", // "id": "cloudresourcemanager.tagBindings.create", @@ -8060,7 +8064,7 @@ type TagBindingsListCall struct { header_ http.Header } -// List: Lists the TagBindings for the given cloud resource, as +// List: Lists the TagBindings for the given Google Cloud resource, as // specified with `parent`. NOTE: The `parent` field is expected to be a // full resource name: // https://cloud.google.com/apis/design/resource_names#full_resource_name @@ -8191,7 +8195,7 @@ func (c *TagBindingsListCall) Do(opts ...googleapi.CallOption) (*ListTagBindings } return ret, nil // { - // "description": "Lists the TagBindings for the given cloud resource, as specified with `parent`. NOTE: The `parent` field is expected to be a full resource name: https://cloud.google.com/apis/design/resource_names#full_resource_name", + // "description": "Lists the TagBindings for the given Google Cloud resource, as specified with `parent`. NOTE: The `parent` field is expected to be a full resource name: https://cloud.google.com/apis/design/resource_names#full_resource_name", // "flatPath": "v3/tagBindings", // "httpMethod": "GET", // "id": "cloudresourcemanager.tagBindings.list", diff --git a/composer/v1/composer-api.json b/composer/v1/composer-api.json index 067e192d420..c5b503c37c6 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -406,7 +406,7 @@ } } }, - "revision": "20220920", + "revision": "20221012", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AllowedIpRange": { @@ -828,6 +828,27 @@ }, "type": "object" }, + "NetworkingConfig": { + "description": "Configuration options for networking connections in the Composer 2 environment.", + "id": "NetworkingConfig", + "properties": { + "connectionType": { + "description": "Optional. Indicates the user requested specifc connection type between Tenant and Customer projects. You cannot set networking connection type in public IP environment.", + "enum": [ + "CONNECTION_TYPE_UNSPECIFIED", + "VPC_PEERING", + "PRIVATE_SERVICE_CONNECT" + ], + "enumDescriptions": [ + "No specific connection type was requested, so the environment uses the default value corresponding to the rest of its configuration.", + "Requests the use of VPC peerings for connecting the Customer and Tenant projects.", + "Requests the use of Private Service Connect for connecting the Customer and Tenant projects." + ], + "type": "string" + } + }, + "type": "object" + }, "NodeConfig": { "description": "The configuration information for the Kubernetes Engine nodes running the Apache Airflow software.", "id": "NodeConfig", @@ -1033,6 +1054,10 @@ "description": "Optional. When enabled, IPs from public (non-RFC1918) ranges can be used for `IPAllocationPolicy.cluster_ipv4_cidr_block` and `IPAllocationPolicy.service_ipv4_cidr_block`.", "type": "boolean" }, + "networkingConfig": { + "$ref": "NetworkingConfig", + "description": "Optional. Configuration for the network connections configuration in the environment." + }, "privateClusterConfig": { "$ref": "PrivateClusterConfig", "description": "Optional. Configuration for the private GKE cluster for a Private IP Cloud Composer environment." diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index ad0f0b97508..8885125446e 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -942,6 +942,47 @@ func (s *MasterAuthorizedNetworksConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NetworkingConfig: Configuration options for networking connections in +// the Composer 2 environment. +type NetworkingConfig struct { + // ConnectionType: Optional. Indicates the user requested specifc + // connection type between Tenant and Customer projects. You cannot set + // networking connection type in public IP environment. + // + // Possible values: + // "CONNECTION_TYPE_UNSPECIFIED" - No specific connection type was + // requested, so the environment uses the default value corresponding to + // the rest of its configuration. + // "VPC_PEERING" - Requests the use of VPC peerings for connecting the + // Customer and Tenant projects. + // "PRIVATE_SERVICE_CONNECT" - Requests the use of Private Service + // Connect for connecting the Customer and Tenant projects. + ConnectionType string `json:"connectionType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConnectionType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConnectionType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *NetworkingConfig) MarshalJSON() ([]byte, error) { + type NoMethod NetworkingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NodeConfig: The configuration information for the Kubernetes Engine // nodes running the Apache Airflow software. type NodeConfig struct { @@ -1274,6 +1315,10 @@ type PrivateEnvironmentConfig struct { // `IPAllocationPolicy.service_ipv4_cidr_block`. EnablePrivatelyUsedPublicIps bool `json:"enablePrivatelyUsedPublicIps,omitempty"` + // NetworkingConfig: Optional. Configuration for the network connections + // configuration in the environment. + NetworkingConfig *NetworkingConfig `json:"networkingConfig,omitempty"` + // PrivateClusterConfig: Optional. Configuration for the private GKE // cluster for a Private IP Cloud Composer environment. PrivateClusterConfig *PrivateClusterConfig `json:"privateClusterConfig,omitempty"` diff --git a/containeranalysis/v1/containeranalysis-api.json b/containeranalysis/v1/containeranalysis-api.json index bcaebfa69bc..3a370638583 100644 --- a/containeranalysis/v1/containeranalysis-api.json +++ b/containeranalysis/v1/containeranalysis-api.json @@ -755,7 +755,7 @@ } } }, - "revision": "20221001", + "revision": "20221015", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -1040,6 +1040,128 @@ }, "type": "object" }, + "BuildStep": { + "description": "A step in the build pipeline. Next ID: 20", + "id": "BuildStep", + "properties": { + "allowExitCodes": { + "description": "Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "allowFailure": { + "description": "Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.", + "type": "boolean" + }, + "args": { + "description": "A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.", + "items": { + "type": "string" + }, + "type": "array" + }, + "dir": { + "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", + "type": "string" + }, + "entrypoint": { + "description": "Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used.", + "type": "string" + }, + "env": { + "description": "A list of environment variable definitions to be used when running a step. The elements are of the form \"KEY=VALUE\" for the environment variable \"KEY\" being given the value \"VALUE\".", + "items": { + "type": "string" + }, + "type": "array" + }, + "exitCode": { + "description": "Output only. Return code from running the step.", + "format": "int32", + "type": "integer" + }, + "id": { + "description": "Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.", + "type": "string" + }, + "name": { + "description": "Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like \"ubuntu\", \"debian\", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.", + "type": "string" + }, + "pullTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pulling this build step's builder image only." + }, + "script": { + "description": "A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.", + "type": "string" + }, + "secretEnv": { + "description": "A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "status": { + "description": "Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.", + "enum": [ + "STATUS_UNKNOWN", + "PENDING", + "QUEUING", + "QUEUED", + "WORKING", + "SUCCESS", + "FAILURE", + "INTERNAL_ERROR", + "TIMEOUT", + "CANCELLED", + "EXPIRED" + ], + "enumDescriptions": [ + "Status of the build is unknown.", + "Build has been created and is pending execution and queuing. It has not been queued.", + "Build has been received and is being queued.", + "Build or step is queued; work has not yet begun.", + "Build or step is being executed.", + "Build or step finished successfully.", + "Build or step failed to complete successfully.", + "Build or step failed due to an internal cause.", + "Build or step took longer than was allowed.", + "Build or step was canceled by a user.", + "Build was enqueued for longer than the value of `queue_ttl`." + ], + "type": "string" + }, + "timeout": { + "description": "Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.", + "format": "google-duration", + "type": "string" + }, + "timing": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for executing this build step." + }, + "volumes": { + "description": "List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.", + "items": { + "$ref": "Volume" + }, + "type": "array" + }, + "waitFor": { + "description": "The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "BuilderConfig": { "id": "BuilderConfig", "properties": { @@ -4454,6 +4576,23 @@ }, "type": "object" }, + "TimeSpan": { + "description": "Start and end times for a build execution phase. Next ID: 3", + "id": "TimeSpan", + "properties": { + "endTime": { + "description": "End of time span.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "Start of time span.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "UpgradeDistribution": { "description": "The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.", "id": "UpgradeDistribution", @@ -4573,6 +4712,21 @@ }, "type": "object" }, + "Volume": { + "description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution. Next ID: 3", + "id": "Volume", + "properties": { + "name": { + "description": "Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.", + "type": "string" + }, + "path": { + "description": "Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.", + "type": "string" + } + }, + "type": "object" + }, "VulnerabilityNote": { "description": "A security vulnerability that can be found in resources.", "id": "VulnerabilityNote", diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index a3ab17f795d..8e18fc4d398 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -734,6 +734,149 @@ func (s *BuildProvenance) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BuildStep: A step in the build pipeline. Next ID: 20 +type BuildStep struct { + // AllowExitCodes: Allow this build step to fail without failing the + // entire build if and only if the exit code is one of the specified + // codes. If allow_failure is also specified, this field will take + // precedence. + AllowExitCodes []int64 `json:"allowExitCodes,omitempty"` + + // AllowFailure: Allow this build step to fail without failing the + // entire build. If false, the entire build will fail if this step + // fails. Otherwise, the build will succeed, but this step will still + // have a failure status. Error information will be reported in the + // failure_detail field. + AllowFailure bool `json:"allowFailure,omitempty"` + + // Args: A list of arguments that will be presented to the step when it + // is started. If the image used to run the step's container has an + // entrypoint, the `args` are used as arguments to that entrypoint. If + // the image does not define an entrypoint, the first element in args is + // used as the entrypoint, and the remainder will be used as arguments. + Args []string `json:"args,omitempty"` + + // Dir: Working directory to use when running this step's container. If + // this value is a relative path, it is relative to the build's working + // directory. If this value is absolute, it may be outside the build's + // working directory, in which case the contents of the path may not be + // persisted across build step executions, unless a `volume` for that + // path is specified. If the build specifies a `RepoSource` with `dir` + // and a step with a `dir`, which specifies an absolute path, the + // `RepoSource` `dir` is ignored for the step's execution. + Dir string `json:"dir,omitempty"` + + // Entrypoint: Entrypoint to be used instead of the build step image's + // default entrypoint. If unset, the image's default entrypoint is used. + Entrypoint string `json:"entrypoint,omitempty"` + + // Env: A list of environment variable definitions to be used when + // running a step. The elements are of the form "KEY=VALUE" for the + // environment variable "KEY" being given the value "VALUE". + Env []string `json:"env,omitempty"` + + // ExitCode: Output only. Return code from running the step. + ExitCode int64 `json:"exitCode,omitempty"` + + // Id: Unique identifier for this build step, used in `wait_for` to + // reference this build step as a dependency. + Id string `json:"id,omitempty"` + + // Name: Required. The name of the container image that will run this + // particular build step. If the image is available in the host's Docker + // daemon's cache, it will be run directly. If not, the host will + // attempt to pull the image first, using the builder service account's + // credentials if necessary. The Docker daemon's cache will already have + // the latest versions of all of the officially supported build steps + // (https://github.com/GoogleCloudPlatform/cloud-builders + // (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker + // daemon will also have cached many of the layers for some popular + // images, like "ubuntu", "debian", but they will be refreshed at the + // time you attempt to use them. If you built an image in a previous + // build step, it will be stored in the host's Docker daemon's cache and + // is available to use as the name for a later build step. + Name string `json:"name,omitempty"` + + // PullTiming: Output only. Stores timing information for pulling this + // build step's builder image only. + PullTiming *TimeSpan `json:"pullTiming,omitempty"` + + // Script: A shell script to be executed in the step. When script is + // provided, the user cannot specify the entrypoint or args. + Script string `json:"script,omitempty"` + + // SecretEnv: A list of environment variables which are encrypted using + // a Cloud Key Management Service crypto key. These values must be + // specified in the build's `Secret`. + SecretEnv []string `json:"secretEnv,omitempty"` + + // Status: Output only. Status of the build step. At this time, build + // step status is only updated on build completion; step status is not + // updated in real-time as the build progresses. + // + // Possible values: + // "STATUS_UNKNOWN" - Status of the build is unknown. + // "PENDING" - Build has been created and is pending execution and + // queuing. It has not been queued. + // "QUEUING" - Build has been received and is being queued. + // "QUEUED" - Build or step is queued; work has not yet begun. + // "WORKING" - Build or step is being executed. + // "SUCCESS" - Build or step finished successfully. + // "FAILURE" - Build or step failed to complete successfully. + // "INTERNAL_ERROR" - Build or step failed due to an internal cause. + // "TIMEOUT" - Build or step took longer than was allowed. + // "CANCELLED" - Build or step was canceled by a user. + // "EXPIRED" - Build was enqueued for longer than the value of + // `queue_ttl`. + Status string `json:"status,omitempty"` + + // Timeout: Time limit for executing this build step. If not defined, + // the step has no time limit and will be allowed to continue to run + // until either it completes or the build itself times out. + Timeout string `json:"timeout,omitempty"` + + // Timing: Output only. Stores timing information for executing this + // build step. + Timing *TimeSpan `json:"timing,omitempty"` + + // Volumes: List of volumes to mount into the build step. Each volume is + // created as an empty volume prior to execution of the build step. Upon + // completion of the build, volumes and their contents are discarded. + // Using a named volume in only one step is not valid as it is + // indicative of a build request with an incorrect configuration. + Volumes []*Volume `json:"volumes,omitempty"` + + // WaitFor: The ID(s) of the step(s) that this build step depends on. + // This build step will not start until all the build steps in + // `wait_for` have completed successfully. If `wait_for` is empty, this + // build step will start when all previous build steps in the + // `Build.Steps` list have completed successfully. + WaitFor []string `json:"waitFor,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowExitCodes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowExitCodes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *BuildStep) MarshalJSON() ([]byte, error) { + type NoMethod BuildStep + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type BuilderConfig struct { Id string `json:"id,omitempty"` @@ -5927,6 +6070,37 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeSpan: Start and end times for a build execution phase. Next ID: 3 +type TimeSpan struct { + // EndTime: End of time span. + EndTime string `json:"endTime,omitempty"` + + // StartTime: Start of time span. + StartTime string `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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeSpan) MarshalJSON() ([]byte, error) { + type NoMethod TimeSpan + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UpgradeDistribution: The Upgrade Distribution represents metadata // about the Upgrade for each operating system (CPE). Some distributions // have additional metadata around updates, classifying them into @@ -6123,6 +6297,43 @@ func (s *Version) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Volume: Volume describes a Docker container volume which is mounted +// into build steps in order to persist files across build step +// execution. Next ID: 3 +type Volume struct { + // Name: Name of the volume to mount. Volume names must be unique per + // build step and must be valid names for Docker volumes. Each named + // volume must be used by at least two build steps. + Name string `json:"name,omitempty"` + + // Path: Path at which to mount the volume. Paths must be absolute and + // cannot conflict with other volume paths on the same build step or + // with certain reserved volume paths. + Path string `json:"path,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Volume) MarshalJSON() ([]byte, error) { + type NoMethod Volume + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // VulnerabilityNote: A security vulnerability that can be found in // resources. type VulnerabilityNote struct { diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index 8dc03360574..7351435e742 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1229,7 +1229,7 @@ } } }, - "revision": "20221001", + "revision": "20221015", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -1467,6 +1467,128 @@ }, "type": "object" }, + "BuildStep": { + "description": "A step in the build pipeline. Next ID: 20", + "id": "BuildStep", + "properties": { + "allowExitCodes": { + "description": "Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "allowFailure": { + "description": "Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.", + "type": "boolean" + }, + "args": { + "description": "A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.", + "items": { + "type": "string" + }, + "type": "array" + }, + "dir": { + "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", + "type": "string" + }, + "entrypoint": { + "description": "Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used.", + "type": "string" + }, + "env": { + "description": "A list of environment variable definitions to be used when running a step. The elements are of the form \"KEY=VALUE\" for the environment variable \"KEY\" being given the value \"VALUE\".", + "items": { + "type": "string" + }, + "type": "array" + }, + "exitCode": { + "description": "Output only. Return code from running the step.", + "format": "int32", + "type": "integer" + }, + "id": { + "description": "Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.", + "type": "string" + }, + "name": { + "description": "Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like \"ubuntu\", \"debian\", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.", + "type": "string" + }, + "pullTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pulling this build step's builder image only." + }, + "script": { + "description": "A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.", + "type": "string" + }, + "secretEnv": { + "description": "A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "status": { + "description": "Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.", + "enum": [ + "STATUS_UNKNOWN", + "PENDING", + "QUEUING", + "QUEUED", + "WORKING", + "SUCCESS", + "FAILURE", + "INTERNAL_ERROR", + "TIMEOUT", + "CANCELLED", + "EXPIRED" + ], + "enumDescriptions": [ + "Status of the build is unknown.", + "Build has been created and is pending execution and queuing. It has not been queued.", + "Build has been received and is being queued.", + "Build or step is queued; work has not yet begun.", + "Build or step is being executed.", + "Build or step finished successfully.", + "Build or step failed to complete successfully.", + "Build or step failed due to an internal cause.", + "Build or step took longer than was allowed.", + "Build or step was canceled by a user.", + "Build was enqueued for longer than the value of `queue_ttl`." + ], + "type": "string" + }, + "timeout": { + "description": "Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.", + "format": "google-duration", + "type": "string" + }, + "timing": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for executing this build step." + }, + "volumes": { + "description": "List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.", + "items": { + "$ref": "Volume" + }, + "type": "array" + }, + "waitFor": { + "description": "The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "BuildType": { "description": "Note holding the version of the provider's builder and the signature of the provenance message in linked BuildDetails.", "id": "BuildType", @@ -5485,7 +5607,7 @@ }, "storageSource": { "$ref": "StorageSource", - "description": "If provided, get the source from this location in in Google Cloud Storage." + "description": "If provided, get the source from this location in Google Cloud Storage." } }, "type": "object" @@ -5583,6 +5705,23 @@ }, "type": "object" }, + "TimeSpan": { + "description": "Start and end times for a build execution phase. Next ID: 3", + "id": "TimeSpan", + "properties": { + "endTime": { + "description": "End of time span.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "Start of time span.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "UpdateOperationRequest": { "description": "Request for updating an existing operation", "id": "UpdateOperationRequest", @@ -5704,6 +5843,21 @@ }, "type": "object" }, + "Volume": { + "description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution. Next ID: 3", + "id": "Volume", + "properties": { + "name": { + "description": "Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.", + "type": "string" + }, + "path": { + "description": "Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.", + "type": "string" + } + }, + "type": "object" + }, "VulnerabilityDetails": { "description": "Used by Occurrence to point to where the vulnerability exists and how to fix it.", "id": "VulnerabilityDetails", diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 56da5c9359f..b9cdc9978f9 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -724,6 +724,149 @@ func (s *BuildSignature) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BuildStep: A step in the build pipeline. Next ID: 20 +type BuildStep struct { + // AllowExitCodes: Allow this build step to fail without failing the + // entire build if and only if the exit code is one of the specified + // codes. If allow_failure is also specified, this field will take + // precedence. + AllowExitCodes []int64 `json:"allowExitCodes,omitempty"` + + // AllowFailure: Allow this build step to fail without failing the + // entire build. If false, the entire build will fail if this step + // fails. Otherwise, the build will succeed, but this step will still + // have a failure status. Error information will be reported in the + // failure_detail field. + AllowFailure bool `json:"allowFailure,omitempty"` + + // Args: A list of arguments that will be presented to the step when it + // is started. If the image used to run the step's container has an + // entrypoint, the `args` are used as arguments to that entrypoint. If + // the image does not define an entrypoint, the first element in args is + // used as the entrypoint, and the remainder will be used as arguments. + Args []string `json:"args,omitempty"` + + // Dir: Working directory to use when running this step's container. If + // this value is a relative path, it is relative to the build's working + // directory. If this value is absolute, it may be outside the build's + // working directory, in which case the contents of the path may not be + // persisted across build step executions, unless a `volume` for that + // path is specified. If the build specifies a `RepoSource` with `dir` + // and a step with a `dir`, which specifies an absolute path, the + // `RepoSource` `dir` is ignored for the step's execution. + Dir string `json:"dir,omitempty"` + + // Entrypoint: Entrypoint to be used instead of the build step image's + // default entrypoint. If unset, the image's default entrypoint is used. + Entrypoint string `json:"entrypoint,omitempty"` + + // Env: A list of environment variable definitions to be used when + // running a step. The elements are of the form "KEY=VALUE" for the + // environment variable "KEY" being given the value "VALUE". + Env []string `json:"env,omitempty"` + + // ExitCode: Output only. Return code from running the step. + ExitCode int64 `json:"exitCode,omitempty"` + + // Id: Unique identifier for this build step, used in `wait_for` to + // reference this build step as a dependency. + Id string `json:"id,omitempty"` + + // Name: Required. The name of the container image that will run this + // particular build step. If the image is available in the host's Docker + // daemon's cache, it will be run directly. If not, the host will + // attempt to pull the image first, using the builder service account's + // credentials if necessary. The Docker daemon's cache will already have + // the latest versions of all of the officially supported build steps + // (https://github.com/GoogleCloudPlatform/cloud-builders + // (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker + // daemon will also have cached many of the layers for some popular + // images, like "ubuntu", "debian", but they will be refreshed at the + // time you attempt to use them. If you built an image in a previous + // build step, it will be stored in the host's Docker daemon's cache and + // is available to use as the name for a later build step. + Name string `json:"name,omitempty"` + + // PullTiming: Output only. Stores timing information for pulling this + // build step's builder image only. + PullTiming *TimeSpan `json:"pullTiming,omitempty"` + + // Script: A shell script to be executed in the step. When script is + // provided, the user cannot specify the entrypoint or args. + Script string `json:"script,omitempty"` + + // SecretEnv: A list of environment variables which are encrypted using + // a Cloud Key Management Service crypto key. These values must be + // specified in the build's `Secret`. + SecretEnv []string `json:"secretEnv,omitempty"` + + // Status: Output only. Status of the build step. At this time, build + // step status is only updated on build completion; step status is not + // updated in real-time as the build progresses. + // + // Possible values: + // "STATUS_UNKNOWN" - Status of the build is unknown. + // "PENDING" - Build has been created and is pending execution and + // queuing. It has not been queued. + // "QUEUING" - Build has been received and is being queued. + // "QUEUED" - Build or step is queued; work has not yet begun. + // "WORKING" - Build or step is being executed. + // "SUCCESS" - Build or step finished successfully. + // "FAILURE" - Build or step failed to complete successfully. + // "INTERNAL_ERROR" - Build or step failed due to an internal cause. + // "TIMEOUT" - Build or step took longer than was allowed. + // "CANCELLED" - Build or step was canceled by a user. + // "EXPIRED" - Build was enqueued for longer than the value of + // `queue_ttl`. + Status string `json:"status,omitempty"` + + // Timeout: Time limit for executing this build step. If not defined, + // the step has no time limit and will be allowed to continue to run + // until either it completes or the build itself times out. + Timeout string `json:"timeout,omitempty"` + + // Timing: Output only. Stores timing information for executing this + // build step. + Timing *TimeSpan `json:"timing,omitempty"` + + // Volumes: List of volumes to mount into the build step. Each volume is + // created as an empty volume prior to execution of the build step. Upon + // completion of the build, volumes and their contents are discarded. + // Using a named volume in only one step is not valid as it is + // indicative of a build request with an incorrect configuration. + Volumes []*Volume `json:"volumes,omitempty"` + + // WaitFor: The ID(s) of the step(s) that this build step depends on. + // This build step will not start until all the build steps in + // `wait_for` have completed successfully. If `wait_for` is empty, this + // build step will start when all previous build steps in the + // `Build.Steps` list have completed successfully. + WaitFor []string `json:"waitFor,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowExitCodes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowExitCodes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *BuildStep) MarshalJSON() ([]byte, error) { + type NoMethod BuildStep + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BuildType: Note holding the version of the provider's builder and the // signature of the provenance message in linked BuildDetails. type BuildType struct { @@ -6629,7 +6772,7 @@ type Source struct { // Repo. RepoSource *RepoSource `json:"repoSource,omitempty"` - // StorageSource: If provided, get the source from this location in in + // StorageSource: If provided, get the source from this location in // Google Cloud Storage. StorageSource *StorageSource `json:"storageSource,omitempty"` @@ -6836,6 +6979,37 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeSpan: Start and end times for a build execution phase. Next ID: 3 +type TimeSpan struct { + // EndTime: End of time span. + EndTime string `json:"endTime,omitempty"` + + // StartTime: Start of time span. + StartTime string `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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeSpan) MarshalJSON() ([]byte, error) { + type NoMethod TimeSpan + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UpdateOperationRequest: Request for updating an existing operation type UpdateOperationRequest struct { // Operation: The operation to create. @@ -7043,6 +7217,43 @@ func (s *Version) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Volume: Volume describes a Docker container volume which is mounted +// into build steps in order to persist files across build step +// execution. Next ID: 3 +type Volume struct { + // Name: Name of the volume to mount. Volume names must be unique per + // build step and must be valid names for Docker volumes. Each named + // volume must be used by at least two build steps. + Name string `json:"name,omitempty"` + + // Path: Path at which to mount the volume. Paths must be absolute and + // cannot conflict with other volume paths on the same build step or + // with certain reserved volume paths. + Path string `json:"path,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Volume) MarshalJSON() ([]byte, error) { + type NoMethod Volume + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // VulnerabilityDetails: Used by Occurrence to point to where the // vulnerability exists and how to fix it. type VulnerabilityDetails struct { diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index 78bd0dc386c..7e566fe1298 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -853,7 +853,7 @@ } } }, - "revision": "20221001", + "revision": "20221015", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -1179,6 +1179,128 @@ }, "type": "object" }, + "BuildStep": { + "description": "A step in the build pipeline. Next ID: 20", + "id": "BuildStep", + "properties": { + "allowExitCodes": { + "description": "Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "allowFailure": { + "description": "Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.", + "type": "boolean" + }, + "args": { + "description": "A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.", + "items": { + "type": "string" + }, + "type": "array" + }, + "dir": { + "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", + "type": "string" + }, + "entrypoint": { + "description": "Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used.", + "type": "string" + }, + "env": { + "description": "A list of environment variable definitions to be used when running a step. The elements are of the form \"KEY=VALUE\" for the environment variable \"KEY\" being given the value \"VALUE\".", + "items": { + "type": "string" + }, + "type": "array" + }, + "exitCode": { + "description": "Output only. Return code from running the step.", + "format": "int32", + "type": "integer" + }, + "id": { + "description": "Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.", + "type": "string" + }, + "name": { + "description": "Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like \"ubuntu\", \"debian\", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.", + "type": "string" + }, + "pullTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pulling this build step's builder image only." + }, + "script": { + "description": "A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.", + "type": "string" + }, + "secretEnv": { + "description": "A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "status": { + "description": "Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.", + "enum": [ + "STATUS_UNKNOWN", + "PENDING", + "QUEUING", + "QUEUED", + "WORKING", + "SUCCESS", + "FAILURE", + "INTERNAL_ERROR", + "TIMEOUT", + "CANCELLED", + "EXPIRED" + ], + "enumDescriptions": [ + "Status of the build is unknown.", + "Build has been created and is pending execution and queuing. It has not been queued.", + "Build has been received and is being queued.", + "Build or step is queued; work has not yet begun.", + "Build or step is being executed.", + "Build or step finished successfully.", + "Build or step failed to complete successfully.", + "Build or step failed due to an internal cause.", + "Build or step took longer than was allowed.", + "Build or step was canceled by a user.", + "Build was enqueued for longer than the value of `queue_ttl`." + ], + "type": "string" + }, + "timeout": { + "description": "Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.", + "format": "google-duration", + "type": "string" + }, + "timing": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for executing this build step." + }, + "volumes": { + "description": "List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.", + "items": { + "$ref": "Volume" + }, + "type": "array" + }, + "waitFor": { + "description": "The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ByProducts": { "description": "Defines an object for the byproducts field in in-toto links. The suggested fields are \"stderr\", \"stdout\", and \"return-value\".", "id": "ByProducts", @@ -4992,6 +5114,23 @@ }, "type": "object" }, + "TimeSpan": { + "description": "Start and end times for a build execution phase. Next ID: 3", + "id": "TimeSpan", + "properties": { + "endTime": { + "description": "End of time span.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "Start of time span.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "Version": { "description": "Version contains structured information about the version of a package.", "id": "Version", @@ -5032,6 +5171,21 @@ }, "type": "object" }, + "Volume": { + "description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution. Next ID: 3", + "id": "Volume", + "properties": { + "name": { + "description": "Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.", + "type": "string" + }, + "path": { + "description": "Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.", + "type": "string" + } + }, + "type": "object" + }, "Vulnerability": { "description": "Vulnerability provides metadata about a security vulnerability in a Note.", "id": "Vulnerability", diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 6e8abbec0ee..769b713c45f 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -833,6 +833,149 @@ func (s *BuildSignature) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BuildStep: A step in the build pipeline. Next ID: 20 +type BuildStep struct { + // AllowExitCodes: Allow this build step to fail without failing the + // entire build if and only if the exit code is one of the specified + // codes. If allow_failure is also specified, this field will take + // precedence. + AllowExitCodes []int64 `json:"allowExitCodes,omitempty"` + + // AllowFailure: Allow this build step to fail without failing the + // entire build. If false, the entire build will fail if this step + // fails. Otherwise, the build will succeed, but this step will still + // have a failure status. Error information will be reported in the + // failure_detail field. + AllowFailure bool `json:"allowFailure,omitempty"` + + // Args: A list of arguments that will be presented to the step when it + // is started. If the image used to run the step's container has an + // entrypoint, the `args` are used as arguments to that entrypoint. If + // the image does not define an entrypoint, the first element in args is + // used as the entrypoint, and the remainder will be used as arguments. + Args []string `json:"args,omitempty"` + + // Dir: Working directory to use when running this step's container. If + // this value is a relative path, it is relative to the build's working + // directory. If this value is absolute, it may be outside the build's + // working directory, in which case the contents of the path may not be + // persisted across build step executions, unless a `volume` for that + // path is specified. If the build specifies a `RepoSource` with `dir` + // and a step with a `dir`, which specifies an absolute path, the + // `RepoSource` `dir` is ignored for the step's execution. + Dir string `json:"dir,omitempty"` + + // Entrypoint: Entrypoint to be used instead of the build step image's + // default entrypoint. If unset, the image's default entrypoint is used. + Entrypoint string `json:"entrypoint,omitempty"` + + // Env: A list of environment variable definitions to be used when + // running a step. The elements are of the form "KEY=VALUE" for the + // environment variable "KEY" being given the value "VALUE". + Env []string `json:"env,omitempty"` + + // ExitCode: Output only. Return code from running the step. + ExitCode int64 `json:"exitCode,omitempty"` + + // Id: Unique identifier for this build step, used in `wait_for` to + // reference this build step as a dependency. + Id string `json:"id,omitempty"` + + // Name: Required. The name of the container image that will run this + // particular build step. If the image is available in the host's Docker + // daemon's cache, it will be run directly. If not, the host will + // attempt to pull the image first, using the builder service account's + // credentials if necessary. The Docker daemon's cache will already have + // the latest versions of all of the officially supported build steps + // (https://github.com/GoogleCloudPlatform/cloud-builders + // (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker + // daemon will also have cached many of the layers for some popular + // images, like "ubuntu", "debian", but they will be refreshed at the + // time you attempt to use them. If you built an image in a previous + // build step, it will be stored in the host's Docker daemon's cache and + // is available to use as the name for a later build step. + Name string `json:"name,omitempty"` + + // PullTiming: Output only. Stores timing information for pulling this + // build step's builder image only. + PullTiming *TimeSpan `json:"pullTiming,omitempty"` + + // Script: A shell script to be executed in the step. When script is + // provided, the user cannot specify the entrypoint or args. + Script string `json:"script,omitempty"` + + // SecretEnv: A list of environment variables which are encrypted using + // a Cloud Key Management Service crypto key. These values must be + // specified in the build's `Secret`. + SecretEnv []string `json:"secretEnv,omitempty"` + + // Status: Output only. Status of the build step. At this time, build + // step status is only updated on build completion; step status is not + // updated in real-time as the build progresses. + // + // Possible values: + // "STATUS_UNKNOWN" - Status of the build is unknown. + // "PENDING" - Build has been created and is pending execution and + // queuing. It has not been queued. + // "QUEUING" - Build has been received and is being queued. + // "QUEUED" - Build or step is queued; work has not yet begun. + // "WORKING" - Build or step is being executed. + // "SUCCESS" - Build or step finished successfully. + // "FAILURE" - Build or step failed to complete successfully. + // "INTERNAL_ERROR" - Build or step failed due to an internal cause. + // "TIMEOUT" - Build or step took longer than was allowed. + // "CANCELLED" - Build or step was canceled by a user. + // "EXPIRED" - Build was enqueued for longer than the value of + // `queue_ttl`. + Status string `json:"status,omitempty"` + + // Timeout: Time limit for executing this build step. If not defined, + // the step has no time limit and will be allowed to continue to run + // until either it completes or the build itself times out. + Timeout string `json:"timeout,omitempty"` + + // Timing: Output only. Stores timing information for executing this + // build step. + Timing *TimeSpan `json:"timing,omitempty"` + + // Volumes: List of volumes to mount into the build step. Each volume is + // created as an empty volume prior to execution of the build step. Upon + // completion of the build, volumes and their contents are discarded. + // Using a named volume in only one step is not valid as it is + // indicative of a build request with an incorrect configuration. + Volumes []*Volume `json:"volumes,omitempty"` + + // WaitFor: The ID(s) of the step(s) that this build step depends on. + // This build step will not start until all the build steps in + // `wait_for` have completed successfully. If `wait_for` is empty, this + // build step will start when all previous build steps in the + // `Build.Steps` list have completed successfully. + WaitFor []string `json:"waitFor,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowExitCodes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowExitCodes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *BuildStep) MarshalJSON() ([]byte, error) { + type NoMethod BuildStep + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ByProducts: Defines an object for the byproducts field in in-toto // links. The suggested fields are "stderr", "stdout", and // "return-value". @@ -6371,6 +6514,37 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeSpan: Start and end times for a build execution phase. Next ID: 3 +type TimeSpan struct { + // EndTime: End of time span. + EndTime string `json:"endTime,omitempty"` + + // StartTime: Start of time span. + StartTime string `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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeSpan) MarshalJSON() ([]byte, error) { + type NoMethod TimeSpan + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Version: Version contains structured information about the version of // a package. type Version struct { @@ -6426,6 +6600,43 @@ func (s *Version) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Volume: Volume describes a Docker container volume which is mounted +// into build steps in order to persist files across build step +// execution. Next ID: 3 +type Volume struct { + // Name: Name of the volume to mount. Volume names must be unique per + // build step and must be valid names for Docker volumes. Each named + // volume must be used by at least two build steps. + Name string `json:"name,omitempty"` + + // Path: Path at which to mount the volume. Paths must be absolute and + // cannot conflict with other volume paths on the same build step or + // with certain reserved volume paths. + Path string `json:"path,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Volume) MarshalJSON() ([]byte, error) { + type NoMethod Volume + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Vulnerability: Vulnerability provides metadata about a security // vulnerability in a Note. type Vulnerability struct { diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index 74202e174e5..7c2845e0329 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -1953,7 +1953,7 @@ } } }, - "revision": "20220922", + "revision": "20221017", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2187,10 +2187,6 @@ "description": "Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes.", "type": "string" }, - "lookerColumnSpec": { - "$ref": "GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec", - "description": "Looker specific column info of this column." - }, "mode": { "description": "Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. Default mode is `NULLABLE`.", "type": "string" @@ -2209,33 +2205,6 @@ }, "type": "object" }, - "GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec": { - "description": "Column info specific to Looker System.", - "id": "GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec", - "properties": { - "type": { - "description": "Looker specific column type of this column.", - "enum": [ - "LOOKER_COLUMN_TYPE_UNSPECIFIED", - "DIMENSION", - "DIMENSION_GROUP", - "FILTER", - "MEASURE", - "PAREMETER" - ], - "enumDescriptions": [ - "Unspecified.", - "Dimension.", - "Dimension group - parent for Dimension.", - "Filter.", - "Measure.", - "Parameter." - ], - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDatacatalogV1Contacts": { "description": "Contact people for the entry.", "id": "GoogleCloudDatacatalogV1Contacts", @@ -3657,11 +3626,6 @@ "description": "The set of all usage signals that Data Catalog stores. Note: Usually, these signals are updated daily. In rare cases, an update may fail but will be performed again on the next day.", "id": "GoogleCloudDatacatalogV1UsageSignal", "properties": { - "favoriteCount": { - "description": "Favorite count in the source system.", - "format": "int64", - "type": "string" - }, "updateTime": { "description": "The end timestamp of the duration of usage statistics.", "format": "google-datetime", diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index b02e840b206..b829fee4765 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -756,9 +756,6 @@ type GoogleCloudDatacatalogV1ColumnSchema struct { // size of 2000 bytes. Description string `json:"description,omitempty"` - // LookerColumnSpec: Looker specific column info of this column. - LookerColumnSpec *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec `json:"lookerColumnSpec,omitempty"` - // Mode: Optional. A column's mode indicates whether values in this // column are required, nullable, or repeated. Only `NULLABLE`, // `REQUIRED`, and `REPEATED` values are supported. Default mode is @@ -796,43 +793,6 @@ func (s *GoogleCloudDatacatalogV1ColumnSchema) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec: Column info -// specific to Looker System. -type GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec struct { - // Type: Looker specific column type of this column. - // - // Possible values: - // "LOOKER_COLUMN_TYPE_UNSPECIFIED" - Unspecified. - // "DIMENSION" - Dimension. - // "DIMENSION_GROUP" - Dimension group - parent for Dimension. - // "FILTER" - Filter. - // "MEASURE" - Measure. - // "PAREMETER" - Parameter. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDatacatalogV1Contacts: Contact people for the entry. type GoogleCloudDatacatalogV1Contacts struct { // People: The list of contact people for the entry. @@ -3415,9 +3375,6 @@ type GoogleCloudDatacatalogV1UnstarEntryResponse struct { // daily. In rare cases, an update may fail but will be performed again // on the next day. type GoogleCloudDatacatalogV1UsageSignal struct { - // FavoriteCount: Favorite count in the source system. - FavoriteCount int64 `json:"favoriteCount,omitempty,string"` - // UpdateTime: The end timestamp of the duration of usage statistics. UpdateTime string `json:"updateTime,omitempty"` @@ -3426,7 +3383,7 @@ type GoogleCloudDatacatalogV1UsageSignal struct { // `{"24H", "7D", "30D"}`. UsageWithinTimeRange map[string]GoogleCloudDatacatalogV1UsageStats `json:"usageWithinTimeRange,omitempty"` - // ForceSendFields is a list of field names (e.g. "FavoriteCount") to + // ForceSendFields is a list of field names (e.g. "UpdateTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3434,10 +3391,10 @@ type GoogleCloudDatacatalogV1UsageSignal struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FavoriteCount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "UpdateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index 151d6f9038b..c19a2908c08 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20220915", + "revision": "20220922", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -617,7 +617,8 @@ "DESTINATION_ENDPOINT_NOT_FOUND", "MISMATCHED_DESTINATION_NETWORK", "UNSUPPORTED", - "MISMATCHED_IP_VERSION" + "MISMATCHED_IP_VERSION", + "GKE_KONNECTIVITY_PROXY_UNSUPPORTED" ], "enumDescriptions": [ "Cause is unspecified.", @@ -636,7 +637,8 @@ "Aborted because the destination endpoint could not be found.", "Aborted because the destination network does not match the destination endpoint.", "Aborted because the test scenario is not supported.", - "Aborted because the source and destination resources have no common IP version." + "Aborted because the source and destination resources have no common IP version.", + "Aborted because the connection between the control plane and the node of the source cluster is initiated by the node and managed by the Konnectivity proxy." ], "type": "string" }, @@ -1884,7 +1886,7 @@ "PEERING_SUBNET", "PEERING_STATIC", "PEERING_DYNAMIC", - "POLICY_BASED_ROUTE" + "POLICY_BASED" ], "enumDescriptions": [ "Unspecified type. Default value.", diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 27e83316fb2..2042681a5f5 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -239,6 +239,10 @@ type AbortInfo struct { // "UNSUPPORTED" - Aborted because the test scenario is not supported. // "MISMATCHED_IP_VERSION" - Aborted because the source and // destination resources have no common IP version. + // "GKE_KONNECTIVITY_PROXY_UNSUPPORTED" - Aborted because the + // connection between the control plane and the node of the source + // cluster is initiated by the node and managed by the Konnectivity + // proxy. Cause string `json:"cause,omitempty"` // ProjectsMissingPermission: List of project IDs that the user has @@ -2153,7 +2157,7 @@ type RouteInfo struct { // "PEERING_SUBNET" - A subnet route received from peering network. // "PEERING_STATIC" - A static route received from peering network. // "PEERING_DYNAMIC" - A dynamic route received from peering network. - // "POLICY_BASED_ROUTE" - Policy based route. + // "POLICY_BASED" - Policy based route. RouteType string `json:"routeType,omitempty"` // SrcIpRange: Source IP address range of the route. Policy based routes diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index b478577edd1..82f1d6088fa 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -624,7 +624,7 @@ } } }, - "revision": "20220518", + "revision": "20221007", "rootUrl": "https://redis.googleapis.com/", "schemas": { "Empty": { @@ -1304,6 +1304,31 @@ }, "type": "object" }, + "ReconciliationOperationMetadata": { + "description": "Operation metadata returned by the CLH during resource state reconciliation.", + "id": "ReconciliationOperationMetadata", + "properties": { + "deleteResource": { + "description": "DEPRECATED. Use exclusive_action instead.", + "type": "boolean" + }, + "exclusiveAction": { + "description": "Excluisive action returned by the CLH.", + "enum": [ + "UNKNOWN_REPAIR_ACTION", + "DELETE", + "RETRY" + ], + "enumDescriptions": [ + "Unknown repair action.", + "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel. For more information - go/ccfe-delete-on-upsert, go/ccfe-reconciliation-protocol-ug#apply_delete", + "This resource could not be repaired but the repair should be tried again at a later time. This can happen if there is a dependency that needs to be resolved first- e.g. if a parent resource must be repaired before a child resource." + ], + "type": "string" + } + }, + "type": "object" + }, "RescheduleMaintenanceRequest": { "description": "Request for RescheduleMaintenance.", "id": "RescheduleMaintenanceRequest", diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 4cb4944b64f..0c2f194114e 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -1207,6 +1207,51 @@ func (s *PersistenceConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ReconciliationOperationMetadata: Operation metadata returned by the +// CLH during resource state reconciliation. +type ReconciliationOperationMetadata struct { + // DeleteResource: DEPRECATED. Use exclusive_action instead. + DeleteResource bool `json:"deleteResource,omitempty"` + + // ExclusiveAction: Excluisive action returned by the CLH. + // + // Possible values: + // "UNKNOWN_REPAIR_ACTION" - Unknown repair action. + // "DELETE" - The resource has to be deleted. When using this bit, the + // CLH should fail the operation. DEPRECATED. Instead use + // DELETE_RESOURCE OperationSignal in SideChannel. For more information + // - go/ccfe-delete-on-upsert, + // go/ccfe-reconciliation-protocol-ug#apply_delete + // "RETRY" - This resource could not be repaired but the repair should + // be tried again at a later time. This can happen if there is a + // dependency that needs to be resolved first- e.g. if a parent resource + // must be repaired before a child resource. + ExclusiveAction string `json:"exclusiveAction,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeleteResource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeleteResource") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ReconciliationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod ReconciliationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RescheduleMaintenanceRequest: Request for RescheduleMaintenance. type RescheduleMaintenanceRequest struct { // RescheduleType: Required. If reschedule type is SPECIFIC_TIME, must diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index f8f60e7c9b6..e409011a3b9 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -133,7 +133,7 @@ "type": "string" }, "deviceType": { - "description": "The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", + "description": "The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", "location": "query", "type": "string" }, @@ -1490,6 +1490,16 @@ "required": true, "type": "string" }, + "prebuiltRule": { + "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + "location": "query", + "type": "string" + }, + "rawJson": { + "description": "An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.", + "location": "query", + "type": "string" + }, "uri": { "description": "The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.", "location": "query", @@ -1770,7 +1780,7 @@ } } }, - "revision": "20220922", + "revision": "20221014", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -1871,7 +1881,7 @@ "type": "object" }, "GoogleCloudRetailLoggingImportErrorContext": { - "description": "The error payload that is populated on LRO import APIs. Including: \"google.cloud.retail.v2.ProductService.ImportProducts\" \"google.cloud.retail.v2.EventService.ImportUserEvents\"", + "description": "The error payload that is populated on LRO import APIs, including \"google.cloud.retail.v2.ProductService.ImportProducts\" and \"google.cloud.retail.v2.EventService.ImportUserEvents\".", "id": "GoogleCloudRetailLoggingImportErrorContext", "properties": { "catalogItem": { @@ -1882,10 +1892,6 @@ "description": "Cloud Storage file path of the import source. Can be set for batch operation error.", "type": "string" }, - "inventoryActivity": { - "description": "The detailed content which caused the error on importing an inventory activity. http://cs/google3/google/cloud/retail/v2main/inventory_activity.proto", - "type": "string" - }, "lineNumber": { "description": "Line number of the content in file. Should be empty for permission or batch operation error.", "type": "string" @@ -1894,26 +1900,6 @@ "description": "The operation resource name of the LRO.", "type": "string" }, - "order": { - "description": "The detailed content which caused the error on importing an order. http://cs/google3/google/cloud/retail/v2main/order.proto", - "type": "string" - }, - "place": { - "description": "The detailed content which caused the error on importing a place. http://cs/google3/google/cloud/retail/v2main/place.proto", - "type": "string" - }, - "placeAsset": { - "description": "The detailed content which caused the error on importing a place asset. http://cs/google3/google/cloud/retail/v2main/place_asset.proto", - "type": "string" - }, - "placeProductPrice": { - "description": "The detailed content which caused the error on importing a place product price. http://cs/google3/google/cloud/retail/v2main/place_product_price.proto", - "type": "string" - }, - "placeProductSettings": { - "description": "The detailed content which caused the error on importing a place product settings. http://cs/google3/google/cloud/retail/v2main/place_product_settings.proto", - "type": "string" - }, "product": { "description": "The detailed content which caused the error on importing a product.", "type": "string" @@ -2170,6 +2156,20 @@ ], "type": "string" }, + "exactSearchableOption": { + "description": "If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable.", + "enum": [ + "EXACT_SEARCHABLE_OPTION_UNSPECIFIED", + "EXACT_SEARCHABLE_ENABLED", + "EXACT_SEARCHABLE_DISABLED" + ], + "enumDescriptions": [ + "Value used when unset. Defaults to EXACT_SEARCHABLE_DISABLED.", + "Exact searchable option enabled for an attribute.", + "Exact searchable option disabled for an attribute." + ], + "type": "string" + }, "inUse": { "description": "Output only. Indicates whether this attribute has been used by any products. `True` if at least one Product is using this attribute in Product.attributes. Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using CatalogService.AddCatalogAttribute, CatalogService.ImportCatalogAttributes, or CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. After catalog changes, it takes about 10 minutes for this field to update.", "readOnly": true, @@ -4746,6 +4746,17 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaGcsOutputResult": { + "description": "A Gcs output result.", + "id": "GoogleCloudRetailV2alphaGcsOutputResult", + "properties": { + "outputUri": { + "description": "The uri of Gcs output", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaImportCompletionDataResponse": { "description": "Response of the ImportCompletionDataRequest. If the long running operation is done, this message is returned by the google.longrunning.Operations.response field if the operation is successful.", "id": "GoogleCloudRetailV2alphaImportCompletionDataResponse", @@ -5068,15 +5079,22 @@ "type": "object" }, "GoogleCloudRetailV2alphaOutputResult": { - "description": "Output result.", + "description": "Output result that stores the information about where the exported data is stored.", "id": "GoogleCloudRetailV2alphaOutputResult", "properties": { "bigqueryResult": { - "description": "Export result in BigQuery.", + "description": "The BigQuery location where the result is stored.", "items": { "$ref": "GoogleCloudRetailV2alphaBigQueryOutputResult" }, "type": "array" + }, + "gcsResult": { + "description": "The Google Cloud Storage location where the result is stored.", + "items": { + "$ref": "GoogleCloudRetailV2alphaGcsOutputResult" + }, + "type": "array" } }, "type": "object" @@ -5372,6 +5390,17 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaGcsOutputResult": { + "description": "A Gcs output result.", + "id": "GoogleCloudRetailV2betaGcsOutputResult", + "properties": { + "outputUri": { + "description": "The uri of Gcs output", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaImportCompletionDataResponse": { "description": "Response of the ImportCompletionDataRequest. If the long running operation is done, this message is returned by the google.longrunning.Operations.response field if the operation is successful.", "id": "GoogleCloudRetailV2betaImportCompletionDataResponse", @@ -5617,15 +5646,22 @@ "type": "object" }, "GoogleCloudRetailV2betaOutputResult": { - "description": "Output result.", + "description": "Output result that stores the information about where the exported data is stored.", "id": "GoogleCloudRetailV2betaOutputResult", "properties": { "bigqueryResult": { - "description": "Export result in BigQuery.", + "description": "The BigQuery location where the result is stored.", "items": { "$ref": "GoogleCloudRetailV2betaBigQueryOutputResult" }, "type": "array" + }, + "gcsResult": { + "description": "The Google Cloud Storage location where the result is stored.", + "items": { + "$ref": "GoogleCloudRetailV2betaGcsOutputResult" + }, + "type": "array" } }, "type": "object" diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 63ce854570e..30487fde4dd 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -496,9 +496,9 @@ func (s *GoogleCloudRetailLoggingHttpRequestContext) MarshalJSON() ([]byte, erro } // GoogleCloudRetailLoggingImportErrorContext: The error payload that is -// populated on LRO import APIs. Including: -// "google.cloud.retail.v2.ProductService.ImportProducts" -// "google.cloud.retail.v2.EventService.ImportUserEvents" +// populated on LRO import APIs, including +// "google.cloud.retail.v2.ProductService.ImportProducts" and +// "google.cloud.retail.v2.EventService.ImportUserEvents". type GoogleCloudRetailLoggingImportErrorContext struct { // CatalogItem: The detailed content which caused the error on importing // a catalog item. @@ -508,11 +508,6 @@ type GoogleCloudRetailLoggingImportErrorContext struct { // batch operation error. GcsPath string `json:"gcsPath,omitempty"` - // InventoryActivity: The detailed content which caused the error on - // importing an inventory activity. - // http://cs/google3/google/cloud/retail/v2main/inventory_activity.proto - InventoryActivity string `json:"inventoryActivity,omitempty"` - // LineNumber: Line number of the content in file. Should be empty for // permission or batch operation error. LineNumber string `json:"lineNumber,omitempty"` @@ -520,29 +515,6 @@ type GoogleCloudRetailLoggingImportErrorContext struct { // OperationName: The operation resource name of the LRO. OperationName string `json:"operationName,omitempty"` - // Order: The detailed content which caused the error on importing an - // order. http://cs/google3/google/cloud/retail/v2main/order.proto - Order string `json:"order,omitempty"` - - // Place: The detailed content which caused the error on importing a - // place. http://cs/google3/google/cloud/retail/v2main/place.proto - Place string `json:"place,omitempty"` - - // PlaceAsset: The detailed content which caused the error on importing - // a place asset. - // http://cs/google3/google/cloud/retail/v2main/place_asset.proto - PlaceAsset string `json:"placeAsset,omitempty"` - - // PlaceProductPrice: The detailed content which caused the error on - // importing a place product price. - // http://cs/google3/google/cloud/retail/v2main/place_product_price.proto - PlaceProductPrice string `json:"placeProductPrice,omitempty"` - - // PlaceProductSettings: The detailed content which caused the error on - // importing a place product settings. - // http://cs/google3/google/cloud/retail/v2main/place_product_settings.proto - PlaceProductSettings string `json:"placeProductSettings,omitempty"` - // Product: The detailed content which caused the error on importing a // product. Product string `json:"product,omitempty"` @@ -1064,6 +1036,20 @@ type GoogleCloudRetailV2CatalogAttribute struct { // for an attribute. DynamicFacetableOption string `json:"dynamicFacetableOption,omitempty"` + // ExactSearchableOption: If EXACT_SEARCHABLE_ENABLED, attribute values + // will be exact searchable. This property only applies to textual + // custom attributes and requires indexable set to enabled to enable + // exact-searchable. + // + // Possible values: + // "EXACT_SEARCHABLE_OPTION_UNSPECIFIED" - Value used when unset. + // Defaults to EXACT_SEARCHABLE_DISABLED. + // "EXACT_SEARCHABLE_ENABLED" - Exact searchable option enabled for an + // attribute. + // "EXACT_SEARCHABLE_DISABLED" - Exact searchable option disabled for + // an attribute. + ExactSearchableOption string `json:"exactSearchableOption,omitempty"` + // InUse: Output only. Indicates whether this attribute has been used by // any products. `True` if at least one Product is using this attribute // in Product.attributes. Otherwise, this field is `False`. @@ -6135,6 +6121,34 @@ func (s *GoogleCloudRetailV2alphaExportUserEventsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaGcsOutputResult: A Gcs output result. +type GoogleCloudRetailV2alphaGcsOutputResult struct { + // OutputUri: The uri of Gcs output + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaGcsOutputResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaGcsOutputResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaImportCompletionDataResponse: Response of the // ImportCompletionDataRequest. If the long running operation is done, // this message is returned by the @@ -6709,11 +6723,16 @@ func (s *GoogleCloudRetailV2alphaModelServingConfigList) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRetailV2alphaOutputResult: Output result. +// GoogleCloudRetailV2alphaOutputResult: Output result that stores the +// information about where the exported data is stored. type GoogleCloudRetailV2alphaOutputResult struct { - // BigqueryResult: Export result in BigQuery. + // BigqueryResult: The BigQuery location where the result is stored. BigqueryResult []*GoogleCloudRetailV2alphaBigQueryOutputResult `json:"bigqueryResult,omitempty"` + // GcsResult: The Google Cloud Storage location where the result is + // stored. + GcsResult []*GoogleCloudRetailV2alphaGcsOutputResult `json:"gcsResult,omitempty"` + // ForceSendFields is a list of field names (e.g. "BigqueryResult") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -7280,6 +7299,34 @@ func (s *GoogleCloudRetailV2betaExportUserEventsResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaGcsOutputResult: A Gcs output result. +type GoogleCloudRetailV2betaGcsOutputResult struct { + // OutputUri: The uri of Gcs output + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaGcsOutputResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaGcsOutputResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaImportCompletionDataResponse: Response of the // ImportCompletionDataRequest. If the long running operation is done, // this message is returned by the @@ -7668,11 +7715,16 @@ func (s *GoogleCloudRetailV2betaModelServingConfigList) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRetailV2betaOutputResult: Output result. +// GoogleCloudRetailV2betaOutputResult: Output result that stores the +// information about where the exported data is stored. type GoogleCloudRetailV2betaOutputResult struct { - // BigqueryResult: Export result in BigQuery. + // BigqueryResult: The BigQuery location where the result is stored. BigqueryResult []*GoogleCloudRetailV2betaBigQueryOutputResult `json:"bigqueryResult,omitempty"` + // GcsResult: The Google Cloud Storage location where the result is + // stored. + GcsResult []*GoogleCloudRetailV2betaGcsOutputResult `json:"gcsResult,omitempty"` + // ForceSendFields is a list of field names (e.g. "BigqueryResult") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -8127,11 +8179,12 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Dataset(dataset string) *Pr } // DeviceType sets the optional parameter "deviceType": The device type -// context for completion suggestions. It is useful to apply different -// suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If -// it is empty, the suggestions are across all device types. Supported -// formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A -// customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`. +// context for completion suggestions. We recommend that you leave this +// field empty. It can apply different suggestions on different device +// types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are +// across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * +// `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. +// `OTHER_IPHONE`. func (c *ProjectsLocationsCatalogsCompleteQueryCall) DeviceType(deviceType string) *ProjectsLocationsCatalogsCompleteQueryCall { c.urlParams_.Set("deviceType", deviceType) return c @@ -8304,7 +8357,7 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp // "type": "string" // }, // "deviceType": { - // "description": "The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", + // "description": "The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", // "location": "query", // "type": "string" // }, @@ -15170,6 +15223,24 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Ets(ets int64) *Project return c } +// PrebuiltRule sets the optional parameter "prebuiltRule": The prebuilt +// rule name that can convert a specific type of raw_json. For example: +// "default_schema/v1.0" +func (c *ProjectsLocationsCatalogsUserEventsCollectCall) PrebuiltRule(prebuiltRule string) *ProjectsLocationsCatalogsUserEventsCollectCall { + c.urlParams_.Set("prebuiltRule", prebuiltRule) + return c +} + +// RawJson sets the optional parameter "rawJson": An arbitrary +// serialized JSON string that contains necessary information that can +// comprise a user event. When this field is specified, the user_event +// field will be ignored. Note: line-delimited JSON is not supported, a +// single JSON only. +func (c *ProjectsLocationsCatalogsUserEventsCollectCall) RawJson(rawJson string) *ProjectsLocationsCatalogsUserEventsCollectCall { + c.urlParams_.Set("rawJson", rawJson) + return c +} + // Uri sets the optional parameter "uri": The URL including // cgi-parameters but excluding the hash fragment with a length limit of // 5,000 characters. This is often more useful than the referer URL, @@ -15306,6 +15377,16 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Do(opts ...googleapi.Ca // "required": true, // "type": "string" // }, + // "prebuiltRule": { + // "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + // "location": "query", + // "type": "string" + // }, + // "rawJson": { + // "description": "An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.", + // "location": "query", + // "type": "string" + // }, // "uri": { // "description": "The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.", // "location": "query", diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index d8d5d6028ab..58ee3cdeb11 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -133,7 +133,7 @@ "type": "string" }, "deviceType": { - "description": "The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", + "description": "The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", "location": "query", "type": "string" }, @@ -1800,6 +1800,16 @@ "required": true, "type": "string" }, + "prebuiltRule": { + "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + "location": "query", + "type": "string" + }, + "rawJson": { + "description": "An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.", + "location": "query", + "type": "string" + }, "uri": { "description": "The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.", "location": "query", @@ -2080,7 +2090,7 @@ } } }, - "revision": "20220922", + "revision": "20221014", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2181,7 +2191,7 @@ "type": "object" }, "GoogleCloudRetailLoggingImportErrorContext": { - "description": "The error payload that is populated on LRO import APIs. Including: \"google.cloud.retail.v2.ProductService.ImportProducts\" \"google.cloud.retail.v2.EventService.ImportUserEvents\"", + "description": "The error payload that is populated on LRO import APIs, including \"google.cloud.retail.v2.ProductService.ImportProducts\" and \"google.cloud.retail.v2.EventService.ImportUserEvents\".", "id": "GoogleCloudRetailLoggingImportErrorContext", "properties": { "catalogItem": { @@ -2192,10 +2202,6 @@ "description": "Cloud Storage file path of the import source. Can be set for batch operation error.", "type": "string" }, - "inventoryActivity": { - "description": "The detailed content which caused the error on importing an inventory activity. http://cs/google3/google/cloud/retail/v2main/inventory_activity.proto", - "type": "string" - }, "lineNumber": { "description": "Line number of the content in file. Should be empty for permission or batch operation error.", "type": "string" @@ -2204,26 +2210,6 @@ "description": "The operation resource name of the LRO.", "type": "string" }, - "order": { - "description": "The detailed content which caused the error on importing an order. http://cs/google3/google/cloud/retail/v2main/order.proto", - "type": "string" - }, - "place": { - "description": "The detailed content which caused the error on importing a place. http://cs/google3/google/cloud/retail/v2main/place.proto", - "type": "string" - }, - "placeAsset": { - "description": "The detailed content which caused the error on importing a place asset. http://cs/google3/google/cloud/retail/v2main/place_asset.proto", - "type": "string" - }, - "placeProductPrice": { - "description": "The detailed content which caused the error on importing a place product price. http://cs/google3/google/cloud/retail/v2main/place_product_price.proto", - "type": "string" - }, - "placeProductSettings": { - "description": "The detailed content which caused the error on importing a place product settings. http://cs/google3/google/cloud/retail/v2main/place_product_settings.proto", - "type": "string" - }, "product": { "description": "The detailed content which caused the error on importing a product.", "type": "string" @@ -3244,6 +3230,17 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaGcsOutputResult": { + "description": "A Gcs output result.", + "id": "GoogleCloudRetailV2alphaGcsOutputResult", + "properties": { + "outputUri": { + "description": "The uri of Gcs output", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaGcsSource": { "description": "Google Cloud Storage location for input content.", "id": "GoogleCloudRetailV2alphaGcsSource", @@ -3920,15 +3917,22 @@ "type": "object" }, "GoogleCloudRetailV2alphaOutputResult": { - "description": "Output result.", + "description": "Output result that stores the information about where the exported data is stored.", "id": "GoogleCloudRetailV2alphaOutputResult", "properties": { "bigqueryResult": { - "description": "Export result in BigQuery.", + "description": "The BigQuery location where the result is stored.", "items": { "$ref": "GoogleCloudRetailV2alphaBigQueryOutputResult" }, "type": "array" + }, + "gcsResult": { + "description": "The Google Cloud Storage location where the result is stored.", + "items": { + "$ref": "GoogleCloudRetailV2alphaGcsOutputResult" + }, + "type": "array" } }, "type": "object" @@ -5899,6 +5903,17 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaGcsOutputResult": { + "description": "A Gcs output result.", + "id": "GoogleCloudRetailV2betaGcsOutputResult", + "properties": { + "outputUri": { + "description": "The uri of Gcs output", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaImportCompletionDataResponse": { "description": "Response of the ImportCompletionDataRequest. If the long running operation is done, this message is returned by the google.longrunning.Operations.response field if the operation is successful.", "id": "GoogleCloudRetailV2betaImportCompletionDataResponse", @@ -6144,15 +6159,22 @@ "type": "object" }, "GoogleCloudRetailV2betaOutputResult": { - "description": "Output result.", + "description": "Output result that stores the information about where the exported data is stored.", "id": "GoogleCloudRetailV2betaOutputResult", "properties": { "bigqueryResult": { - "description": "Export result in BigQuery.", + "description": "The BigQuery location where the result is stored.", "items": { "$ref": "GoogleCloudRetailV2betaBigQueryOutputResult" }, "type": "array" + }, + "gcsResult": { + "description": "The Google Cloud Storage location where the result is stored.", + "items": { + "$ref": "GoogleCloudRetailV2betaGcsOutputResult" + }, + "type": "array" } }, "type": "object" diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 8b4a0a5df65..3202f3fdc61 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -532,9 +532,9 @@ func (s *GoogleCloudRetailLoggingHttpRequestContext) MarshalJSON() ([]byte, erro } // GoogleCloudRetailLoggingImportErrorContext: The error payload that is -// populated on LRO import APIs. Including: -// "google.cloud.retail.v2.ProductService.ImportProducts" -// "google.cloud.retail.v2.EventService.ImportUserEvents" +// populated on LRO import APIs, including +// "google.cloud.retail.v2.ProductService.ImportProducts" and +// "google.cloud.retail.v2.EventService.ImportUserEvents". type GoogleCloudRetailLoggingImportErrorContext struct { // CatalogItem: The detailed content which caused the error on importing // a catalog item. @@ -544,11 +544,6 @@ type GoogleCloudRetailLoggingImportErrorContext struct { // batch operation error. GcsPath string `json:"gcsPath,omitempty"` - // InventoryActivity: The detailed content which caused the error on - // importing an inventory activity. - // http://cs/google3/google/cloud/retail/v2main/inventory_activity.proto - InventoryActivity string `json:"inventoryActivity,omitempty"` - // LineNumber: Line number of the content in file. Should be empty for // permission or batch operation error. LineNumber string `json:"lineNumber,omitempty"` @@ -556,29 +551,6 @@ type GoogleCloudRetailLoggingImportErrorContext struct { // OperationName: The operation resource name of the LRO. OperationName string `json:"operationName,omitempty"` - // Order: The detailed content which caused the error on importing an - // order. http://cs/google3/google/cloud/retail/v2main/order.proto - Order string `json:"order,omitempty"` - - // Place: The detailed content which caused the error on importing a - // place. http://cs/google3/google/cloud/retail/v2main/place.proto - Place string `json:"place,omitempty"` - - // PlaceAsset: The detailed content which caused the error on importing - // a place asset. - // http://cs/google3/google/cloud/retail/v2main/place_asset.proto - PlaceAsset string `json:"placeAsset,omitempty"` - - // PlaceProductPrice: The detailed content which caused the error on - // importing a place product price. - // http://cs/google3/google/cloud/retail/v2main/place_product_price.proto - PlaceProductPrice string `json:"placeProductPrice,omitempty"` - - // PlaceProductSettings: The detailed content which caused the error on - // importing a place product settings. - // http://cs/google3/google/cloud/retail/v2main/place_product_settings.proto - PlaceProductSettings string `json:"placeProductSettings,omitempty"` - // Product: The detailed content which caused the error on importing a // product. Product string `json:"product,omitempty"` @@ -2518,6 +2490,34 @@ func (s *GoogleCloudRetailV2alphaFulfillmentInfo) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaGcsOutputResult: A Gcs output result. +type GoogleCloudRetailV2alphaGcsOutputResult struct { + // OutputUri: The uri of Gcs output + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaGcsOutputResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaGcsOutputResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaGcsSource: Google Cloud Storage location for // input content. type GoogleCloudRetailV2alphaGcsSource struct { @@ -3813,11 +3813,16 @@ func (s *GoogleCloudRetailV2alphaModelServingConfigList) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRetailV2alphaOutputResult: Output result. +// GoogleCloudRetailV2alphaOutputResult: Output result that stores the +// information about where the exported data is stored. type GoogleCloudRetailV2alphaOutputResult struct { - // BigqueryResult: Export result in BigQuery. + // BigqueryResult: The BigQuery location where the result is stored. BigqueryResult []*GoogleCloudRetailV2alphaBigQueryOutputResult `json:"bigqueryResult,omitempty"` + // GcsResult: The Google Cloud Storage location where the result is + // stored. + GcsResult []*GoogleCloudRetailV2alphaGcsOutputResult `json:"gcsResult,omitempty"` + // ForceSendFields is a list of field names (e.g. "BigqueryResult") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -7710,6 +7715,34 @@ func (s *GoogleCloudRetailV2betaExportUserEventsResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaGcsOutputResult: A Gcs output result. +type GoogleCloudRetailV2betaGcsOutputResult struct { + // OutputUri: The uri of Gcs output + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaGcsOutputResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaGcsOutputResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaImportCompletionDataResponse: Response of the // ImportCompletionDataRequest. If the long running operation is done, // this message is returned by the @@ -8098,11 +8131,16 @@ func (s *GoogleCloudRetailV2betaModelServingConfigList) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRetailV2betaOutputResult: Output result. +// GoogleCloudRetailV2betaOutputResult: Output result that stores the +// information about where the exported data is stored. type GoogleCloudRetailV2betaOutputResult struct { - // BigqueryResult: Export result in BigQuery. + // BigqueryResult: The BigQuery location where the result is stored. BigqueryResult []*GoogleCloudRetailV2betaBigQueryOutputResult `json:"bigqueryResult,omitempty"` + // GcsResult: The Google Cloud Storage location where the result is + // stored. + GcsResult []*GoogleCloudRetailV2betaGcsOutputResult `json:"gcsResult,omitempty"` + // ForceSendFields is a list of field names (e.g. "BigqueryResult") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -8557,11 +8595,12 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Dataset(dataset string) *Pr } // DeviceType sets the optional parameter "deviceType": The device type -// context for completion suggestions. It is useful to apply different -// suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If -// it is empty, the suggestions are across all device types. Supported -// formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A -// customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`. +// context for completion suggestions. We recommend that you leave this +// field empty. It can apply different suggestions on different device +// types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are +// across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * +// `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. +// `OTHER_IPHONE`. func (c *ProjectsLocationsCatalogsCompleteQueryCall) DeviceType(deviceType string) *ProjectsLocationsCatalogsCompleteQueryCall { c.urlParams_.Set("deviceType", deviceType) return c @@ -8734,7 +8773,7 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp // "type": "string" // }, // "deviceType": { - // "description": "The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", + // "description": "The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", // "location": "query", // "type": "string" // }, @@ -17161,6 +17200,24 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Ets(ets int64) *Project return c } +// PrebuiltRule sets the optional parameter "prebuiltRule": The prebuilt +// rule name that can convert a specific type of raw_json. For example: +// "default_schema/v1.0" +func (c *ProjectsLocationsCatalogsUserEventsCollectCall) PrebuiltRule(prebuiltRule string) *ProjectsLocationsCatalogsUserEventsCollectCall { + c.urlParams_.Set("prebuiltRule", prebuiltRule) + return c +} + +// RawJson sets the optional parameter "rawJson": An arbitrary +// serialized JSON string that contains necessary information that can +// comprise a user event. When this field is specified, the user_event +// field will be ignored. Note: line-delimited JSON is not supported, a +// single JSON only. +func (c *ProjectsLocationsCatalogsUserEventsCollectCall) RawJson(rawJson string) *ProjectsLocationsCatalogsUserEventsCollectCall { + c.urlParams_.Set("rawJson", rawJson) + return c +} + // Uri sets the optional parameter "uri": The URL including // cgi-parameters but excluding the hash fragment with a length limit of // 5,000 characters. This is often more useful than the referer URL, @@ -17297,6 +17354,16 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Do(opts ...googleapi.Ca // "required": true, // "type": "string" // }, + // "prebuiltRule": { + // "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + // "location": "query", + // "type": "string" + // }, + // "rawJson": { + // "description": "An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.", + // "location": "query", + // "type": "string" + // }, // "uri": { // "description": "The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.", // "location": "query", diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 56e1b492d64..566a1c9a0a0 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -133,7 +133,7 @@ "type": "string" }, "deviceType": { - "description": "The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", + "description": "The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", "location": "query", "type": "string" }, @@ -1734,6 +1734,16 @@ "required": true, "type": "string" }, + "prebuiltRule": { + "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + "location": "query", + "type": "string" + }, + "rawJson": { + "description": "An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.", + "location": "query", + "type": "string" + }, "uri": { "description": "The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.", "location": "query", @@ -2014,7 +2024,7 @@ } } }, - "revision": "20220922", + "revision": "20221014", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2115,7 +2125,7 @@ "type": "object" }, "GoogleCloudRetailLoggingImportErrorContext": { - "description": "The error payload that is populated on LRO import APIs. Including: \"google.cloud.retail.v2.ProductService.ImportProducts\" \"google.cloud.retail.v2.EventService.ImportUserEvents\"", + "description": "The error payload that is populated on LRO import APIs, including \"google.cloud.retail.v2.ProductService.ImportProducts\" and \"google.cloud.retail.v2.EventService.ImportUserEvents\".", "id": "GoogleCloudRetailLoggingImportErrorContext", "properties": { "catalogItem": { @@ -2126,10 +2136,6 @@ "description": "Cloud Storage file path of the import source. Can be set for batch operation error.", "type": "string" }, - "inventoryActivity": { - "description": "The detailed content which caused the error on importing an inventory activity. http://cs/google3/google/cloud/retail/v2main/inventory_activity.proto", - "type": "string" - }, "lineNumber": { "description": "Line number of the content in file. Should be empty for permission or batch operation error.", "type": "string" @@ -2138,26 +2144,6 @@ "description": "The operation resource name of the LRO.", "type": "string" }, - "order": { - "description": "The detailed content which caused the error on importing an order. http://cs/google3/google/cloud/retail/v2main/order.proto", - "type": "string" - }, - "place": { - "description": "The detailed content which caused the error on importing a place. http://cs/google3/google/cloud/retail/v2main/place.proto", - "type": "string" - }, - "placeAsset": { - "description": "The detailed content which caused the error on importing a place asset. http://cs/google3/google/cloud/retail/v2main/place_asset.proto", - "type": "string" - }, - "placeProductPrice": { - "description": "The detailed content which caused the error on importing a place product price. http://cs/google3/google/cloud/retail/v2main/place_product_price.proto", - "type": "string" - }, - "placeProductSettings": { - "description": "The detailed content which caused the error on importing a place product settings. http://cs/google3/google/cloud/retail/v2main/place_product_settings.proto", - "type": "string" - }, "product": { "description": "The detailed content which caused the error on importing a product.", "type": "string" @@ -2526,6 +2512,17 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaGcsOutputResult": { + "description": "A Gcs output result.", + "id": "GoogleCloudRetailV2alphaGcsOutputResult", + "properties": { + "outputUri": { + "description": "The uri of Gcs output", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaImportCompletionDataResponse": { "description": "Response of the ImportCompletionDataRequest. If the long running operation is done, this message is returned by the google.longrunning.Operations.response field if the operation is successful.", "id": "GoogleCloudRetailV2alphaImportCompletionDataResponse", @@ -2848,15 +2845,22 @@ "type": "object" }, "GoogleCloudRetailV2alphaOutputResult": { - "description": "Output result.", + "description": "Output result that stores the information about where the exported data is stored.", "id": "GoogleCloudRetailV2alphaOutputResult", "properties": { "bigqueryResult": { - "description": "Export result in BigQuery.", + "description": "The BigQuery location where the result is stored.", "items": { "$ref": "GoogleCloudRetailV2alphaBigQueryOutputResult" }, "type": "array" + }, + "gcsResult": { + "description": "The Google Cloud Storage location where the result is stored.", + "items": { + "$ref": "GoogleCloudRetailV2alphaGcsOutputResult" + }, + "type": "array" } }, "type": "object" @@ -3804,6 +3808,17 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaGcsOutputResult": { + "description": "A Gcs output result.", + "id": "GoogleCloudRetailV2betaGcsOutputResult", + "properties": { + "outputUri": { + "description": "The uri of Gcs output", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaGcsSource": { "description": "Google Cloud Storage location for input content.", "id": "GoogleCloudRetailV2betaGcsSource", @@ -4394,15 +4409,22 @@ "type": "object" }, "GoogleCloudRetailV2betaOutputResult": { - "description": "Output result.", + "description": "Output result that stores the information about where the exported data is stored.", "id": "GoogleCloudRetailV2betaOutputResult", "properties": { "bigqueryResult": { - "description": "Export result in BigQuery.", + "description": "The BigQuery location where the result is stored.", "items": { "$ref": "GoogleCloudRetailV2betaBigQueryOutputResult" }, "type": "array" + }, + "gcsResult": { + "description": "The Google Cloud Storage location where the result is stored.", + "items": { + "$ref": "GoogleCloudRetailV2betaGcsOutputResult" + }, + "type": "array" } }, "type": "object" diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 46116b927cc..02d87f33bdb 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -508,9 +508,9 @@ func (s *GoogleCloudRetailLoggingHttpRequestContext) MarshalJSON() ([]byte, erro } // GoogleCloudRetailLoggingImportErrorContext: The error payload that is -// populated on LRO import APIs. Including: -// "google.cloud.retail.v2.ProductService.ImportProducts" -// "google.cloud.retail.v2.EventService.ImportUserEvents" +// populated on LRO import APIs, including +// "google.cloud.retail.v2.ProductService.ImportProducts" and +// "google.cloud.retail.v2.EventService.ImportUserEvents". type GoogleCloudRetailLoggingImportErrorContext struct { // CatalogItem: The detailed content which caused the error on importing // a catalog item. @@ -520,11 +520,6 @@ type GoogleCloudRetailLoggingImportErrorContext struct { // batch operation error. GcsPath string `json:"gcsPath,omitempty"` - // InventoryActivity: The detailed content which caused the error on - // importing an inventory activity. - // http://cs/google3/google/cloud/retail/v2main/inventory_activity.proto - InventoryActivity string `json:"inventoryActivity,omitempty"` - // LineNumber: Line number of the content in file. Should be empty for // permission or batch operation error. LineNumber string `json:"lineNumber,omitempty"` @@ -532,29 +527,6 @@ type GoogleCloudRetailLoggingImportErrorContext struct { // OperationName: The operation resource name of the LRO. OperationName string `json:"operationName,omitempty"` - // Order: The detailed content which caused the error on importing an - // order. http://cs/google3/google/cloud/retail/v2main/order.proto - Order string `json:"order,omitempty"` - - // Place: The detailed content which caused the error on importing a - // place. http://cs/google3/google/cloud/retail/v2main/place.proto - Place string `json:"place,omitempty"` - - // PlaceAsset: The detailed content which caused the error on importing - // a place asset. - // http://cs/google3/google/cloud/retail/v2main/place_asset.proto - PlaceAsset string `json:"placeAsset,omitempty"` - - // PlaceProductPrice: The detailed content which caused the error on - // importing a place product price. - // http://cs/google3/google/cloud/retail/v2main/place_product_price.proto - PlaceProductPrice string `json:"placeProductPrice,omitempty"` - - // PlaceProductSettings: The detailed content which caused the error on - // importing a place product settings. - // http://cs/google3/google/cloud/retail/v2main/place_product_settings.proto - PlaceProductSettings string `json:"placeProductSettings,omitempty"` - // Product: The detailed content which caused the error on importing a // product. Product string `json:"product,omitempty"` @@ -1258,6 +1230,34 @@ func (s *GoogleCloudRetailV2alphaExportUserEventsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaGcsOutputResult: A Gcs output result. +type GoogleCloudRetailV2alphaGcsOutputResult struct { + // OutputUri: The uri of Gcs output + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaGcsOutputResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaGcsOutputResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaImportCompletionDataResponse: Response of the // ImportCompletionDataRequest. If the long running operation is done, // this message is returned by the @@ -1832,11 +1832,16 @@ func (s *GoogleCloudRetailV2alphaModelServingConfigList) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRetailV2alphaOutputResult: Output result. +// GoogleCloudRetailV2alphaOutputResult: Output result that stores the +// information about where the exported data is stored. type GoogleCloudRetailV2alphaOutputResult struct { - // BigqueryResult: Export result in BigQuery. + // BigqueryResult: The BigQuery location where the result is stored. BigqueryResult []*GoogleCloudRetailV2alphaBigQueryOutputResult `json:"bigqueryResult,omitempty"` + // GcsResult: The Google Cloud Storage location where the result is + // stored. + GcsResult []*GoogleCloudRetailV2alphaGcsOutputResult `json:"gcsResult,omitempty"` + // ForceSendFields is a list of field names (e.g. "BigqueryResult") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3638,6 +3643,34 @@ func (s *GoogleCloudRetailV2betaFulfillmentInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaGcsOutputResult: A Gcs output result. +type GoogleCloudRetailV2betaGcsOutputResult struct { + // OutputUri: The uri of Gcs output + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaGcsOutputResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaGcsOutputResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaGcsSource: Google Cloud Storage location for // input content. type GoogleCloudRetailV2betaGcsSource struct { @@ -4733,11 +4766,16 @@ func (s *GoogleCloudRetailV2betaModelServingConfigList) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRetailV2betaOutputResult: Output result. +// GoogleCloudRetailV2betaOutputResult: Output result that stores the +// information about where the exported data is stored. type GoogleCloudRetailV2betaOutputResult struct { - // BigqueryResult: Export result in BigQuery. + // BigqueryResult: The BigQuery location where the result is stored. BigqueryResult []*GoogleCloudRetailV2betaBigQueryOutputResult `json:"bigqueryResult,omitempty"` + // GcsResult: The Google Cloud Storage location where the result is + // stored. + GcsResult []*GoogleCloudRetailV2betaGcsOutputResult `json:"gcsResult,omitempty"` + // ForceSendFields is a list of field names (e.g. "BigqueryResult") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -8451,11 +8489,12 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Dataset(dataset string) *Pr } // DeviceType sets the optional parameter "deviceType": The device type -// context for completion suggestions. It is useful to apply different -// suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If -// it is empty, the suggestions are across all device types. Supported -// formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A -// customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`. +// context for completion suggestions. We recommend that you leave this +// field empty. It can apply different suggestions on different device +// types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are +// across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * +// `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. +// `OTHER_IPHONE`. func (c *ProjectsLocationsCatalogsCompleteQueryCall) DeviceType(deviceType string) *ProjectsLocationsCatalogsCompleteQueryCall { c.urlParams_.Set("deviceType", deviceType) return c @@ -8628,7 +8667,7 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp // "type": "string" // }, // "deviceType": { - // "description": "The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", + // "description": "The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.", // "location": "query", // "type": "string" // }, @@ -16735,6 +16774,24 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Ets(ets int64) *Project return c } +// PrebuiltRule sets the optional parameter "prebuiltRule": The prebuilt +// rule name that can convert a specific type of raw_json. For example: +// "default_schema/v1.0" +func (c *ProjectsLocationsCatalogsUserEventsCollectCall) PrebuiltRule(prebuiltRule string) *ProjectsLocationsCatalogsUserEventsCollectCall { + c.urlParams_.Set("prebuiltRule", prebuiltRule) + return c +} + +// RawJson sets the optional parameter "rawJson": An arbitrary +// serialized JSON string that contains necessary information that can +// comprise a user event. When this field is specified, the user_event +// field will be ignored. Note: line-delimited JSON is not supported, a +// single JSON only. +func (c *ProjectsLocationsCatalogsUserEventsCollectCall) RawJson(rawJson string) *ProjectsLocationsCatalogsUserEventsCollectCall { + c.urlParams_.Set("rawJson", rawJson) + return c +} + // Uri sets the optional parameter "uri": The URL including // cgi-parameters but excluding the hash fragment with a length limit of // 5,000 characters. This is often more useful than the referer URL, @@ -16871,6 +16928,16 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Do(opts ...googleapi.Ca // "required": true, // "type": "string" // }, + // "prebuiltRule": { + // "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + // "location": "query", + // "type": "string" + // }, + // "rawJson": { + // "description": "An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.", + // "location": "query", + // "type": "string" + // }, // "uri": { // "description": "The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.", // "location": "query", diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 943a66e4e0d..90b627c189c 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20220925", + "revision": "20221016", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -3069,7 +3069,7 @@ "id": "HTTPHeader", "properties": { "name": { - "description": "The header field name", + "description": "Required. The header field name", "type": "string" }, "value": { @@ -4434,7 +4434,7 @@ "type": "string" }, "latestRevision": { - "description": "Optional. LatestRevision may be provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.", + "description": "Optional. LatestRevision may be provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty in spec. When shown in status, this indicates that the RevisionName was resolved from a spec's ConfigurationName.", "type": "boolean" }, "percent": { diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 04a12f58356..91c959ad185 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -1827,7 +1827,7 @@ func (s *HTTPGetAction) MarshalJSON() ([]byte, error) { // HTTPHeader: HTTPHeader describes a custom header to be used in HTTP // probes type HTTPHeader struct { - // Name: The header field name + // Name: Required. The header field name Name string `json:"name,omitempty"` // Value: The header field value @@ -4301,7 +4301,8 @@ type TrafficTarget struct { // that the latest ready Revision of the Configuration should be used // for this traffic target. When provided LatestRevision must be true if // RevisionName is empty; it must be false when RevisionName is - // non-empty. + // non-empty in spec. When shown in status, this indicates that the + // RevisionName was resolved from a spec's ConfigurationName. LatestRevision bool `json:"latestRevision,omitempty"` // Percent: Percent specifies percent of the traffic to this Revision or diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 859633a01f7..d4e5d7cc024 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -126,7 +126,7 @@ "type": "string" }, "parent": { - "description": "Required. The location and project in which this Job should be created. Format: projects/{projectnumber}/locations/{location}", + "description": "Required. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -169,7 +169,7 @@ "type": "boolean" }, "name": { - "description": "Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job}", + "description": "Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", "required": true, @@ -199,7 +199,7 @@ ], "parameters": { "name": { - "description": "Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job}", + "description": "Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", "required": true, @@ -266,7 +266,7 @@ "type": "string" }, "parent": { - "description": "Required. The location and project to list resources on. Format: projects/{projectnumber}/locations/{location}", + "description": "Required. The location and project to list resources on. Format: projects/{project}/locations/{location}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -334,7 +334,7 @@ ], "parameters": { "name": { - "description": "Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job}", + "description": "Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", "required": true, @@ -696,14 +696,14 @@ ], "parameters": { "parent": { - "description": "Required. The location and project in which this service should be created. Format: projects/{projectnumber}/locations/{location} Only lowercase, digits, and hyphens; must begin with letter, and may not end with hyphen; must contain fewer than 50 characters.", + "description": "Required. The location and project in which this service should be created. Format: projects/{project}/locations/{location} Only lowercase characters, digits, and hyphens.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, "serviceId": { - "description": "Required. The unique identifier for the Service. The name of the service becomes {parent}/services/{service_id}.", + "description": "Required. The unique identifier for the Service. It must begin with letter, and may not end with hyphen; must contain fewer than 50 characters. The name of the service becomes {parent}/services/{service_id}.", "location": "query", "type": "string" }, @@ -739,7 +739,7 @@ "type": "string" }, "name": { - "description": "Required. The full name of the Service. Format: projects/{projectnumber}/locations/{location}/services/{service}", + "description": "Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", "required": true, @@ -769,7 +769,7 @@ ], "parameters": { "name": { - "description": "Required. The full name of the Service. Format: projects/{projectnumber}/locations/{location}/services/{service}", + "description": "Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", "required": true, @@ -836,7 +836,7 @@ "type": "string" }, "parent": { - "description": "Required. The location and project to list resources on. Location must be a valid GCP region, and may not be the \"-\" wildcard. Format: projects/{projectnumber}/locations/{location}", + "description": "Required. The location and project to list resources on. Location must be a valid GCP region, and may not be the \"-\" wildcard. Format: projects/{project}/locations/{location}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -1064,7 +1064,7 @@ } } }, - "revision": "20220925", + "revision": "20221016", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1565,30 +1565,10 @@ }, "type": "object" }, - "GoogleCloudRunV2GRPCAction": { - "description": "GRPCAction describes an action involving a GRPC port.", - "id": "GoogleCloudRunV2GRPCAction", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudRunV2HTTPGetAction": { "description": "HTTPGetAction describes an action based on HTTP Get requests.", "id": "GoogleCloudRunV2HTTPGetAction", "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", - "type": "string" - }, "httpHeaders": { "description": "Custom headers to set in the request. HTTP allows repeated headers.", "items": { @@ -1599,10 +1579,6 @@ "path": { "description": "Path to access on the HTTP server. Defaults to '/'.", "type": "string" - }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" } }, "type": "object" @@ -1616,7 +1592,7 @@ "type": "string" }, "value": { - "description": "Required. The header field value", + "description": "The header field value", "type": "string" } }, @@ -1871,13 +1847,9 @@ "format": "int32", "type": "integer" }, - "grpc": { - "$ref": "GoogleCloudRunV2GRPCAction", - "description": "GRPC specifies an action involving a GRPC port. Exactly one of HTTPGet, TCPSocket, or GRPC must be specified." - }, "httpGet": { "$ref": "GoogleCloudRunV2HTTPGetAction", - "description": "HTTPGet specifies the http request to perform. Exactly one of HTTPGet, TCPSocket, or gRPC must be specified." + "description": "HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified." }, "initialDelaySeconds": { "description": "Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", @@ -1891,7 +1863,7 @@ }, "tcpSocket": { "$ref": "GoogleCloudRunV2TCPSocketAction", - "description": "TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet, TCPSocket, or gRPC must be specified. TCP hooks not yet supported" + "description": "TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified." }, "timeoutSeconds": { "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", @@ -2434,12 +2406,8 @@ "description": "TCPSocketAction describes an action based on opening a socket", "id": "GoogleCloudRunV2TCPSocketAction", "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP.", - "type": "string" - }, "port": { - "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. This field is currently limited to integer types only because of proto's inability to properly support the IntOrString golang type.", + "description": "Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.", "format": "int32", "type": "integer" } diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index c16de965959..608363b256a 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -900,49 +900,9 @@ func (s *GoogleCloudRunV2ExecutionTemplate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunV2GRPCAction: GRPCAction describes an action involving -// a GRPC port. -type GoogleCloudRunV2GRPCAction struct { - // Port: Port number of the gRPC service. Number must be in the range 1 - // to 65535. - Port int64 `json:"port,omitempty"` - - // Service: Service is the name of the service to place in the gRPC - // HealthCheckRequest (see - // https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If - // this is not specified, the default behavior is defined by gRPC. - Service string `json:"service,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Port") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Port") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudRunV2GRPCAction) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunV2GRPCAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudRunV2HTTPGetAction: HTTPGetAction describes an action // based on HTTP Get requests. type GoogleCloudRunV2HTTPGetAction struct { - // Host: Host name to connect to, defaults to the pod IP. You probably - // want to set "Host" in httpHeaders instead. - Host string `json:"host,omitempty"` - // HttpHeaders: Custom headers to set in the request. HTTP allows // repeated headers. HttpHeaders []*GoogleCloudRunV2HTTPHeader `json:"httpHeaders,omitempty"` @@ -950,10 +910,7 @@ type GoogleCloudRunV2HTTPGetAction struct { // Path: Path to access on the HTTP server. Defaults to '/'. Path string `json:"path,omitempty"` - // Scheme: Scheme to use for connecting to the host. Defaults to HTTP. - Scheme string `json:"scheme,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Host") to + // ForceSendFields is a list of field names (e.g. "HttpHeaders") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -961,10 +918,10 @@ type GoogleCloudRunV2HTTPGetAction struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Host") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "HttpHeaders") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -982,7 +939,7 @@ type GoogleCloudRunV2HTTPHeader struct { // Name: Required. The header field name Name string `json:"name,omitempty"` - // Value: Required. The header field value + // Value: The header field value Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to @@ -1390,12 +1347,8 @@ type GoogleCloudRunV2Probe struct { // value is 1. FailureThreshold int64 `json:"failureThreshold,omitempty"` - // Grpc: GRPC specifies an action involving a GRPC port. Exactly one of - // HTTPGet, TCPSocket, or GRPC must be specified. - Grpc *GoogleCloudRunV2GRPCAction `json:"grpc,omitempty"` - // HttpGet: HTTPGet specifies the http request to perform. Exactly one - // of HTTPGet, TCPSocket, or gRPC must be specified. + // of HTTPGet or TCPSocket must be specified. HttpGet *GoogleCloudRunV2HTTPGetAction `json:"httpGet,omitempty"` // InitialDelaySeconds: Number of seconds after the container has @@ -1412,8 +1365,7 @@ type GoogleCloudRunV2Probe struct { PeriodSeconds int64 `json:"periodSeconds,omitempty"` // TcpSocket: TCPSocket specifies an action involving a TCP port. - // Exactly one of HTTPGet, TCPSocket, or gRPC must be specified. TCP - // hooks not yet supported + // Exactly one of HTTPGet or TCPSocket must be specified. TcpSocket *GoogleCloudRunV2TCPSocketAction `json:"tcpSocket,omitempty"` // TimeoutSeconds: Number of seconds after which the probe times out. @@ -2142,16 +2094,11 @@ func (s *GoogleCloudRunV2Service) MarshalJSON() ([]byte, error) { // GoogleCloudRunV2TCPSocketAction: TCPSocketAction describes an action // based on opening a socket type GoogleCloudRunV2TCPSocketAction struct { - // Host: Host name to connect to, defaults to the pod IP. - Host string `json:"host,omitempty"` - - // Port: Number or name of the port to access on the container. Number - // must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. This - // field is currently limited to integer types only because of proto's - // inability to properly support the IntOrString golang type. + // Port: Port number to access on the container. Must be in the range 1 + // to 65535. If not specified, defaults to 8080. Port int64 `json:"port,omitempty"` - // ForceSendFields is a list of field names (e.g. "Host") to + // ForceSendFields is a list of field names (e.g. "Port") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2159,7 +2106,7 @@ type GoogleCloudRunV2TCPSocketAction struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Host") to include in API + // NullFields is a list of field names (e.g. "Port") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3372,7 +3319,7 @@ type ProjectsLocationsJobsCreateCall struct { // Create: Create a Job. // // - parent: The location and project in which this Job should be -// created. Format: projects/{projectnumber}/locations/{location}. +// created. Format: projects/{project}/locations/{location}. func (r *ProjectsLocationsJobsService) Create(parent string, googlecloudrunv2job *GoogleCloudRunV2Job) *ProjectsLocationsJobsCreateCall { c := &ProjectsLocationsJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3501,7 +3448,7 @@ func (c *ProjectsLocationsJobsCreateCall) Do(opts ...googleapi.CallOption) (*Goo // "type": "string" // }, // "parent": { - // "description": "Required. The location and project in which this Job should be created. Format: projects/{projectnumber}/locations/{location}", + // "description": "Required. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, @@ -3540,7 +3487,7 @@ type ProjectsLocationsJobsDeleteCall struct { // Delete: Deletes a Job. // // - name: The full name of the Job. Format: -// projects/{projectnumber}/locations/{location}/jobs/{job}. +// projects/{project}/locations/{location}/jobs/{job}. func (r *ProjectsLocationsJobsService) Delete(name string) *ProjectsLocationsJobsDeleteCall { c := &ProjectsLocationsJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3678,7 +3625,7 @@ func (c *ProjectsLocationsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Goo // "type": "boolean" // }, // "name": { - // "description": "Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job}", + // "description": "Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", // "required": true, @@ -3715,7 +3662,7 @@ type ProjectsLocationsJobsGetCall struct { // Get: Gets information about a Job. // // - name: The full name of the Job. Format: -// projects/{projectnumber}/locations/{location}/jobs/{job}. +// projects/{project}/locations/{location}/jobs/{job}. func (r *ProjectsLocationsJobsService) Get(name string) *ProjectsLocationsJobsGetCall { c := &ProjectsLocationsJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3830,7 +3777,7 @@ func (c *ProjectsLocationsJobsGetCall) Do(opts ...googleapi.CallOption) (*Google // ], // "parameters": { // "name": { - // "description": "Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job}", + // "description": "Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", // "required": true, @@ -4037,7 +3984,7 @@ type ProjectsLocationsJobsListCall struct { // List: List Jobs. // // - parent: The location and project to list resources on. Format: -// projects/{projectnumber}/locations/{location}. +// projects/{project}/locations/{location}. func (r *ProjectsLocationsJobsService) List(parent string) *ProjectsLocationsJobsListCall { c := &ProjectsLocationsJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4185,7 +4132,7 @@ func (c *ProjectsLocationsJobsListCall) Do(opts ...googleapi.CallOption) (*Googl // "type": "string" // }, // "parent": { - // "description": "Required. The location and project to list resources on. Format: projects/{projectnumber}/locations/{location}", + // "description": "Required. The location and project to list resources on. Format: projects/{project}/locations/{location}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, @@ -4413,7 +4360,7 @@ type ProjectsLocationsJobsRunCall struct { // Run: Triggers creation of a new Execution of this Job. // // - name: The full name of the Job. Format: -// projects/{projectnumber}/locations/{location}/jobs/{job}. +// projects/{project}/locations/{location}/jobs/{job}. func (r *ProjectsLocationsJobsService) Run(name string, googlecloudrunv2runjobrequest *GoogleCloudRunV2RunJobRequest) *ProjectsLocationsJobsRunCall { c := &ProjectsLocationsJobsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4521,7 +4468,7 @@ func (c *ProjectsLocationsJobsRunCall) Do(opts ...googleapi.CallOption) (*Google // ], // "parameters": { // "name": { - // "description": "Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job}", + // "description": "Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", // "required": true, @@ -6228,9 +6175,8 @@ type ProjectsLocationsServicesCreateCall struct { // Create: Creates a new Service in a given project and location. // // - parent: The location and project in which this service should be -// created. Format: projects/{projectnumber}/locations/{location} Only -// lowercase, digits, and hyphens; must begin with letter, and may not -// end with hyphen; must contain fewer than 50 characters. +// created. Format: projects/{project}/locations/{location} Only +// lowercase characters, digits, and hyphens. func (r *ProjectsLocationsServicesService) Create(parent string, googlecloudrunv2service *GoogleCloudRunV2Service) *ProjectsLocationsServicesCreateCall { c := &ProjectsLocationsServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6239,8 +6185,9 @@ func (r *ProjectsLocationsServicesService) Create(parent string, googlecloudrunv } // ServiceId sets the optional parameter "serviceId": Required. The -// unique identifier for the Service. The name of the service becomes -// {parent}/services/{service_id}. +// unique identifier for the Service. It must begin with letter, and may +// not end with hyphen; must contain fewer than 50 characters. The name +// of the service becomes {parent}/services/{service_id}. func (c *ProjectsLocationsServicesCreateCall) ServiceId(serviceId string) *ProjectsLocationsServicesCreateCall { c.urlParams_.Set("serviceId", serviceId) return c @@ -6354,14 +6301,14 @@ func (c *ProjectsLocationsServicesCreateCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "parent": { - // "description": "Required. The location and project in which this service should be created. Format: projects/{projectnumber}/locations/{location} Only lowercase, digits, and hyphens; must begin with letter, and may not end with hyphen; must contain fewer than 50 characters.", + // "description": "Required. The location and project in which this service should be created. Format: projects/{project}/locations/{location} Only lowercase characters, digits, and hyphens.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, // "serviceId": { - // "description": "Required. The unique identifier for the Service. The name of the service becomes {parent}/services/{service_id}.", + // "description": "Required. The unique identifier for the Service. It must begin with letter, and may not end with hyphen; must contain fewer than 50 characters. The name of the service becomes {parent}/services/{service_id}.", // "location": "query", // "type": "string" // }, @@ -6399,7 +6346,7 @@ type ProjectsLocationsServicesDeleteCall struct { // serving traffic and will delete all revisions. // // - name: The full name of the Service. Format: -// projects/{projectnumber}/locations/{location}/services/{service}. +// projects/{project}/locations/{location}/services/{service}. func (r *ProjectsLocationsServicesService) Delete(name string) *ProjectsLocationsServicesDeleteCall { c := &ProjectsLocationsServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6522,7 +6469,7 @@ func (c *ProjectsLocationsServicesDeleteCall) Do(opts ...googleapi.CallOption) ( // "type": "string" // }, // "name": { - // "description": "Required. The full name of the Service. Format: projects/{projectnumber}/locations/{location}/services/{service}", + // "description": "Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", // "required": true, @@ -6559,7 +6506,7 @@ type ProjectsLocationsServicesGetCall struct { // Get: Gets information about a Service. // // - name: The full name of the Service. Format: -// projects/{projectnumber}/locations/{location}/services/{service}. +// projects/{project}/locations/{location}/services/{service}. func (r *ProjectsLocationsServicesService) Get(name string) *ProjectsLocationsServicesGetCall { c := &ProjectsLocationsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6674,7 +6621,7 @@ func (c *ProjectsLocationsServicesGetCall) Do(opts ...googleapi.CallOption) (*Go // ], // "parameters": { // "name": { - // "description": "Required. The full name of the Service. Format: projects/{projectnumber}/locations/{location}/services/{service}", + // "description": "Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", // "required": true, @@ -6882,7 +6829,7 @@ type ProjectsLocationsServicesListCall struct { // // - parent: The location and project to list resources on. Location // must be a valid GCP region, and may not be the "-" wildcard. -// Format: projects/{projectnumber}/locations/{location}. +// Format: projects/{project}/locations/{location}. func (r *ProjectsLocationsServicesService) List(parent string) *ProjectsLocationsServicesListCall { c := &ProjectsLocationsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -7031,7 +6978,7 @@ func (c *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*G // "type": "string" // }, // "parent": { - // "description": "Required. The location and project to list resources on. Location must be a valid GCP region, and may not be the \"-\" wildcard. Format: projects/{projectnumber}/locations/{location}", + // "description": "Required. The location and project to list resources on. Location must be a valid GCP region, and may not be the \"-\" wildcard. Format: projects/{project}/locations/{location}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/servicedirectory/v1/servicedirectory-api.json b/servicedirectory/v1/servicedirectory-api.json index 85f095deb36..bf578e0504e 100644 --- a/servicedirectory/v1/servicedirectory-api.json +++ b/servicedirectory/v1/servicedirectory-api.json @@ -883,7 +883,7 @@ } } }, - "revision": "20220824", + "revision": "20220930", "rootUrl": "https://servicedirectory.googleapis.com/", "schemas": { "Binding": { @@ -941,6 +941,11 @@ "description": "Optional. Service Directory rejects values outside of `[0, 65535]`.", "format": "int32", "type": "integer" + }, + "uid": { + "description": "Output only. The globally unique identifier of the endpoint in the UUID4 format.", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -1111,6 +1116,11 @@ "name": { "description": "Immutable. The resource name for the namespace in the format `projects/*/locations/*/namespaces/*`.", "type": "string" + }, + "uid": { + "description": "Output only. The globally unique identifier of the namespace in the UUID4 format.", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -1187,6 +1197,11 @@ "name": { "description": "Immutable. The resource name for the service in the format `projects/*/locations/*/namespaces/*/services/*`.", "type": "string" + }, + "uid": { + "description": "Output only. The globally unique identifier of the service in the UUID4 format.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/servicedirectory/v1/servicedirectory-gen.go b/servicedirectory/v1/servicedirectory-gen.go index 202e7222dc8..3f5f5a99de3 100644 --- a/servicedirectory/v1/servicedirectory-gen.go +++ b/servicedirectory/v1/servicedirectory-gen.go @@ -324,6 +324,10 @@ type Endpoint struct { // 65535]`. Port int64 `json:"port,omitempty"` + // Uid: Output only. The globally unique identifier of the endpoint in + // the UUID4 format. + Uid string `json:"uid,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -692,6 +696,10 @@ type Namespace struct { // `projects/*/locations/*/namespaces/*`. Name string `json:"name,omitempty"` + // Uid: Output only. The globally unique identifier of the namespace in + // the UUID4 format. + Uid string `json:"uid,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -948,6 +956,10 @@ type Service struct { // `projects/*/locations/*/namespaces/*/services/*`. Name string `json:"name,omitempty"` + // Uid: Output only. The globally unique identifier of the service in + // the UUID4 format. + Uid string `json:"uid,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 56afe6640ba..7aaf4f29639 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -1773,6 +1773,11 @@ "name" ], "parameters": { + "host": { + "description": "Host of a user of the instance.", + "location": "query", + "type": "string" + }, "instance": { "description": "Database instance ID. This does not include the project ID.", "location": "path", @@ -1780,7 +1785,7 @@ "type": "string" }, "name": { - "description": "User of the instance. If the database user has a host, this is specified as {username}@{host} else as {username}.", + "description": "User of the instance.", "location": "path", "required": true, "type": "string" @@ -1916,7 +1921,7 @@ } } }, - "revision": "20220922", + "revision": "20221017", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2857,6 +2862,18 @@ "description": "Database instance export context.", "id": "ExportContext", "properties": { + "bakExportOptions": { + "properties": { + "stripeCount": { + "format": "int32", + "type": "integer" + }, + "striped": { + "type": "boolean" + } + }, + "type": "object" + }, "csvExportOptions": { "description": "Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.", "properties": { @@ -3177,6 +3194,9 @@ } }, "type": "object" + }, + "striped": { + "type": "boolean" } }, "type": "object" @@ -3450,6 +3470,10 @@ }, "type": "array" }, + "enablePrivatePathForGoogleCloudServices": { + "description": "Controls connectivity to private IP instances from Google services, such as BigQuery.", + "type": "boolean" + }, "ipv4Enabled": { "description": "Whether the instance is assigned a public IP address or not.", "type": "boolean" diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index fabfbbb8044..55d28dd47b2 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -1535,6 +1535,8 @@ func (s *DiskEncryptionStatus) MarshalJSON() ([]byte, error) { // ExportContext: Database instance export context. type ExportContext struct { + BakExportOptions *ExportContextBakExportOptions `json:"bakExportOptions,omitempty"` + // CsvExportOptions: Options for exporting data as CSV. `MySQL` and // `PostgreSQL` instances only. CsvExportOptions *ExportContextCsvExportOptions `json:"csvExportOptions,omitempty"` @@ -1576,7 +1578,7 @@ type ExportContext struct { // contents are compressed. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "CsvExportOptions") to + // ForceSendFields is a list of field names (e.g. "BakExportOptions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1584,7 +1586,7 @@ type ExportContext struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CsvExportOptions") to + // NullFields is a list of field names (e.g. "BakExportOptions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -1600,6 +1602,34 @@ func (s *ExportContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ExportContextBakExportOptions struct { + StripeCount int64 `json:"stripeCount,omitempty"` + + Striped bool `json:"striped,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StripeCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StripeCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExportContextBakExportOptions) MarshalJSON() ([]byte, error) { + type NoMethod ExportContextBakExportOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ExportContextCsvExportOptions: Options for exporting data as CSV. // `MySQL` and `PostgreSQL` instances only. type ExportContextCsvExportOptions struct { @@ -2052,6 +2082,8 @@ func (s *ImportContext) MarshalJSON() ([]byte, error) { type ImportContextBakImportOptions struct { EncryptionOptions *ImportContextBakImportOptionsEncryptionOptions `json:"encryptionOptions,omitempty"` + Striped bool `json:"striped,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncryptionOptions") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2581,6 +2613,10 @@ type IpConfiguration struct { // as 'slash' notation (for example: `157.197.200.0/24`). AuthorizedNetworks []*AclEntry `json:"authorizedNetworks,omitempty"` + // EnablePrivatePathForGoogleCloudServices: Controls connectivity to + // private IP instances from Google services, such as BigQuery. + EnablePrivatePathForGoogleCloudServices bool `json:"enablePrivatePathForGoogleCloudServices,omitempty"` + // Ipv4Enabled: Whether the instance is assigned a public IP address or // not. Ipv4Enabled bool `json:"ipv4Enabled,omitempty"` @@ -11992,8 +12028,7 @@ type UsersGetCall struct { // // - instance: Database instance ID. This does not include the project // ID. -// - name: User of the instance. If the database user has a host, this -// is specified as {username}@{host} else as {username}. +// - name: User of the instance. // - project: Project ID of the project that contains the instance. func (r *UsersService) Get(project string, instance string, name string) *UsersGetCall { c := &UsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -12003,6 +12038,13 @@ func (r *UsersService) Get(project string, instance string, name string) *UsersG return c } +// Host sets the optional parameter "host": Host of a user of the +// instance. +func (c *UsersGetCall) Host(host string) *UsersGetCall { + c.urlParams_.Set("host", host) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -12114,6 +12156,11 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { // "name" // ], // "parameters": { + // "host": { + // "description": "Host of a user of the instance.", + // "location": "query", + // "type": "string" + // }, // "instance": { // "description": "Database instance ID. This does not include the project ID.", // "location": "path", @@ -12121,7 +12168,7 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { // "type": "string" // }, // "name": { - // "description": "User of the instance. If the database user has a host, this is specified as {username}@{host} else as {username}.", + // "description": "User of the instance.", // "location": "path", // "required": true, // "type": "string" diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index d42e60dc24d..b02d8b51d87 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -1773,6 +1773,11 @@ "name" ], "parameters": { + "host": { + "description": "Host of a user of the instance.", + "location": "query", + "type": "string" + }, "instance": { "description": "Database instance ID. This does not include the project ID.", "location": "path", @@ -1780,7 +1785,7 @@ "type": "string" }, "name": { - "description": "User of the instance. If the database user has a host, this is specified as {username}@{host} else as {username}.", + "description": "User of the instance.", "location": "path", "required": true, "type": "string" @@ -1916,7 +1921,7 @@ } } }, - "revision": "20220922", + "revision": "20221017", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2857,6 +2862,18 @@ "description": "Database instance export context.", "id": "ExportContext", "properties": { + "bakExportOptions": { + "properties": { + "stripeCount": { + "format": "int32", + "type": "integer" + }, + "striped": { + "type": "boolean" + } + }, + "type": "object" + }, "csvExportOptions": { "description": "Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.", "properties": { @@ -3177,6 +3194,9 @@ } }, "type": "object" + }, + "striped": { + "type": "boolean" } }, "type": "object" @@ -3450,6 +3470,10 @@ }, "type": "array" }, + "enablePrivatePathForGoogleCloudServices": { + "description": "Controls connectivity to private IP instances from Google services, such as BigQuery.", + "type": "boolean" + }, "ipv4Enabled": { "description": "Whether the instance is assigned a public IP address or not.", "type": "boolean" diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 3573e013db1..8e622f1f926 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -1534,6 +1534,8 @@ func (s *DiskEncryptionStatus) MarshalJSON() ([]byte, error) { // ExportContext: Database instance export context. type ExportContext struct { + BakExportOptions *ExportContextBakExportOptions `json:"bakExportOptions,omitempty"` + // CsvExportOptions: Options for exporting data as CSV. `MySQL` and // `PostgreSQL` instances only. CsvExportOptions *ExportContextCsvExportOptions `json:"csvExportOptions,omitempty"` @@ -1575,7 +1577,7 @@ type ExportContext struct { // contents are compressed. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "CsvExportOptions") to + // ForceSendFields is a list of field names (e.g. "BakExportOptions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1583,7 +1585,7 @@ type ExportContext struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CsvExportOptions") to + // NullFields is a list of field names (e.g. "BakExportOptions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -1599,6 +1601,34 @@ func (s *ExportContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ExportContextBakExportOptions struct { + StripeCount int64 `json:"stripeCount,omitempty"` + + Striped bool `json:"striped,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StripeCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StripeCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExportContextBakExportOptions) MarshalJSON() ([]byte, error) { + type NoMethod ExportContextBakExportOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ExportContextCsvExportOptions: Options for exporting data as CSV. // `MySQL` and `PostgreSQL` instances only. type ExportContextCsvExportOptions struct { @@ -2052,6 +2082,8 @@ func (s *ImportContext) MarshalJSON() ([]byte, error) { type ImportContextBakImportOptions struct { EncryptionOptions *ImportContextBakImportOptionsEncryptionOptions `json:"encryptionOptions,omitempty"` + Striped bool `json:"striped,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncryptionOptions") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2581,6 +2613,10 @@ type IpConfiguration struct { // as 'slash' notation (for example: `157.197.200.0/24`). AuthorizedNetworks []*AclEntry `json:"authorizedNetworks,omitempty"` + // EnablePrivatePathForGoogleCloudServices: Controls connectivity to + // private IP instances from Google services, such as BigQuery. + EnablePrivatePathForGoogleCloudServices bool `json:"enablePrivatePathForGoogleCloudServices,omitempty"` + // Ipv4Enabled: Whether the instance is assigned a public IP address or // not. Ipv4Enabled bool `json:"ipv4Enabled,omitempty"` @@ -11987,8 +12023,7 @@ type UsersGetCall struct { // // - instance: Database instance ID. This does not include the project // ID. -// - name: User of the instance. If the database user has a host, this -// is specified as {username}@{host} else as {username}. +// - name: User of the instance. // - project: Project ID of the project that contains the instance. func (r *UsersService) Get(project string, instance string, name string) *UsersGetCall { c := &UsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -11998,6 +12033,13 @@ func (r *UsersService) Get(project string, instance string, name string) *UsersG return c } +// Host sets the optional parameter "host": Host of a user of the +// instance. +func (c *UsersGetCall) Host(host string) *UsersGetCall { + c.urlParams_.Set("host", host) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -12109,6 +12151,11 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { // "name" // ], // "parameters": { + // "host": { + // "description": "Host of a user of the instance.", + // "location": "query", + // "type": "string" + // }, // "instance": { // "description": "Database instance ID. This does not include the project ID.", // "location": "path", @@ -12116,7 +12163,7 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { // "type": "string" // }, // "name": { - // "description": "User of the instance. If the database user has a host, this is specified as {username}@{host} else as {username}.", + // "description": "User of the instance.", // "location": "path", // "required": true, // "type": "string"