From 524f72bbe1fcf4cf5dab1b4deab555fe475f9291 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 11 Jul 2023 00:22:13 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2063) --- .../v1/androidmanagement-api.json | 139 ++++++++++- androidmanagement/v1/androidmanagement-gen.go | 230 +++++++++++++++++ cloudchannel/v1/cloudchannel-api.json | 6 +- cloudchannel/v1/cloudchannel-gen.go | 4 +- .../v3/cloudresourcemanager-api.json | 4 +- .../v3/cloudresourcemanager-gen.go | 6 +- cloudsearch/v1/cloudsearch-api.json | 62 ++++- cloudsearch/v1/cloudsearch-gen.go | 6 +- .../v1/containeranalysis-api.json | 40 ++- containeranalysis/v1/containeranalysis-gen.go | 40 +++ .../v1alpha1/containeranalysis-api.json | 47 +++- .../v1alpha1/containeranalysis-gen.go | 40 +++ .../v1beta1/containeranalysis-api.json | 76 +++++- .../v1beta1/containeranalysis-gen.go | 103 ++++++-- discovery/v1/discovery-api.json | 19 ++ discovery/v1/discovery-gen.go | 27 +- kmsinventory/v1/kmsinventory-api.json | 8 +- kmsinventory/v1/kmsinventory-gen.go | 23 ++ .../v1/managedidentities-api.json | 92 ++++++- managedidentities/v1/managedidentities-gen.go | 231 ++++++++++++++++++ .../v1alpha1/managedidentities-api.json | 8 +- .../v1alpha1/managedidentities-gen.go | 8 +- .../v1beta1/managedidentities-api.json | 8 +- .../v1beta1/managedidentities-gen.go | 8 +- recommender/v1beta1/recommender-api.json | 6 +- recommender/v1beta1/recommender-gen.go | 8 +- securitycenter/v1/securitycenter-api.json | 24 +- securitycenter/v1/securitycenter-gen.go | 20 +- .../v1beta1/securitycenter-api.json | 23 +- securitycenter/v1beta1/securitycenter-gen.go | 20 +- .../v1beta2/securitycenter-api.json | 23 +- securitycenter/v1beta2/securitycenter-gen.go | 20 +- vision/v1/vision-api.json | 7 +- vision/v1p1beta1/vision-api.json | 7 +- vision/v1p2beta1/vision-api.json | 7 +- .../v1/websecurityscanner-api.json | 4 +- .../v1beta/websecurityscanner-api.json | 4 +- 37 files changed, 1299 insertions(+), 109 deletions(-) diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 8cfb3c2f098..a361f6cfb14 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1035,6 +1035,35 @@ } } }, + "provisioningInfo": { + "methods": { + "get": { + "description": "Get the device provisioning info by the identifier provided via the sign-in url.", + "flatPath": "v1/provisioningInfo/{provisioningInfoId}", + "httpMethod": "GET", + "id": "androidmanagement.provisioningInfo.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The identifier that Android Device Policy passes to the 3P sign-in page in the form of provisioningInfo/{provisioning_info}.", + "location": "path", + "pattern": "^provisioningInfo/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "ProvisioningInfo" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidmanagement" + ] + } + } + }, "signupUrls": { "methods": { "create": { @@ -1066,7 +1095,7 @@ } } }, - "revision": "20230628", + "revision": "20230705", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -1174,6 +1203,7 @@ "type": "object" }, "ApiLevelCondition": { + "deprecated": true, "description": "A compliance rule condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. There can only be one rule with this type of condition per policy.", "id": "ApiLevelCondition", "properties": { @@ -1634,6 +1664,7 @@ "type": "string" }, "lockTaskAllowed": { + "deprecated": true, "description": "Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to configure a dedicated device.", "type": "boolean" }, @@ -2059,6 +2090,7 @@ "type": "object" }, "ComplianceRule": { + "deprecated": true, "description": "A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule.", "id": "ComplianceRule", "properties": { @@ -2353,6 +2385,7 @@ "type": "array" }, "lastPolicyComplianceReportTime": { + "deprecated": true, "description": "Deprecated.", "format": "google-datetime", "type": "string" @@ -2783,6 +2816,7 @@ "id": "Enterprise", "properties": { "appAutoApprovalEnabled": { + "deprecated": true, "description": "Deprecated and unused.", "type": "boolean" }, @@ -2801,6 +2835,14 @@ "COMMAND", "USAGE_LOGS" ], + "enumDeprecated": [ + false, + false, + true, + false, + false, + false + ], "enumDescriptions": [ "This value is ignored.", "A notification sent when a device enrolls.", @@ -3644,6 +3686,7 @@ "type": "string" }, "networkOperatorName": { + "deprecated": true, "description": "Alphabetic name of current registered operator. For example, Vodafone.", "type": "string" }, @@ -3773,6 +3816,7 @@ "type": "object" }, "NonComplianceDetailCondition": { + "deprecated": true, "description": "A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail fields.", "id": "NonComplianceDetailCondition", "properties": { @@ -4229,6 +4273,12 @@ "BLOCKLIST", "ALLOWLIST" ], + "enumDeprecated": [ + false, + true, + false, + false + ], "enumDescriptions": [ "Unspecified. Defaults to BLOCKLIST.", "All Play Store apps are available for installation in the personal profile, except those whose installType is BLOCKED in personalApplications.", @@ -4328,10 +4378,12 @@ "type": "string" }, "autoTimeRequired": { + "deprecated": true, "description": "Whether auto time is required, which prevents the user from manually setting the date and time. If autoDateAndTimeZone is set, this field is ignored.", "type": "boolean" }, "blockApplicationsEnabled": { + "deprecated": true, "description": "Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no longer appear in the policy are automatically uninstalled.", "type": "boolean" }, @@ -4364,6 +4416,7 @@ "type": "string" }, "cameraDisabled": { + "deprecated": true, "description": "If camera_access is set to any value other than CAMERA_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether cameras are disabled: If true, all cameras are disabled, otherwise they are available. For fully managed devices this field applies for all apps on the device. For work profiles, this field applies only to apps in the work profile, and the camera access of apps outside the work profile is unaffected.", "type": "boolean" }, @@ -4379,6 +4432,7 @@ "type": "array" }, "complianceRules": { + "deprecated": true, "description": "Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead.", "items": { "$ref": "ComplianceRule" @@ -4402,6 +4456,7 @@ "type": "boolean" }, "debuggingFeaturesAllowed": { + "deprecated": true, "description": "Whether the user is allowed to enable debugging features.", "type": "boolean" }, @@ -4448,6 +4503,7 @@ "type": "string" }, "ensureVerifyAppsEnabled": { + "deprecated": true, "description": "Whether app verification is force-enabled.", "type": "boolean" }, @@ -4471,6 +4527,7 @@ "type": "boolean" }, "installUnknownSourcesAllowed": { + "deprecated": true, "description": "This field has no effect.", "type": "boolean" }, @@ -4531,6 +4588,16 @@ "LOCATION_ENFORCED", "LOCATION_DISABLED" ], + "enumDeprecated": [ + false, + true, + true, + true, + true, + false, + false, + false + ], "enumDescriptions": [ "Defaults to LOCATION_USER_CHOICE.", "On Android 8 and below, all location detection methods are enabled, including GPS, networks, and other sensors. On Android 9 and above, this is equivalent to LOCATION_ENFORCED.", @@ -4629,6 +4696,7 @@ }, "passwordRequirements": { "$ref": "PasswordRequirements", + "deprecated": true, "description": "Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use passwordPolicies.Note:Complexity-based values of PasswordQuality, that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used here. unified_lock_settings cannot be used here." }, "permissionGrants": { @@ -4705,6 +4773,7 @@ "type": "boolean" }, "safeBootDisabled": { + "deprecated": true, "description": "Whether rebooting the device into safe boot is disabled.", "type": "boolean" }, @@ -4744,6 +4813,7 @@ "type": "boolean" }, "statusBarDisabled": { + "deprecated": true, "description": "Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. DEPRECATED. To disable the status bar on a kiosk device, use InstallType KIOSK or kioskCustomLauncherEnabled.", "type": "boolean" }, @@ -4775,6 +4845,7 @@ "description": "The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well." }, "tetheringConfigDisabled": { + "deprecated": true, "description": "Whether configuring tethering and portable hotspots is disabled. If tetheringSettings is set to anything other than TETHERING_SETTINGS_UNSPECIFIED, this setting is ignored.", "type": "boolean" }, @@ -4783,6 +4854,7 @@ "type": "boolean" }, "unmuteMicrophoneDisabled": { + "deprecated": true, "description": "If microphone_access is set to any value other than MICROPHONE_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether microphones are disabled: If true, all microphones are disabled, otherwise they are available. This is available only on fully managed devices.", "type": "boolean" }, @@ -4791,10 +4863,12 @@ "description": "Configuration of device activity logging." }, "usbFileTransferDisabled": { + "deprecated": true, "description": "Whether transferring files over USB is disabled. This is supported only on company-owned devices.", "type": "boolean" }, "usbMassStorageEnabled": { + "deprecated": true, "description": "Whether USB storage is enabled. Deprecated.", "type": "boolean" }, @@ -4808,10 +4882,12 @@ "type": "boolean" }, "wifiConfigDisabled": { + "deprecated": true, "description": "Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true removes all configured networks and retains only the networks configured using openNetworkConfiguration. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. If configureWifi is set to anything other than CONFIGURE_WIFI_UNSPECIFIED, this setting is ignored. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled).", "type": "boolean" }, "wifiConfigsLockdownEnabled": { + "deprecated": true, "description": "DEPRECATED - Use wifi_config_disabled.", "type": "boolean" } @@ -4908,6 +4984,66 @@ }, "type": "object" }, + "ProvisioningInfo": { + "description": "Information about a device that is available during setup.", + "id": "ProvisioningInfo", + "properties": { + "apiLevel": { + "description": "The API level of the Android platform version running on the device.", + "format": "int32", + "type": "integer" + }, + "authenticatedUserEmail": { + "description": "The email address of the authenticated user (only present for Google Account provisioning method).", + "type": "string" + }, + "brand": { + "description": "Brand of the device. For example, Google.", + "type": "string" + }, + "enterprise": { + "description": "The name of the enterprise in the form enterprises/{enterprise}.", + "type": "string" + }, + "managementMode": { + "description": "The management mode of the device or profile.", + "enum": [ + "MANAGEMENT_MODE_UNSPECIFIED", + "DEVICE_OWNER", + "PROFILE_OWNER" + ], + "enumDescriptions": [ + "This value is disallowed.", + "Device owner. Android Device Policy has full control over the device.", + "Profile owner. Android Device Policy has control over a managed profile on the device." + ], + "type": "string" + }, + "model": { + "description": "The model of the device. For example, Asus Nexus 7.", + "type": "string" + }, + "name": { + "description": "The name of this resource in the form provisioningInfo/{provisioning_info}.", + "type": "string" + }, + "ownership": { + "description": "Ownership of the managed device.", + "enum": [ + "OWNERSHIP_UNSPECIFIED", + "COMPANY_OWNED", + "PERSONALLY_OWNED" + ], + "enumDescriptions": [ + "Ownership is unspecified.", + "Device is company-owned.", + "Device is personally-owned." + ], + "type": "string" + } + }, + "type": "object" + }, "ProxyInfo": { "description": "Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri field.", "id": "ProxyInfo", @@ -5654,6 +5790,7 @@ "type": "string" }, "permissions": { + "deprecated": true, "description": "Permissions available to an admin in the embedded UI. An admin must have all of these permissions in order to view the UI. This field is deprecated.", "items": { "enum": [ diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 6a7f6915c4c..7bd963178e8 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -119,6 +119,7 @@ func New(client *http.Client) (*Service, error) { } s := &Service{client: client, BasePath: basePath} s.Enterprises = NewEnterprisesService(s) + s.ProvisioningInfo = NewProvisioningInfoService(s) s.SignupUrls = NewSignupUrlsService(s) return s, nil } @@ -130,6 +131,8 @@ type Service struct { Enterprises *EnterprisesService + ProvisioningInfo *ProvisioningInfoService + SignupUrls *SignupUrlsService } @@ -233,6 +236,15 @@ type EnterprisesWebTokensService struct { s *Service } +func NewProvisioningInfoService(s *Service) *ProvisioningInfoService { + rs := &ProvisioningInfoService{s: s} + return rs +} + +type ProvisioningInfoService struct { + s *Service +} + func NewSignupUrlsService(s *Service) *SignupUrlsService { rs := &SignupUrlsService{s: s} return rs @@ -5725,6 +5737,76 @@ func (s *PowerManagementEvent) UnmarshalJSON(data []byte) error { return nil } +// ProvisioningInfo: Information about a device that is available during +// setup. +type ProvisioningInfo struct { + // ApiLevel: The API level of the Android platform version running on + // the device. + ApiLevel int64 `json:"apiLevel,omitempty"` + + // AuthenticatedUserEmail: The email address of the authenticated user + // (only present for Google Account provisioning method). + AuthenticatedUserEmail string `json:"authenticatedUserEmail,omitempty"` + + // Brand: Brand of the device. For example, Google. + Brand string `json:"brand,omitempty"` + + // Enterprise: The name of the enterprise in the form + // enterprises/{enterprise}. + Enterprise string `json:"enterprise,omitempty"` + + // ManagementMode: The management mode of the device or profile. + // + // Possible values: + // "MANAGEMENT_MODE_UNSPECIFIED" - This value is disallowed. + // "DEVICE_OWNER" - Device owner. Android Device Policy has full + // control over the device. + // "PROFILE_OWNER" - Profile owner. Android Device Policy has control + // over a managed profile on the device. + ManagementMode string `json:"managementMode,omitempty"` + + // Model: The model of the device. For example, Asus Nexus 7. + Model string `json:"model,omitempty"` + + // Name: The name of this resource in the form + // provisioningInfo/{provisioning_info}. + Name string `json:"name,omitempty"` + + // Ownership: Ownership of the managed device. + // + // Possible values: + // "OWNERSHIP_UNSPECIFIED" - Ownership is unspecified. + // "COMPANY_OWNED" - Device is company-owned. + // "PERSONALLY_OWNED" - Device is personally-owned. + Ownership string `json:"ownership,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ApiLevel") 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. "ApiLevel") 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 *ProvisioningInfo) MarshalJSON() ([]byte, error) { + type NoMethod ProvisioningInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ProxyInfo: Configuration info for an HTTP proxy. For a direct proxy, // set the host, port, and excluded_hosts fields. For a PAC script // proxy, set the pac_uri field. @@ -11590,6 +11672,154 @@ func (c *EnterprisesWebTokensCreateCall) Do(opts ...googleapi.CallOption) (*WebT } +// method id "androidmanagement.provisioningInfo.get": + +type ProvisioningInfoGetCall struct { + s *Service + nameid string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get the device provisioning info by the identifier provided via +// the sign-in url. +// +// - name: The identifier that Android Device Policy passes to the 3P +// sign-in page in the form of provisioningInfo/{provisioning_info}. +func (r *ProvisioningInfoService) Get(nameid string) *ProvisioningInfoGetCall { + c := &ProvisioningInfoGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + 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 *ProvisioningInfoGetCall) Fields(s ...googleapi.Field) *ProvisioningInfoGetCall { + 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 *ProvisioningInfoGetCall) IfNoneMatch(entityTag string) *ProvisioningInfoGetCall { + 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 *ProvisioningInfoGetCall) Context(ctx context.Context) *ProvisioningInfoGetCall { + 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 *ProvisioningInfoGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProvisioningInfoGetCall) 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, "v1/{+name}") + 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{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "androidmanagement.provisioningInfo.get" call. +// Exactly one of *ProvisioningInfo or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ProvisioningInfo.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 *ProvisioningInfoGetCall) Do(opts ...googleapi.CallOption) (*ProvisioningInfo, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &ProvisioningInfo{ + 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": "Get the device provisioning info by the identifier provided via the sign-in url.", + // "flatPath": "v1/provisioningInfo/{provisioningInfoId}", + // "httpMethod": "GET", + // "id": "androidmanagement.provisioningInfo.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The identifier that Android Device Policy passes to the 3P sign-in page in the form of provisioningInfo/{provisioning_info}.", + // "location": "path", + // "pattern": "^provisioningInfo/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "ProvisioningInfo" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/androidmanagement" + // ] + // } + +} + // method id "androidmanagement.signupUrls.create": type SignupUrlsCreateCall struct { diff --git a/cloudchannel/v1/cloudchannel-api.json b/cloudchannel/v1/cloudchannel-api.json index eb20bb068dd..a6c016a9012 100644 --- a/cloudchannel/v1/cloudchannel-api.json +++ b/cloudchannel/v1/cloudchannel-api.json @@ -2178,7 +2178,7 @@ } } }, - "revision": "20230704", + "revision": "20230708", "rootUrl": "https://cloudchannel.googleapis.com/", "schemas": { "GoogleCloudChannelV1ActivateEntitlementRequest": { @@ -4155,7 +4155,7 @@ "type": "string" }, "provisioningId": { - "description": "Output only. Provisioning ID of the entitlement. For Google Workspace, this is the underlying Subscription ID. For Google Cloud, this is the Billing Account ID of the billing subaccount.\"", + "description": "Output only. Provisioning ID of the entitlement. For Google Workspace, this is the underlying Subscription ID. For Google Cloud, this is the Billing Account ID of the billing subaccount.", "readOnly": true, "type": "string" }, @@ -5265,7 +5265,7 @@ "type": "string" }, "provisioningId": { - "description": "Output only. Provisioning ID of the entitlement. For Google Workspace, this is the underlying Subscription ID. For Google Cloud, this is the Billing Account ID of the billing subaccount.\"", + "description": "Output only. Provisioning ID of the entitlement. For Google Workspace, this is the underlying Subscription ID. For Google Cloud, this is the Billing Account ID of the billing subaccount.", "readOnly": true, "type": "string" }, diff --git a/cloudchannel/v1/cloudchannel-gen.go b/cloudchannel/v1/cloudchannel-gen.go index 4e9f9ad6153..cf10205c19b 100644 --- a/cloudchannel/v1/cloudchannel-gen.go +++ b/cloudchannel/v1/cloudchannel-gen.go @@ -3486,7 +3486,7 @@ type GoogleCloudChannelV1ProvisionedService struct { // ProvisioningId: Output only. Provisioning ID of the entitlement. For // Google Workspace, this is the underlying Subscription ID. For Google - // Cloud, this is the Billing Account ID of the billing subaccount." + // Cloud, this is the Billing Account ID of the billing subaccount. ProvisioningId string `json:"provisioningId,omitempty"` // SkuId: Output only. The SKU pertaining to the provisioning resource @@ -5466,7 +5466,7 @@ type GoogleCloudChannelV1alpha1ProvisionedService struct { // ProvisioningId: Output only. Provisioning ID of the entitlement. For // Google Workspace, this is the underlying Subscription ID. For Google - // Cloud, this is the Billing Account ID of the billing subaccount." + // Cloud, this is the Billing Account ID of the billing subaccount. ProvisioningId string `json:"provisioningId,omitempty"` // SkuId: Output only. The SKU pertaining to the provisioning resource diff --git a/cloudresourcemanager/v3/cloudresourcemanager-api.json b/cloudresourcemanager/v3/cloudresourcemanager-api.json index 014114cce86..b73a70d8bc5 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v3/cloudresourcemanager-api.json @@ -1582,7 +1582,7 @@ "type": "string" }, "parent": { - "description": "Required.", + "description": "Required. Resource name for the parent of the TagValues to be listed, in the format `tagKeys/123` or `tagValues/123`.", "location": "query", "type": "string" } @@ -1805,7 +1805,7 @@ } } }, - "revision": "20230514", + "revision": "20230709", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudresourcemanager/v3/cloudresourcemanager-gen.go b/cloudresourcemanager/v3/cloudresourcemanager-gen.go index 22924f583cd..a0fecd7b884 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v3/cloudresourcemanager-gen.go @@ -10477,7 +10477,9 @@ func (c *TagValuesListCall) PageToken(pageToken string) *TagValuesListCall { return c } -// Parent sets the optional parameter "parent": Required. +// Parent sets the optional parameter "parent": Required. Resource name +// for the parent of the TagValues to be listed, in the format +// `tagKeys/123` or `tagValues/123`. func (c *TagValuesListCall) Parent(parent string) *TagValuesListCall { c.urlParams_.Set("parent", parent) return c @@ -10597,7 +10599,7 @@ func (c *TagValuesListCall) Do(opts ...googleapi.CallOption) (*ListTagValuesResp // "type": "string" // }, // "parent": { - // "description": "Required.", + // "description": "Required. Resource name for the parent of the TagValues to be listed, in the format `tagKeys/123` or `tagValues/123`.", // "location": "query", // "type": "string" // } diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 691222310ca..f645f02815c 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -938,7 +938,7 @@ "query": { "methods": { "removeActivity": { - "description": "Provides functionality to remove logged activity for a user. Currently to be used only for dynamite 1p clients **Note:** This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", + "description": "Provides functionality to remove logged activity for a user. Currently to be used only for Chat 1p clients **Note:** This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", "flatPath": "v1/query:removeActivity", "httpMethod": "POST", "id": "cloudsearch.query.removeActivity", @@ -2096,7 +2096,7 @@ } } }, - "revision": "20230628", + "revision": "20230705", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "Action": { @@ -3263,6 +3263,39 @@ "PERSON_KNOWLEDGE_CARD", "PEOPLE_SEARCH_PROMOTION_CARD" ], + "enumDeprecated": [ + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + true, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "The default type, an unknown card type.", "The user's agenda for the day.", @@ -3300,6 +3333,7 @@ }, "conflictingMeetingsCard": { "$ref": "EnterpriseTopazSidekickConflictingEventsCardProto", + "deprecated": true, "description": "Conflicting events card." }, "documentListCard": { @@ -3308,6 +3342,7 @@ }, "documentsWithMentions": { "$ref": "EnterpriseTopazSidekickDocumentPerCategoryList", + "deprecated": true, "description": "Documents with mentions." }, "findMeetingTimeCard": { @@ -3324,6 +3359,7 @@ }, "meeting": { "$ref": "EnterpriseTopazSidekickAgendaEntry", + "deprecated": true, "description": "Meeting card." }, "meetingNotesCard": { @@ -3352,6 +3388,7 @@ }, "personalizedDocsCard": { "$ref": "EnterpriseTopazSidekickPersonalizedDocsCardProto", + "deprecated": true, "description": "Card with recommended documents for the user." }, "relatedPeopleAnswerCard": { @@ -3360,10 +3397,12 @@ }, "shareMeetingDocsCard": { "$ref": "EnterpriseTopazSidekickShareMeetingDocsCardProto", + "deprecated": true, "description": "Sahre meeting docs card." }, "sharedDocuments": { "$ref": "EnterpriseTopazSidekickDocumentPerCategoryList", + "deprecated": true, "description": "Shared documents." }, "suggestedQueryAnswerCard": { @@ -3508,6 +3547,7 @@ "type": "string" }, "provenance": { + "deprecated": true, "description": "Document provenance.", "enum": [ "UNKNOWN_PROVENANCE", @@ -3526,6 +3566,7 @@ "type": "string" }, "reason": { + "deprecated": true, "description": "Justification of why this document is being returned.", "enum": [ "UNKNOWN", @@ -3649,6 +3690,7 @@ "id": "EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata", "properties": { "documentId": { + "deprecated": true, "description": "The drive document cosmo id. Client could use the id to build a URL to open a document. Please use Document.document_id.", "type": "string" }, @@ -3796,6 +3838,7 @@ "type": "string" }, "gaiaId": { + "deprecated": true, "description": "This field is deprecated. The obfuscated_id should be used instead.", "format": "int64", "type": "string" @@ -3860,6 +3903,7 @@ "id": "EnterpriseTopazSidekickDocumentGroup", "properties": { "groupType": { + "deprecated": true, "description": "Document group type", "enum": [ "UNKNOWN_TYPE", @@ -3940,6 +3984,18 @@ "SHARED_NOT_VIEWED", "EDITED" ], + "enumDeprecated": [ + false, + true, + false, + true, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "", "", @@ -4226,6 +4282,7 @@ "id": "EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard", "properties": { "answer": { + "deprecated": true, "description": "List of answers.", "items": { "$ref": "SafeHtmlProto" @@ -4387,6 +4444,7 @@ "type": "string" }, "gaiaId": { + "deprecated": true, "description": "Gaia id.", "format": "int64", "type": "string" diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index 47291e99314..162138578f8 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -13600,8 +13600,8 @@ type QueryRemoveActivityCall struct { } // RemoveActivity: Provides functionality to remove logged activity for -// a user. Currently to be used only for dynamite 1p clients **Note:** -// This API requires a standard end user account to execute. A service +// a user. Currently to be used only for Chat 1p clients **Note:** This +// API requires a standard end user account to execute. A service // account can't perform Remove Activity requests directly; to use a // service account to perform queries, set up Google Workspace // domain-wide delegation of authority @@ -13700,7 +13700,7 @@ func (c *QueryRemoveActivityCall) Do(opts ...googleapi.CallOption) (*RemoveActiv } return ret, nil // { - // "description": "Provides functionality to remove logged activity for a user. Currently to be used only for dynamite 1p clients **Note:** This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", + // "description": "Provides functionality to remove logged activity for a user. Currently to be used only for Chat 1p clients **Note:** This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", // "flatPath": "v1/query:removeActivity", // "httpMethod": "POST", // "id": "cloudsearch.query.removeActivity", diff --git a/containeranalysis/v1/containeranalysis-api.json b/containeranalysis/v1/containeranalysis-api.json index 86a59543996..aa08c117f6b 100644 --- a/containeranalysis/v1/containeranalysis-api.json +++ b/containeranalysis/v1/containeranalysis-api.json @@ -755,7 +755,7 @@ } } }, - "revision": "20230623", + "revision": "20230707", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -2218,6 +2218,14 @@ "CLOUD_LOGGING_ONLY", "NONE" ], + "enumDeprecated": [ + false, + false, + false, + true, + false, + false + ], "enumDescriptions": [ "The service determines the logging mode. The default is `LEGACY`. Do not rely on the default logging behavior as it may change in the future.", "Build logs are stored in Cloud Logging and Cloud Storage.", @@ -2310,6 +2318,7 @@ "type": "array" }, "workerPool": { + "deprecated": true, "description": "This field deprecated; please use `pool.name` instead.", "type": "string" } @@ -3210,6 +3219,10 @@ "description": "The last time this resource was scanned.", "format": "google-datetime", "type": "string" + }, + "sbomStatus": { + "$ref": "SBOMStatus", + "description": "The status of an SBOM generation." } }, "type": "object" @@ -4605,6 +4618,31 @@ }, "type": "object" }, + "SBOMStatus": { + "description": "The status of an SBOM generation.", + "id": "SBOMStatus", + "properties": { + "error": { + "description": "If there was an error generating an SBOM, this will indicate what that error was.", + "type": "string" + }, + "sbomState": { + "description": "The progress of the SBOM generation.", + "enum": [ + "SBOM_STATE_UNSPECIFIED", + "PENDING", + "COMPLETE" + ], + "enumDescriptions": [ + "Default unknown state.", + "SBOM scanning is pending.", + "SBOM scanning has completed." + ], + "type": "string" + } + }, + "type": "object" + }, "SbomReferenceIntotoPayload": { "description": "The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md for more details.", "id": "SbomReferenceIntotoPayload", diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index 82794f57874..145980bffd1 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -3645,6 +3645,9 @@ type DiscoveryOccurrence struct { // LastScanTime: The last time this resource was scanned. LastScanTime string `json:"lastScanTime,omitempty"` + // SbomStatus: The status of an SBOM generation. + SbomStatus *SBOMStatus `json:"sbomStatus,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnalysisCompleted") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5981,6 +5984,43 @@ func (s *SBOMReferenceOccurrence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SBOMStatus: The status of an SBOM generation. +type SBOMStatus struct { + // Error: If there was an error generating an SBOM, this will indicate + // what that error was. + Error string `json:"error,omitempty"` + + // SbomState: The progress of the SBOM generation. + // + // Possible values: + // "SBOM_STATE_UNSPECIFIED" - Default unknown state. + // "PENDING" - SBOM scanning is pending. + // "COMPLETE" - SBOM scanning has completed. + SbomState string `json:"sbomState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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 *SBOMStatus) MarshalJSON() ([]byte, error) { + type NoMethod SBOMStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SbomReferenceIntotoPayload: The actual payload that contains the SBOM // Reference data. The payload follows the intoto statement // specification. See diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index c0e4d8352ea..661254a6e9d 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1233,7 +1233,7 @@ } } }, - "revision": "20230623", + "revision": "20230707", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -1263,6 +1263,7 @@ "type": "string" }, "name": { + "deprecated": true, "description": "Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.", "type": "string" }, @@ -2507,6 +2508,14 @@ "CLOUD_LOGGING_ONLY", "NONE" ], + "enumDeprecated": [ + false, + false, + false, + true, + false, + false + ], "enumDescriptions": [ "The service determines the logging mode. The default is `LEGACY`. Do not rely on the default logging behavior as it may change in the future.", "Build logs are stored in Cloud Logging and Cloud Storage.", @@ -2599,6 +2608,7 @@ "type": "array" }, "workerPool": { + "deprecated": true, "description": "This field deprecated; please use `pool.name` instead.", "type": "string" } @@ -3492,6 +3502,11 @@ "operation": { "$ref": "Operation", "description": "Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use." + }, + "sbomStatus": { + "$ref": "SBOMStatus", + "description": "Output only. The status of an SBOM generation.", + "readOnly": true } }, "type": "object" @@ -5606,6 +5621,7 @@ "type": "object" }, "RepoSource": { + "deprecated": true, "description": "RepoSource describes the location of the source in a Google Cloud Source Repository.", "id": "RepoSource", "properties": { @@ -5688,6 +5704,33 @@ }, "type": "object" }, + "SBOMStatus": { + "description": "The status of an SBOM generation.", + "id": "SBOMStatus", + "properties": { + "error": { + "description": "Output only. If there was an error generating an SBOM, this will indicate what that error was.", + "readOnly": true, + "type": "string" + }, + "sbomState": { + "description": "Output only. The progress of the SBOM generation.", + "enum": [ + "SBOM_STATE_UNSPECIFIED", + "PENDING", + "COMPLETE" + ], + "enumDescriptions": [ + "Default unknown state.", + "SBOM scanning is pending.", + "SBOM scanning has completed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "SbomReferenceIntotoPayload": { "description": "The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md for more details.", "id": "SbomReferenceIntotoPayload", @@ -5999,10 +6042,12 @@ }, "repoSource": { "$ref": "RepoSource", + "deprecated": true, "description": "If provided, get source from this location in a Cloud Repo." }, "storageSource": { "$ref": "StorageSource", + "deprecated": true, "description": "If provided, get the source from this location in Google Cloud Storage." } }, diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 32db56ce4d9..a31471f420a 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -3525,6 +3525,9 @@ type Discovered struct { // current scan. This field is deprecated, do not use. Operation *Operation `json:"operation,omitempty"` + // SbomStatus: Output only. The status of an SBOM generation. + SbomStatus *SBOMStatus `json:"sbomStatus,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnalysisCompleted") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -6879,6 +6882,43 @@ func (s *SBOMReferenceOccurrence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SBOMStatus: The status of an SBOM generation. +type SBOMStatus struct { + // Error: Output only. If there was an error generating an SBOM, this + // will indicate what that error was. + Error string `json:"error,omitempty"` + + // SbomState: Output only. The progress of the SBOM generation. + // + // Possible values: + // "SBOM_STATE_UNSPECIFIED" - Default unknown state. + // "PENDING" - SBOM scanning is pending. + // "COMPLETE" - SBOM scanning has completed. + SbomState string `json:"sbomState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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 *SBOMStatus) MarshalJSON() ([]byte, error) { + type NoMethod SBOMStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SbomReferenceIntotoPayload: The actual payload that contains the SBOM // Reference data. The payload follows the intoto statement // specification. See diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index e1352ce9916..0f24050d2be 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -815,7 +815,7 @@ } } }, - "revision": "20230623", + "revision": "20230707", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -2241,6 +2241,14 @@ "CLOUD_LOGGING_ONLY", "NONE" ], + "enumDeprecated": [ + false, + false, + false, + true, + false, + false + ], "enumDescriptions": [ "The service determines the logging mode. The default is `LEGACY`. Do not rely on the default logging behavior as it may change in the future.", "Build logs are stored in Cloud Logging and Cloud Storage.", @@ -2333,6 +2341,7 @@ "type": "array" }, "workerPool": { + "deprecated": true, "description": "This field deprecated; please use `pool.name` instead.", "type": "string" } @@ -3177,6 +3186,10 @@ "description": "The last time continuous analysis was done for this resource. Deprecated, do not use.", "format": "google-datetime", "type": "string" + }, + "sbomStatus": { + "$ref": "SBOMStatus", + "description": "The status of an SBOM generation." } }, "type": "object" @@ -3395,7 +3408,7 @@ "id": "ExportSBOMResponse", "properties": { "discoveryOccurrenceId": { - "description": "The id of the discovery occurrence that can be used to track the progression of the SBOM export.", + "description": "The name of the discovery occurrence in the form \"projects/{project_id}/occurrences/{OCCURRENCE_ID} It can be used to track the progression of the SBOM export.", "type": "string" } }, @@ -4040,14 +4053,23 @@ "type": "object" }, "InTotoSlsaProvenanceV1": { - "description": "Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/docs/provenance/schema/v1/provenance.proto Builder renamed to ProvenanceBuilder because of Java conflicts.", "id": "InTotoSlsaProvenanceV1", "properties": { - "buildDefinition": { - "$ref": "BuildDefinition" + "_type": { + "description": "InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement", + "type": "string" }, - "runDetails": { - "$ref": "RunDetails" + "predicate": { + "$ref": "SlsaProvenanceV1" + }, + "predicateType": { + "type": "string" + }, + "subject": { + "items": { + "$ref": "Subject" + }, + "type": "array" } }, "type": "object" @@ -5291,9 +5313,11 @@ "properties": { "contentHash": { "$ref": "Hash", + "deprecated": true, "description": "Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest." }, "name": { + "deprecated": true, "description": "Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - \"Debian\".", "type": "string" }, @@ -5393,6 +5417,31 @@ }, "type": "object" }, + "SBOMStatus": { + "description": "The status of an SBOM generation.", + "id": "SBOMStatus", + "properties": { + "error": { + "description": "If there was an error generating an SBOM, this will indicate what that error was.", + "type": "string" + }, + "sbomState": { + "description": "The progress of the SBOM generation.", + "enum": [ + "SBOM_STATE_UNSPECIFIED", + "PENDING", + "COMPLETE" + ], + "enumDescriptions": [ + "Default unknown state.", + "SBOM scanning is pending.", + "SBOM scanning has completed." + ], + "type": "string" + } + }, + "type": "object" + }, "SbomReferenceIntotoPayload": { "description": "The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md for more details.", "id": "SbomReferenceIntotoPayload", @@ -5495,6 +5544,19 @@ }, "type": "object" }, + "SlsaProvenanceV1": { + "description": "Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/docs/provenance/schema/v1/provenance.proto Builder renamed to ProvenanceBuilder because of Java conflicts.", + "id": "SlsaProvenanceV1", + "properties": { + "buildDefinition": { + "$ref": "BuildDefinition" + }, + "runDetails": { + "$ref": "RunDetails" + } + }, + "type": "object" + }, "Source": { "description": "Source describes the location of the source used for the build.", "id": "Source", diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 4267889ee2b..ed387ce86bb 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -3501,6 +3501,9 @@ type Discovered struct { // resource. Deprecated, do not use. LastAnalysisTime string `json:"lastAnalysisTime,omitempty"` + // SbomStatus: The status of an SBOM generation. + SbomStatus *SBOMStatus `json:"sbomStatus,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnalysisCompleted") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3845,7 +3848,8 @@ type ExportSBOMRequest struct { // ExportSBOMResponse: The response from a call to ExportSBOM type ExportSBOMResponse struct { - // DiscoveryOccurrenceId: The id of the discovery occurrence that can be + // DiscoveryOccurrenceId: The name of the discovery occurrence in the + // form "projects/{project_id}/occurrences/{OCCURRENCE_ID} It can be // used to track the progression of the SBOM export. DiscoveryOccurrenceId string `json:"discoveryOccurrenceId,omitempty"` @@ -4952,15 +4956,18 @@ func (s *InToto) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// InTotoSlsaProvenanceV1: Keep in sync with schema at -// https://github.com/slsa-framework/slsa/blob/main/docs/provenance/schema/v1/provenance.proto -// Builder renamed to ProvenanceBuilder because of Java conflicts. type InTotoSlsaProvenanceV1 struct { - BuildDefinition *BuildDefinition `json:"buildDefinition,omitempty"` + // Type: InToto spec defined at + // https://github.com/in-toto/attestation/tree/main/spec#statement + Type string `json:"_type,omitempty"` - RunDetails *RunDetails `json:"runDetails,omitempty"` + Predicate *SlsaProvenanceV1 `json:"predicate,omitempty"` - // ForceSendFields is a list of field names (e.g. "BuildDefinition") to + PredicateType string `json:"predicateType,omitempty"` + + Subject []*Subject `json:"subject,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 @@ -4968,13 +4975,12 @@ type InTotoSlsaProvenanceV1 struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BuildDefinition") 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 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:"-"` } @@ -6893,6 +6899,43 @@ func (s *SBOMReferenceOccurrence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SBOMStatus: The status of an SBOM generation. +type SBOMStatus struct { + // Error: If there was an error generating an SBOM, this will indicate + // what that error was. + Error string `json:"error,omitempty"` + + // SbomState: The progress of the SBOM generation. + // + // Possible values: + // "SBOM_STATE_UNSPECIFIED" - Default unknown state. + // "PENDING" - SBOM scanning is pending. + // "COMPLETE" - SBOM scanning has completed. + SbomState string `json:"sbomState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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 *SBOMStatus) MarshalJSON() ([]byte, error) { + type NoMethod SBOMStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SbomReferenceIntotoPayload: The actual payload that contains the SBOM // Reference data. The payload follows the intoto statement // specification. See @@ -7120,6 +7163,38 @@ func (s *SigningKey) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SlsaProvenanceV1: Keep in sync with schema at +// https://github.com/slsa-framework/slsa/blob/main/docs/provenance/schema/v1/provenance.proto +// Builder renamed to ProvenanceBuilder because of Java conflicts. +type SlsaProvenanceV1 struct { + BuildDefinition *BuildDefinition `json:"buildDefinition,omitempty"` + + RunDetails *RunDetails `json:"runDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BuildDefinition") 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. "BuildDefinition") 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 *SlsaProvenanceV1) MarshalJSON() ([]byte, error) { + type NoMethod SlsaProvenanceV1 + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Source: Source describes the location of the source used for the // build. type Source struct { diff --git a/discovery/v1/discovery-api.json b/discovery/v1/discovery-api.json index 8d8df5dbdee..6d71e26750d 100644 --- a/discovery/v1/discovery-api.json +++ b/discovery/v1/discovery-api.json @@ -234,6 +234,10 @@ "description": "The default value of this property (if one exists).", "type": "string" }, + "deprecated": { + "description": "Whether the parameter is deprecated.", + "type": "boolean" + }, "description": { "description": "A description of this object.", "type": "string" @@ -245,6 +249,13 @@ }, "type": "array" }, + "enumDeprecated": { + "description": "The deprecation status for the enums. Each position maps to the corresponding value in the \"enum\" array.", + "items": { + "type": "boolean" + }, + "type": "array" + }, "enumDescriptions": { "description": "The descriptions for the enums. Each position maps to the corresponding value in the \"enum\" array.", "items": { @@ -518,6 +529,10 @@ "RestMethod": { "id": "RestMethod", "properties": { + "deprecated": { + "description": "Whether this method is deprecated.", + "type": "boolean" + }, "description": { "description": "Description of this method.", "type": "string" @@ -663,6 +678,10 @@ "RestResource": { "id": "RestResource", "properties": { + "deprecated": { + "description": "Whether this resource is deprecated.", + "type": "boolean" + }, "methods": { "additionalProperties": { "$ref": "RestMethod", diff --git a/discovery/v1/discovery-gen.go b/discovery/v1/discovery-gen.go index 1c0d0a3300c..9135f685848 100644 --- a/discovery/v1/discovery-gen.go +++ b/discovery/v1/discovery-gen.go @@ -283,12 +283,19 @@ type JsonSchema struct { // Default: The default value of this property (if one exists). Default string `json:"default,omitempty"` + // Deprecated -- Whether the parameter is deprecated. + Deprecated bool `json:"deprecated,omitempty"` + // Description: A description of this object. Description string `json:"description,omitempty"` // Enum: Values this parameter may take (if it is an enum). Enum []string `json:"enum,omitempty"` + // EnumDeprecated: The deprecation status for the enums. Each position + // maps to the corresponding value in the "enum" array. + EnumDeprecated []bool `json:"enumDeprecated,omitempty"` + // EnumDescriptions: The descriptions for the enums. Each position maps // to the corresponding value in the "enum" array. EnumDescriptions []string `json:"enumDescriptions,omitempty"` @@ -698,6 +705,9 @@ func (s *RestDescriptionIcons) MarshalJSON() ([]byte, error) { } type RestMethod struct { + // Deprecated -- Whether this method is deprecated. + Deprecated bool `json:"deprecated,omitempty"` + // Description: Description of this method. Description string `json:"description,omitempty"` @@ -755,7 +765,7 @@ type RestMethod struct { // if the method supports media download. UseMediaDownloadService bool `json:"useMediaDownloadService,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "Deprecated") 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 @@ -763,10 +773,10 @@ type RestMethod struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") 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. "Deprecated") 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:"-"` @@ -975,13 +985,16 @@ func (s *RestMethodResponse) MarshalJSON() ([]byte, error) { } type RestResource struct { + // Deprecated -- Whether this resource is deprecated. + Deprecated bool `json:"deprecated,omitempty"` + // Methods: Methods on this resource. Methods map[string]RestMethod `json:"methods,omitempty"` // Resources: Sub-resources on this resource. Resources map[string]RestResource `json:"resources,omitempty"` - // ForceSendFields is a list of field names (e.g. "Methods") to + // ForceSendFields is a list of field names (e.g. "Deprecated") 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 @@ -989,7 +1002,7 @@ type RestResource struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Methods") to include in + // NullFields is a list of field names (e.g. "Deprecated") 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 diff --git a/kmsinventory/v1/kmsinventory-api.json b/kmsinventory/v1/kmsinventory-api.json index d0c3fec78c0..1d8bac25108 100644 --- a/kmsinventory/v1/kmsinventory-api.json +++ b/kmsinventory/v1/kmsinventory-api.json @@ -134,6 +134,12 @@ "location": "query", "type": "string" }, + "resourceTypes": { + "description": "Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.", + "location": "query", + "repeated": true, + "type": "string" + }, "scope": { "description": "Required. Resource name of the organization. Example: organizations/123", "location": "path", @@ -236,7 +242,7 @@ } } }, - "revision": "20230625", + "revision": "20230708", "rootUrl": "https://kmsinventory.googleapis.com/", "schemas": { "GoogleCloudKmsInventoryV1ListCryptoKeysResponse": { diff --git a/kmsinventory/v1/kmsinventory-gen.go b/kmsinventory/v1/kmsinventory-gen.go index fef792ba313..7b007769b1d 100644 --- a/kmsinventory/v1/kmsinventory-gen.go +++ b/kmsinventory/v1/kmsinventory-gen.go @@ -1027,6 +1027,23 @@ func (c *OrganizationsProtectedResourcesSearchCall) PageToken(pageToken string) return c } +// ResourceTypes sets the optional parameter "resourceTypes": A list of +// resource types that this request searches for. If empty, it will +// search all the trackable resource types +// (https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). +// Regular expressions are also supported. For example: * +// `compute.googleapis.com.*` snapshots resources whose type starts with +// `compute.googleapis.com`. * `.*Image` snapshots resources whose type +// ends with `Image`. * `.*Image.*` snapshots resources whose type +// contains `Image`. See RE2 (https://github.com/google/re2/wiki/Syntax) +// for all supported regular expression syntax. If the regular +// expression does not match any supported resource type, an +// INVALID_ARGUMENT error will be returned. +func (c *OrganizationsProtectedResourcesSearchCall) ResourceTypes(resourceTypes ...string) *OrganizationsProtectedResourcesSearchCall { + c.urlParams_.SetMulti("resourceTypes", append([]string{}, resourceTypes...)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -1153,6 +1170,12 @@ func (c *OrganizationsProtectedResourcesSearchCall) Do(opts ...googleapi.CallOpt // "location": "query", // "type": "string" // }, + // "resourceTypes": { + // "description": "Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, // "scope": { // "description": "Required. Resource name of the organization. Example: organizations/123", // "location": "path", diff --git a/managedidentities/v1/managedidentities-api.json b/managedidentities/v1/managedidentities-api.json index 9a53e890f16..03c7b2ead4d 100644 --- a/managedidentities/v1/managedidentities-api.json +++ b/managedidentities/v1/managedidentities-api.json @@ -209,6 +209,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "checkMigrationPermission": { + "description": "CheckMigrationPermission API gets the current state of DomainMigration", + "flatPath": "v1/projects/{projectsId}/locations/global/domains/{domainsId}:checkMigrationPermission", + "httpMethod": "POST", + "id": "managedidentities.projects.locations.global.domains.checkMigrationPermission", + "parameterOrder": [ + "domain" + ], + "parameters": { + "domain": { + "description": "Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/domains/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+domain}:checkMigrationPermission", + "request": { + "$ref": "CheckMigrationPermissionRequest" + }, + "response": { + "$ref": "CheckMigrationPermissionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a Microsoft AD domain.", "flatPath": "v1/projects/{projectsId}/locations/global/domains", @@ -1487,7 +1515,7 @@ } } }, - "revision": "20230505", + "revision": "20230705", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -1630,6 +1658,42 @@ }, "type": "object" }, + "CheckMigrationPermissionRequest": { + "description": "CheckMigrationPermissionRequest is the request message for CheckMigrationPermission method.", + "id": "CheckMigrationPermissionRequest", + "properties": {}, + "type": "object" + }, + "CheckMigrationPermissionResponse": { + "description": "CheckMigrationPermissionResponse is the response message for CheckMigrationPermission method.", + "id": "CheckMigrationPermissionResponse", + "properties": { + "onpremDomains": { + "description": "The state of SID filtering of all the domains which has trust established.", + "items": { + "$ref": "OnPremDomainSIDDetails" + }, + "type": "array" + }, + "state": { + "description": "The state of DomainMigration.", + "enum": [ + "STATE_UNSPECIFIED", + "DISABLED", + "ENABLED", + "NEEDS_MAINTENANCE" + ], + "enumDescriptions": [ + "DomainMigration is in unspecified state.", + "Domain Migration is Disabled.", + "Domain Migration is Enabled.", + "Domain Migration is not in valid state." + ], + "type": "string" + } + }, + "type": "object" + }, "DailyCycle": { "description": "Time window specified for daily operations.", "id": "DailyCycle", @@ -2141,6 +2205,7 @@ "id": "GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule", "properties": { "canReschedule": { + "deprecated": true, "description": "This field is deprecated, and will be always set to true since reschedule can happen multiple times now. This field should not be removed until all service producers remove this for their customers.", "type": "boolean" }, @@ -2585,6 +2650,31 @@ }, "type": "object" }, + "OnPremDomainSIDDetails": { + "description": "OnPremDomainDetails is the message which contains details of on-prem domain which is trusted and needs to be migrated.", + "id": "OnPremDomainSIDDetails", + "properties": { + "name": { + "description": "FQDN of the on-prem domain being migrated.", + "type": "string" + }, + "sidFilteringState": { + "description": "Current SID filtering state.", + "enum": [ + "SID_FILTERING_STATE_UNSPECIFIED", + "ENABLED", + "DISABLED" + ], + "enumDescriptions": [ + "SID Filtering is in unspecified state.", + "SID Filtering is Enabled.", + "SID Filtering is Disabled." + ], + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", diff --git a/managedidentities/v1/managedidentities-gen.go b/managedidentities/v1/managedidentities-gen.go index 5e94ba43af1..46529b70f17 100644 --- a/managedidentities/v1/managedidentities-gen.go +++ b/managedidentities/v1/managedidentities-gen.go @@ -450,6 +450,54 @@ func (s *Certificate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CheckMigrationPermissionRequest: CheckMigrationPermissionRequest is +// the request message for CheckMigrationPermission method. +type CheckMigrationPermissionRequest struct { +} + +// CheckMigrationPermissionResponse: CheckMigrationPermissionResponse is +// the response message for CheckMigrationPermission method. +type CheckMigrationPermissionResponse struct { + // OnpremDomains: The state of SID filtering of all the domains which + // has trust established. + OnpremDomains []*OnPremDomainSIDDetails `json:"onpremDomains,omitempty"` + + // State: The state of DomainMigration. + // + // Possible values: + // "STATE_UNSPECIFIED" - DomainMigration is in unspecified state. + // "DISABLED" - Domain Migration is Disabled. + // "ENABLED" - Domain Migration is Enabled. + // "NEEDS_MAINTENANCE" - Domain Migration is not in valid state. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "OnpremDomains") 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. "OnpremDomains") 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 *CheckMigrationPermissionResponse) MarshalJSON() ([]byte, error) { + type NoMethod CheckMigrationPermissionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DailyCycle: Time window specified for daily operations. type DailyCycle struct { // Duration: Output only. Duration of the time window, set by service @@ -2034,6 +2082,45 @@ func (s *OnPremDomainDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// OnPremDomainSIDDetails: OnPremDomainDetails is the message which +// contains details of on-prem domain which is trusted and needs to be +// migrated. +type OnPremDomainSIDDetails struct { + // Name: FQDN of the on-prem domain being migrated. + Name string `json:"name,omitempty"` + + // SidFilteringState: Current SID filtering state. + // + // Possible values: + // "SID_FILTERING_STATE_UNSPECIFIED" - SID Filtering is in unspecified + // state. + // "ENABLED" - SID Filtering is Enabled. + // "DISABLED" - SID Filtering is Disabled. + SidFilteringState string `json:"sidFilteringState,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 *OnPremDomainSIDDetails) MarshalJSON() ([]byte, error) { + type NoMethod OnPremDomainSIDDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -3413,6 +3500,150 @@ func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) Do(opts ...googleapi.Cal } +// method id "managedidentities.projects.locations.global.domains.checkMigrationPermission": + +type ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall struct { + s *Service + domain string + checkmigrationpermissionrequest *CheckMigrationPermissionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CheckMigrationPermission: CheckMigrationPermission API gets the +// current state of DomainMigration +// +// - domain: The domain resource name using the form: +// `projects/{project_id}/locations/global/domains/{domain_name}`. +func (r *ProjectsLocationsGlobalDomainsService) CheckMigrationPermission(domain string, checkmigrationpermissionrequest *CheckMigrationPermissionRequest) *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall { + c := &ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.domain = domain + c.checkmigrationpermissionrequest = checkmigrationpermissionrequest + 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 *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall { + 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 *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall { + 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 *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) 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.checkmigrationpermissionrequest) + 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, "v1/{+domain}:checkMigrationPermission") + 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{ + "domain": c.domain, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "managedidentities.projects.locations.global.domains.checkMigrationPermission" call. +// Exactly one of *CheckMigrationPermissionResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *CheckMigrationPermissionResponse.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 *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) Do(opts ...googleapi.CallOption) (*CheckMigrationPermissionResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &CheckMigrationPermissionResponse{ + 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": "CheckMigrationPermission API gets the current state of DomainMigration", + // "flatPath": "v1/projects/{projectsId}/locations/global/domains/{domainsId}:checkMigrationPermission", + // "httpMethod": "POST", + // "id": "managedidentities.projects.locations.global.domains.checkMigrationPermission", + // "parameterOrder": [ + // "domain" + // ], + // "parameters": { + // "domain": { + // "description": "Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/domains/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+domain}:checkMigrationPermission", + // "request": { + // "$ref": "CheckMigrationPermissionRequest" + // }, + // "response": { + // "$ref": "CheckMigrationPermissionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "managedidentities.projects.locations.global.domains.create": type ProjectsLocationsGlobalDomainsCreateCall struct { diff --git a/managedidentities/v1alpha1/managedidentities-api.json b/managedidentities/v1alpha1/managedidentities-api.json index 1a9d09eda19..86693ad8e6b 100644 --- a/managedidentities/v1alpha1/managedidentities-api.json +++ b/managedidentities/v1alpha1/managedidentities-api.json @@ -1515,7 +1515,7 @@ } } }, - "revision": "20230505", + "revision": "20230705", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -1905,6 +1905,11 @@ "description": "EnableMigrationRequest is the request message for EnableMigration method.", "id": "EnableMigrationRequest", "properties": { + "enableDuration": { + "description": "Optional. Period after which the migration would be auto disabled. If unspecified, a default timeout of 48h is used.", + "format": "google-duration", + "type": "string" + }, "migratingDomains": { "description": "Required. List of the on-prem domains to be migrated.", "items": { @@ -2203,6 +2208,7 @@ "id": "GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule", "properties": { "canReschedule": { + "deprecated": true, "description": "This field is deprecated, and will be always set to true since reschedule can happen multiple times now. This field should not be removed until all service producers remove this for their customers.", "type": "boolean" }, diff --git a/managedidentities/v1alpha1/managedidentities-gen.go b/managedidentities/v1alpha1/managedidentities-gen.go index 019d0b2cd01..b22d1229d01 100644 --- a/managedidentities/v1alpha1/managedidentities-gen.go +++ b/managedidentities/v1alpha1/managedidentities-gen.go @@ -849,11 +849,15 @@ type Empty struct { // EnableMigrationRequest: EnableMigrationRequest is the request message // for EnableMigration method. type EnableMigrationRequest struct { + // EnableDuration: Optional. Period after which the migration would be + // auto disabled. If unspecified, a default timeout of 48h is used. + EnableDuration string `json:"enableDuration,omitempty"` + // MigratingDomains: Required. List of the on-prem domains to be // migrated. MigratingDomains []*OnPremDomainDetails `json:"migratingDomains,omitempty"` - // ForceSendFields is a list of field names (e.g. "MigratingDomains") to + // ForceSendFields is a list of field names (e.g. "EnableDuration") 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 @@ -861,7 +865,7 @@ type EnableMigrationRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MigratingDomains") to + // NullFields is a list of field names (e.g. "EnableDuration") 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 diff --git a/managedidentities/v1beta1/managedidentities-api.json b/managedidentities/v1beta1/managedidentities-api.json index f92ec31a613..c0d1a60bef3 100644 --- a/managedidentities/v1beta1/managedidentities-api.json +++ b/managedidentities/v1beta1/managedidentities-api.json @@ -1515,7 +1515,7 @@ } } }, - "revision": "20230505", + "revision": "20230705", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -1914,6 +1914,11 @@ "description": "EnableMigrationRequest is the request message for EnableMigration method.", "id": "EnableMigrationRequest", "properties": { + "enableDuration": { + "description": "Optional. Period after which the migration would be auto disabled. If unspecified, a default timeout of 48h is used.", + "format": "google-duration", + "type": "string" + }, "migratingDomains": { "description": "Required. List of the on-prem domains to be migrated.", "items": { @@ -2212,6 +2217,7 @@ "id": "GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule", "properties": { "canReschedule": { + "deprecated": true, "description": "This field is deprecated, and will be always set to true since reschedule can happen multiple times now. This field should not be removed until all service producers remove this for their customers.", "type": "boolean" }, diff --git a/managedidentities/v1beta1/managedidentities-gen.go b/managedidentities/v1beta1/managedidentities-gen.go index 48e49343295..773e3bb8811 100644 --- a/managedidentities/v1beta1/managedidentities-gen.go +++ b/managedidentities/v1beta1/managedidentities-gen.go @@ -856,11 +856,15 @@ type Empty struct { // EnableMigrationRequest: EnableMigrationRequest is the request message // for EnableMigration method. type EnableMigrationRequest struct { + // EnableDuration: Optional. Period after which the migration would be + // auto disabled. If unspecified, a default timeout of 48h is used. + EnableDuration string `json:"enableDuration,omitempty"` + // MigratingDomains: Required. List of the on-prem domains to be // migrated. MigratingDomains []*OnPremDomainDetails `json:"migratingDomains,omitempty"` - // ForceSendFields is a list of field names (e.g. "MigratingDomains") to + // ForceSendFields is a list of field names (e.g. "EnableDuration") 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 @@ -868,7 +872,7 @@ type EnableMigrationRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MigratingDomains") to + // NullFields is a list of field names (e.g. "EnableDuration") 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 diff --git a/recommender/v1beta1/recommender-api.json b/recommender/v1beta1/recommender-api.json index b98ef58500c..cfabfb5b281 100644 --- a/recommender/v1beta1/recommender-api.json +++ b/recommender/v1beta1/recommender-api.json @@ -1748,7 +1748,7 @@ } } }, - "revision": "20230612", + "revision": "20230706", "rootUrl": "https://recommender.googleapis.com/", "schemas": { "GoogleCloudRecommenderV1beta1CostProjection": { @@ -1953,7 +1953,7 @@ "type": "object" }, "GoogleCloudRecommenderV1beta1InsightType": { - "description": "The type of insight. See google3/googledata/devsite/site-cloud/en/recommender/docs/insights/insight-types.md for more info.", + "description": "The type of insight.", "id": "GoogleCloudRecommenderV1beta1InsightType", "properties": { "name": { @@ -2439,7 +2439,7 @@ "type": "object" }, "GoogleCloudRecommenderV1beta1RecommenderType": { - "description": "The type of a recommender. See google3/googledata/devsite/site-cloud/en/recommender/docs/recommenders.md for more info.", + "description": "The type of a recommender.", "id": "GoogleCloudRecommenderV1beta1RecommenderType", "properties": { "name": { diff --git a/recommender/v1beta1/recommender-gen.go b/recommender/v1beta1/recommender-gen.go index 28292e50471..2ba315d4551 100644 --- a/recommender/v1beta1/recommender-gen.go +++ b/recommender/v1beta1/recommender-gen.go @@ -711,9 +711,7 @@ func (s *GoogleCloudRecommenderV1beta1InsightStateInfo) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRecommenderV1beta1InsightType: The type of insight. See -// google3/googledata/devsite/site-cloud/en/recommender/docs/insights/ins -// ight-types.md for more info. +// GoogleCloudRecommenderV1beta1InsightType: The type of insight. type GoogleCloudRecommenderV1beta1InsightType struct { // Name: The insight_type’s name in format insightTypes/{insight_type} // eg: insightTypes/google.iam.policy.Insight @@ -1591,9 +1589,7 @@ func (s *GoogleCloudRecommenderV1beta1RecommenderGenerationConfig) MarshalJSON() } // GoogleCloudRecommenderV1beta1RecommenderType: The type of a -// recommender. See -// google3/googledata/devsite/site-cloud/en/recommender/docs/recommenders -// .md for more info. +// recommender. type GoogleCloudRecommenderV1beta1RecommenderType struct { // Name: The recommender's name in format // RecommenderTypes/{recommender_type} eg: diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index e9a6b4fb494..5ad363e41fa 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -4150,7 +4150,7 @@ } } }, - "revision": "20230626", + "revision": "20230706", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -4400,6 +4400,7 @@ "type": "string" }, "muteAnnotation": { + "deprecated": true, "description": "This can be a mute configuration name or any identifier for mute/unmute of findings based on the filter.", "type": "string" } @@ -4736,7 +4737,7 @@ "type": "object" }, "Database": { - "description": "Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types, such as Cloud SQL databases, are not yet supported by Cloud Asset Inventory. In these cases only the display name is provided. Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. Cloud SQL databases). In these cases only the display name will be provided.", + "description": "Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types, such as Cloud SQL databases, are not yet supported by Cloud Asset Inventory. In these cases only the display name is provided.", "id": "Database", "properties": { "displayName": { @@ -4751,7 +4752,7 @@ "type": "array" }, "name": { - "description": "The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.", + "description": "Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. Cloud SQL databases). In these cases only the display name will be provided. The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.", "type": "string" }, "query": { @@ -4761,6 +4762,10 @@ "userName": { "description": "The username used to connect to the database. The username might not be an IAM principal and does not have a set format.", "type": "string" + }, + "version": { + "description": "The version of the database, for example, POSTGRES_14. See [the complete list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).", + "type": "string" } }, "type": "object" @@ -5411,6 +5416,7 @@ "type": "string" }, "displayName": { + "deprecated": true, "description": "The human readable name to be displayed for the mute config.", "type": "string" }, @@ -6526,7 +6532,8 @@ "NETWORK_SERVICE_DISCOVERY", "ACCESS_TOKEN_MANIPULATION", "ABUSE_ELEVATION_CONTROL_MECHANISM", - "DEFAULT_ACCOUNTS" + "DEFAULT_ACCOUNTS", + "INHIBIT_SYSTEM_RECOVERY" ], "enumDescriptions": [ "Unspecified value.", @@ -6564,7 +6571,8 @@ "T1046", "T1134", "T1548", - "T1078.001" + "T1078.001", + "T1490" ], "type": "string" }, @@ -6647,7 +6655,8 @@ "NETWORK_SERVICE_DISCOVERY", "ACCESS_TOKEN_MANIPULATION", "ABUSE_ELEVATION_CONTROL_MECHANISM", - "DEFAULT_ACCOUNTS" + "DEFAULT_ACCOUNTS", + "INHIBIT_SYSTEM_RECOVERY" ], "enumDescriptions": [ "Unspecified value.", @@ -6685,7 +6694,8 @@ "T1046", "T1134", "T1548", - "T1078.001" + "T1078.001", + "T1490" ], "type": "string" }, diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 16ceb4bef91..957db4420f3 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -1532,12 +1532,7 @@ func (s *Cvssv3) UnmarshalJSON(data []byte) error { // resource name (https://google.aip.dev/122#full-resource-names) // populated because these resource types, such as Cloud SQL databases, // are not yet supported by Cloud Asset Inventory. In these cases only -// the display name is provided. Some database resources may not have -// the full resource name -// (https://google.aip.dev/122#full-resource-names) populated because -// these resource types are not yet supported by Cloud Asset Inventory -// (e.g. Cloud SQL databases). In these cases only the display name will -// be provided. +// the display name is provided. type Database struct { // DisplayName: The human-readable name of the database that the user // connected to. @@ -1547,7 +1542,11 @@ type Database struct { // grant, which is not an IAM policy change. Grantees []string `json:"grantees,omitempty"` - // Name: The full resource name + // Name: Some database resources may not have the full resource name + // (https://google.aip.dev/122#full-resource-names) populated because + // these resource types are not yet supported by Cloud Asset Inventory + // (e.g. Cloud SQL databases). In these cases only the display name will + // be provided. The full resource name // (https://google.aip.dev/122#full-resource-names) of the database that // the user connected to, if it is supported by Cloud Asset Inventory. Name string `json:"name,omitempty"` @@ -1559,6 +1558,11 @@ type Database struct { // might not be an IAM principal and does not have a set format. UserName string `json:"userName,omitempty"` + // Version: The version of the database, for example, POSTGRES_14. See + // the complete list + // (https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion). + Version string `json:"version,omitempty"` + // 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 @@ -4526,6 +4530,7 @@ type MitreAttack struct { // "ACCESS_TOKEN_MANIPULATION" - T1134 // "ABUSE_ELEVATION_CONTROL_MECHANISM" - T1548 // "DEFAULT_ACCOUNTS" - T1078.001 + // "INHIBIT_SYSTEM_RECOVERY" - T1490 AdditionalTechniques []string `json:"additionalTechniques,omitempty"` // PrimaryTactic: The MITRE ATT&CK tactic most closely represented by @@ -4594,6 +4599,7 @@ type MitreAttack struct { // "ACCESS_TOKEN_MANIPULATION" - T1134 // "ABUSE_ELEVATION_CONTROL_MECHANISM" - T1548 // "DEFAULT_ACCOUNTS" - T1078.001 + // "INHIBIT_SYSTEM_RECOVERY" - T1490 PrimaryTechniques []string `json:"primaryTechniques,omitempty"` // Version: The MITRE ATT&CK version referenced by the above fields. diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 11e3b914fba..63597bfec7a 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20230607", + "revision": "20230706", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1458,7 +1458,7 @@ "type": "object" }, "Database": { - "description": "Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types, such as Cloud SQL databases, are not yet supported by Cloud Asset Inventory. In these cases only the display name is provided. Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. Cloud SQL databases). In these cases only the display name will be provided.", + "description": "Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types, such as Cloud SQL databases, are not yet supported by Cloud Asset Inventory. In these cases only the display name is provided.", "id": "Database", "properties": { "displayName": { @@ -1473,7 +1473,7 @@ "type": "array" }, "name": { - "description": "The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.", + "description": "Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. Cloud SQL databases). In these cases only the display name will be provided. The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.", "type": "string" }, "query": { @@ -1483,6 +1483,10 @@ "userName": { "description": "The username used to connect to the database. The username might not be an IAM principal and does not have a set format.", "type": "string" + }, + "version": { + "description": "The version of the database, for example, POSTGRES_14. See [the complete list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).", + "type": "string" } }, "type": "object" @@ -2133,6 +2137,7 @@ "type": "string" }, "displayName": { + "deprecated": true, "description": "The human readable name to be displayed for the mute config.", "type": "string" }, @@ -3163,7 +3168,8 @@ "NETWORK_SERVICE_DISCOVERY", "ACCESS_TOKEN_MANIPULATION", "ABUSE_ELEVATION_CONTROL_MECHANISM", - "DEFAULT_ACCOUNTS" + "DEFAULT_ACCOUNTS", + "INHIBIT_SYSTEM_RECOVERY" ], "enumDescriptions": [ "Unspecified value.", @@ -3201,7 +3207,8 @@ "T1046", "T1134", "T1548", - "T1078.001" + "T1078.001", + "T1490" ], "type": "string" }, @@ -3284,7 +3291,8 @@ "NETWORK_SERVICE_DISCOVERY", "ACCESS_TOKEN_MANIPULATION", "ABUSE_ELEVATION_CONTROL_MECHANISM", - "DEFAULT_ACCOUNTS" + "DEFAULT_ACCOUNTS", + "INHIBIT_SYSTEM_RECOVERY" ], "enumDescriptions": [ "Unspecified value.", @@ -3322,7 +3330,8 @@ "T1046", "T1134", "T1548", - "T1078.001" + "T1078.001", + "T1490" ], "type": "string" }, diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 3800c0dc449..2e1938f9575 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -1091,12 +1091,7 @@ func (s *Cvssv3) UnmarshalJSON(data []byte) error { // resource name (https://google.aip.dev/122#full-resource-names) // populated because these resource types, such as Cloud SQL databases, // are not yet supported by Cloud Asset Inventory. In these cases only -// the display name is provided. Some database resources may not have -// the full resource name -// (https://google.aip.dev/122#full-resource-names) populated because -// these resource types are not yet supported by Cloud Asset Inventory -// (e.g. Cloud SQL databases). In these cases only the display name will -// be provided. +// the display name is provided. type Database struct { // DisplayName: The human-readable name of the database that the user // connected to. @@ -1106,7 +1101,11 @@ type Database struct { // grant, which is not an IAM policy change. Grantees []string `json:"grantees,omitempty"` - // Name: The full resource name + // Name: Some database resources may not have the full resource name + // (https://google.aip.dev/122#full-resource-names) populated because + // these resource types are not yet supported by Cloud Asset Inventory + // (e.g. Cloud SQL databases). In these cases only the display name will + // be provided. The full resource name // (https://google.aip.dev/122#full-resource-names) of the database that // the user connected to, if it is supported by Cloud Asset Inventory. Name string `json:"name,omitempty"` @@ -1118,6 +1117,11 @@ type Database struct { // might not be an IAM principal and does not have a set format. UserName string `json:"userName,omitempty"` + // Version: The version of the database, for example, POSTGRES_14. See + // the complete list + // (https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion). + Version string `json:"version,omitempty"` + // 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 @@ -3822,6 +3826,7 @@ type MitreAttack struct { // "ACCESS_TOKEN_MANIPULATION" - T1134 // "ABUSE_ELEVATION_CONTROL_MECHANISM" - T1548 // "DEFAULT_ACCOUNTS" - T1078.001 + // "INHIBIT_SYSTEM_RECOVERY" - T1490 AdditionalTechniques []string `json:"additionalTechniques,omitempty"` // PrimaryTactic: The MITRE ATT&CK tactic most closely represented by @@ -3890,6 +3895,7 @@ type MitreAttack struct { // "ACCESS_TOKEN_MANIPULATION" - T1134 // "ABUSE_ELEVATION_CONTROL_MECHANISM" - T1548 // "DEFAULT_ACCOUNTS" - T1078.001 + // "INHIBIT_SYSTEM_RECOVERY" - T1490 PrimaryTechniques []string `json:"primaryTechniques,omitempty"` // Version: The MITRE ATT&CK version referenced by the above fields. diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 809389ed114..9ac1d8f6409 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1981,7 +1981,7 @@ } } }, - "revision": "20230607", + "revision": "20230706", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2479,7 +2479,7 @@ "type": "object" }, "Database": { - "description": "Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types, such as Cloud SQL databases, are not yet supported by Cloud Asset Inventory. In these cases only the display name is provided. Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. Cloud SQL databases). In these cases only the display name will be provided.", + "description": "Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types, such as Cloud SQL databases, are not yet supported by Cloud Asset Inventory. In these cases only the display name is provided.", "id": "Database", "properties": { "displayName": { @@ -2494,7 +2494,7 @@ "type": "array" }, "name": { - "description": "The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.", + "description": "Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. Cloud SQL databases). In these cases only the display name will be provided. The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.", "type": "string" }, "query": { @@ -2504,6 +2504,10 @@ "userName": { "description": "The username used to connect to the database. The username might not be an IAM principal and does not have a set format.", "type": "string" + }, + "version": { + "description": "The version of the database, for example, POSTGRES_14. See [the complete list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).", + "type": "string" } }, "type": "object" @@ -3202,6 +3206,7 @@ "type": "string" }, "displayName": { + "deprecated": true, "description": "The human readable name to be displayed for the mute config.", "type": "string" }, @@ -3902,7 +3907,8 @@ "NETWORK_SERVICE_DISCOVERY", "ACCESS_TOKEN_MANIPULATION", "ABUSE_ELEVATION_CONTROL_MECHANISM", - "DEFAULT_ACCOUNTS" + "DEFAULT_ACCOUNTS", + "INHIBIT_SYSTEM_RECOVERY" ], "enumDescriptions": [ "Unspecified value.", @@ -3940,7 +3946,8 @@ "T1046", "T1134", "T1548", - "T1078.001" + "T1078.001", + "T1490" ], "type": "string" }, @@ -4023,7 +4030,8 @@ "NETWORK_SERVICE_DISCOVERY", "ACCESS_TOKEN_MANIPULATION", "ABUSE_ELEVATION_CONTROL_MECHANISM", - "DEFAULT_ACCOUNTS" + "DEFAULT_ACCOUNTS", + "INHIBIT_SYSTEM_RECOVERY" ], "enumDescriptions": [ "Unspecified value.", @@ -4061,7 +4069,8 @@ "T1046", "T1134", "T1548", - "T1078.001" + "T1078.001", + "T1490" ], "type": "string" }, diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 453b26140ff..d6ad53625fa 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -1148,12 +1148,7 @@ func (s *Cvssv3) UnmarshalJSON(data []byte) error { // resource name (https://google.aip.dev/122#full-resource-names) // populated because these resource types, such as Cloud SQL databases, // are not yet supported by Cloud Asset Inventory. In these cases only -// the display name is provided. Some database resources may not have -// the full resource name -// (https://google.aip.dev/122#full-resource-names) populated because -// these resource types are not yet supported by Cloud Asset Inventory -// (e.g. Cloud SQL databases). In these cases only the display name will -// be provided. +// the display name is provided. type Database struct { // DisplayName: The human-readable name of the database that the user // connected to. @@ -1163,7 +1158,11 @@ type Database struct { // grant, which is not an IAM policy change. Grantees []string `json:"grantees,omitempty"` - // Name: The full resource name + // Name: Some database resources may not have the full resource name + // (https://google.aip.dev/122#full-resource-names) populated because + // these resource types are not yet supported by Cloud Asset Inventory + // (e.g. Cloud SQL databases). In these cases only the display name will + // be provided. The full resource name // (https://google.aip.dev/122#full-resource-names) of the database that // the user connected to, if it is supported by Cloud Asset Inventory. Name string `json:"name,omitempty"` @@ -1175,6 +1174,11 @@ type Database struct { // might not be an IAM principal and does not have a set format. UserName string `json:"userName,omitempty"` + // Version: The version of the database, for example, POSTGRES_14. See + // the complete list + // (https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion). + Version string `json:"version,omitempty"` + // 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 @@ -3284,6 +3288,7 @@ type MitreAttack struct { // "ACCESS_TOKEN_MANIPULATION" - T1134 // "ABUSE_ELEVATION_CONTROL_MECHANISM" - T1548 // "DEFAULT_ACCOUNTS" - T1078.001 + // "INHIBIT_SYSTEM_RECOVERY" - T1490 AdditionalTechniques []string `json:"additionalTechniques,omitempty"` // PrimaryTactic: The MITRE ATT&CK tactic most closely represented by @@ -3352,6 +3357,7 @@ type MitreAttack struct { // "ACCESS_TOKEN_MANIPULATION" - T1134 // "ABUSE_ELEVATION_CONTROL_MECHANISM" - T1548 // "DEFAULT_ACCOUNTS" - T1078.001 + // "INHIBIT_SYSTEM_RECOVERY" - T1490 PrimaryTechniques []string `json:"primaryTechniques,omitempty"` // Version: The MITRE ATT&CK version referenced by the above fields. diff --git a/vision/v1/vision-api.json b/vision/v1/vision-api.json index 52e19b5cd36..0df98926814 100644 --- a/vision/v1/vision-api.json +++ b/vision/v1/vision-api.json @@ -1282,7 +1282,7 @@ } } }, - "revision": "20230608", + "revision": "20230710", "rootUrl": "https://vision.googleapis.com/", "schemas": { "AddProductToProductSetRequest": { @@ -1905,6 +1905,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -2487,6 +2488,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -3900,6 +3902,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -5348,6 +5351,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -6883,6 +6887,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" diff --git a/vision/v1p1beta1/vision-api.json b/vision/v1p1beta1/vision-api.json index c124a0bcea2..7ab9db763f6 100644 --- a/vision/v1p1beta1/vision-api.json +++ b/vision/v1p1beta1/vision-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20230608", + "revision": "20230710", "rootUrl": "https://vision.googleapis.com/", "schemas": { "AnnotateFileResponse": { @@ -866,6 +866,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -1595,6 +1596,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -3193,6 +3195,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -4641,6 +4644,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -6176,6 +6180,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" diff --git a/vision/v1p2beta1/vision-api.json b/vision/v1p2beta1/vision-api.json index a06a7f8918e..2f880aad34d 100644 --- a/vision/v1p2beta1/vision-api.json +++ b/vision/v1p2beta1/vision-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20230608", + "revision": "20230710", "rootUrl": "https://vision.googleapis.com/", "schemas": { "AnnotateFileResponse": { @@ -866,6 +866,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -1398,6 +1399,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -3008,6 +3010,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -4641,6 +4644,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" @@ -6176,6 +6180,7 @@ "description": "Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features." }, "confidence": { + "deprecated": true, "description": "**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the \"Eiffel Tower\" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].", "format": "float", "type": "number" diff --git a/websecurityscanner/v1/websecurityscanner-api.json b/websecurityscanner/v1/websecurityscanner-api.json index 2b1c271ce16..8e29febc4d2 100644 --- a/websecurityscanner/v1/websecurityscanner-api.json +++ b/websecurityscanner/v1/websecurityscanner-api.json @@ -526,7 +526,7 @@ } } }, - "revision": "20230107", + "revision": "20230701", "rootUrl": "https://websecurityscanner.googleapis.com/", "schemas": { "Authentication": { @@ -539,6 +539,7 @@ }, "googleAccount": { "$ref": "GoogleAccount", + "deprecated": true, "description": "Authentication using a Google account." }, "iapCredential": { @@ -722,6 +723,7 @@ "type": "object" }, "GoogleAccount": { + "deprecated": true, "description": "Describes authentication configuration that uses a Google account.", "id": "GoogleAccount", "properties": { diff --git a/websecurityscanner/v1beta/websecurityscanner-api.json b/websecurityscanner/v1beta/websecurityscanner-api.json index b94e661f42e..86bd8d8d587 100644 --- a/websecurityscanner/v1beta/websecurityscanner-api.json +++ b/websecurityscanner/v1beta/websecurityscanner-api.json @@ -526,7 +526,7 @@ } } }, - "revision": "20230107", + "revision": "20230701", "rootUrl": "https://websecurityscanner.googleapis.com/", "schemas": { "Authentication": { @@ -539,6 +539,7 @@ }, "googleAccount": { "$ref": "GoogleAccount", + "deprecated": true, "description": "Authentication using a Google account." }, "iapCredential": { @@ -720,6 +721,7 @@ "type": "object" }, "GoogleAccount": { + "deprecated": true, "description": "Describes authentication configuration that uses a Google account.", "id": "GoogleAccount", "properties": {