From c687feba95f4e37531abd51742de4791d7fdc92b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 25 May 2024 07:10:57 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- artifactregistry/v1/artifactregistry-api.json | 29 +- artifactregistry/v1/artifactregistry-gen.go | 103 ++++- .../v1alpha1/contactcenteraiplatform-api.json | 223 ++++++++- .../v1alpha1/contactcenteraiplatform-gen.go | 288 +++++++++++- container/v1beta1/container-api.json | 12 +- container/v1beta1/container-gen.go | 2 + developerconnect/v1/developerconnect-api.json | 158 +------ developerconnect/v1/developerconnect-gen.go | 431 ------------------ drive/v2/drive-api.json | 29 +- drive/v2/drive-gen.go | 5 + drive/v3/drive-api.json | 22 +- drive/v3/drive-gen.go | 5 + 12 files changed, 697 insertions(+), 610 deletions(-) diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index f1eee7689cf..51362f85a4f 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -945,6 +945,31 @@ }, "files": { "methods": { + "delete": { + "description": "Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}", + "httpMethod": "DELETE", + "id": "artifactregistry.projects.locations.repositories.files.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the file to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "download": { "description": "Download a file.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}:download", @@ -1988,7 +2013,7 @@ } } }, - "revision": "20240513", + "revision": "20240520", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -3454,7 +3479,7 @@ "type": "string" }, "disallowUnspecifiedMode": { - "description": "Optional. If this is true, aunspecified repo type will be treated as error. Is used for new repo types that don't have any specific fields. Right now is used by AOSS team when creating repos for customers.", + "description": "Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.", "type": "boolean" }, "dockerConfig": { diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index fb24f890dd2..685a5ebe033 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -2415,10 +2415,8 @@ type Repository struct { CreateTime string `json:"createTime,omitempty"` // Description: The user-provided description of the repository. Description string `json:"description,omitempty"` - // DisallowUnspecifiedMode: Optional. If this is true, aunspecified repo type - // will be treated as error. Is used for new repo types that don't have any - // specific fields. Right now is used by AOSS team when creating repos for - // customers. + // DisallowUnspecifiedMode: Optional. If this is true, an unspecified repo type + // will be treated as error rather than defaulting to standard. DisallowUnspecifiedMode bool `json:"disallowUnspecifiedMode,omitempty"` // DockerConfig: Docker repository config contains repository level // configuration for the repositories of docker type. @@ -5466,6 +5464,103 @@ func (c *ProjectsLocationsRepositoriesDockerImagesListCall) Pages(ctx context.Co } } +type ProjectsLocationsRepositoriesFilesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a file and all of its content. It is only allowed on generic +// repositories. The returned operation will complete once the file has been +// deleted. +// +// - name: The name of the file to delete. +func (r *ProjectsLocationsRepositoriesFilesService) Delete(name string) *ProjectsLocationsRepositoriesFilesDeleteCall { + c := &ProjectsLocationsRepositoriesFilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsRepositoriesFilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFilesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRepositoriesFilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesFilesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsRepositoriesFilesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesFilesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.files.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesFilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, 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 := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsRepositoriesFilesDownloadCall struct { s *Service name string diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json index 547b62e1e39..61ea0ee7798 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json @@ -512,7 +512,7 @@ } } }, - "revision": "20240506", + "revision": "20240524", "rootUrl": "https://contactcenteraiplatform.googleapis.com/", "schemas": { "AdminUser": { @@ -536,8 +536,26 @@ "properties": {}, "type": "object" }, + "Component": { + "description": "Defines a logical CCAIP component that e.g. “EMAIL”, \"CRM\". For more information see go/ccaip-private-path-v2. Each logical component is associated with a list of service attachments.", + "id": "Component", + "properties": { + "name": { + "description": "Name of the component.", + "type": "string" + }, + "serviceAttachments": { + "description": "Associated service attachments.", + "items": { + "$ref": "ServiceAttachment" + }, + "type": "array" + } + }, + "type": "object" + }, "ContactCenter": { - "description": "Message describing ContactCenter object Next ID: 22", + "description": "Message describing ContactCenter object Next ID: 23", "id": "ContactCenter", "properties": { "adminUser": { @@ -554,6 +572,10 @@ "readOnly": true, "type": "string" }, + "critical": { + "$ref": "Critical", + "description": "Optional. Critical release channel." + }, "customerDomainPrefix": { "description": "Required. Immutable. At least 2 and max 16 char long, must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).", "type": "string" @@ -589,6 +611,10 @@ "$ref": "Normal", "description": "Optional. Normal release channel." }, + "privateAccess": { + "$ref": "PrivateAccess", + "description": "Optional. VPC-SC related networking configuration." + }, "privateComponents": { "description": "Output only. A list of UJET components that should be privately accessed. This field is set by reading settings from the data plane. For more information about the format of the component please refer to go/ccaip-vpc-sc-org-policy. This field is must be fully populated only for Create/Update resource operations. The main use case for this field is OrgPolicy checks via CPE.", "items": { @@ -611,7 +637,10 @@ "STATE_FAILED", "STATE_TERMINATING_FAILED", "STATE_TERMINATED", - "STATE_IN_GRACE_PERIOD" + "STATE_IN_GRACE_PERIOD", + "STATE_FAILING_OVER", + "STATE_DEGRADED", + "STATE_REPAIRING" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", @@ -621,7 +650,10 @@ "State FAILED", "State TERMINATING_FAILED", "State TERMINATED", - "State IN_GRACE_PERIOD" + "State IN_GRACE_PERIOD", + "State in STATE_FAILING_OVER. This State must ONLY be used by Multiregional Instances when a failover was triggered. Customers are not able to update instances in this state.", + "State DEGRADED. This State must ONLY be used by Multiregional Instances after a failover was executed successfully. Customers are not able to update instances in this state.", + "State REPAIRING. This State must ONLY be used by Multiregional Instances after a fallback was triggered. Customers are not able to update instancs in this state." ], "readOnly": true, "type": "string" @@ -670,8 +702,22 @@ }, "type": "object" }, + "Critical": { + "description": "Instances in this Channel will receive updates after all instances in `Critical` were updated + 2 days. They also will only be updated outside of their peak hours.", + "id": "Critical", + "properties": { + "peakHours": { + "description": "Required. Hours during which the instance should not be updated.", + "items": { + "$ref": "WeeklySchedule" + }, + "type": "array" + } + }, + "type": "object" + }, "Early": { - "description": "First Channel to receive the updates. Meant to dev/test instances", + "description": "LINT.IfChange First Channel to receive the updates. Meant to dev/test instances", "id": "Early", "properties": {}, "type": "object" @@ -953,6 +999,27 @@ }, "type": "object" }, + "PrivateAccess": { + "description": "Defines ingress and egress private traffic settings for CCAIP instances.", + "id": "PrivateAccess", + "properties": { + "egressSettings": { + "description": "List of egress components that should not be accessed via the Internet. For more information see go/ccaip-private-path-v2.", + "items": { + "$ref": "Component" + }, + "type": "array" + }, + "ingressSettings": { + "description": "List of ingress components that should not be accessed via the Internet. For more information see go/ccaip-private-path-v2.", + "items": { + "$ref": "Component" + }, + "type": "array" + } + }, + "type": "object" + }, "Quota": { "description": "Quota details.", "id": "Quota", @@ -1010,6 +1077,67 @@ "description": "Message storing SAML params to enable Google as IDP.", "id": "SAMLParams", "properties": { + "authenticationContexts": { + "description": "Additional contexts used for authentication.", + "items": { + "enum": [ + "AUTHENTICATION_CONTEXT_UNSPECIFIED", + "INTERNET_PROTOCOL", + "INTERNET_PROTOCOL_PASSWORD", + "KERBEROS", + "MOBILE_ONE_FACTOR_UNREGISTERED", + "MOBILE_TWO_FACTOR_UNREGISTERED", + "MOBILE_ONE_FACTOR_CONTRACT", + "MOBILE_TWO_FACTOR_CONTRACT", + "PASSWORD", + "PASSWORD_PROTECTED_TRANSPORT", + "PREVIOUS_SESSION", + "PUBLIC_KEY_X509", + "PUBLIC_KEY_PGP", + "PUBLIC_KEY_SPKI", + "PUBLIC_KEY_XML_DIGITAL_SIGNATURE", + "SMARTCARD", + "SMARTCARD_PKI", + "SOFTWARE_PKI", + "TELEPHONY", + "TELEPHONY_NOMADIC", + "TELEPHONY_PERSONALIZED", + "TELEPHONY_AUTHENTICATED", + "SECURE_REMOTE_PASSWORD", + "SSL_TLS_CERTIFICATE_BASED", + "TIME_SYNC_TOKEN" + ], + "enumDescriptions": [ + "The Unspecified class indicates that the authentication was performed by unspecified means.", + "The Internet Protocol class is applicable when a principal is authenticated through the use of a provided IP address.", + "The Internet Protocol Password class is applicable when a principal is authenticated through the use of a provided IP address, in addition to a username/password.", + "This class is applicable when the principal has authenticated using a password to a local authentication authority, in order to acquire a Kerberos ticket. That Kerberos ticket is then used for subsequent network authentication.", + "Reflects no mobile customer registration procedures and an authentication of the mobile device without requiring explicit end-user interaction. This context class authenticates only the device and never the user; it is useful when services other than the mobile operator want to add a secure device authentication to their authentication process.", + "Reflects no mobile customer registration procedures and a two-factor based authentication, such as secure device and user PIN. This context class is useful when a service other than the mobile operator wants to link their customer ID to a mobile supplied two-factor authentication service by capturing mobile phone data at enrollment.", + "Reflects mobile contract customer registration procedures and a single factor authentication. For example, a digital signing device with tamper resistant memory for key storage, such as the mobile MSISDN, but no required PIN or biometric for real-time user authentication.", + "Reflects mobile contract customer registration procedures and a two-factor based authentication. For example, a digital signing device with tamper resistant memory for key storage, such as a GSM SIM, that requires explicit proof of user identity and intent, such as a PIN or biometric.", + "The Password class is applicable when a principal authenticates to an authentication authority through the presentation of a password over an unprotected HTTP session.", + "The PasswordProtectedTransport class is applicable when a principal authenticates to an authentication authority through the presentation of a password over a protected session.", + "The PreviousSession class is applicable when a principal had authenticated to an authentication authority at some point in the past using any authentication context supported by that authentication authority", + "The X509 context class indicates that the principal authenticated by means of a digital signature where the key was validated as part of an X.509 Public Key Infrastructure.", + "The PGP context class indicates that the principal authenticated by means of a digital signature where the key was validated as part of a PGP Public Key Infrastructure.", + "The SPKI context class indicates that the principal authenticated by means of a digital signature where the key was validated via an SPKI Infrastructure.", + "This context class indicates that the principal authenticated by means of a digital signature according to the processing rules specified in the XML Digital Signature specification [XMLSig].", + "The Smartcard class is identified when a principal authenticates to an authentication authority using a smartcard.", + "The SmartcardPKI class is applicable when a principal authenticates to an authentication authority through a two-factor authentication mechanism using a smartcard with enclosed private key and a PIN.", + "The Software-PKI class is applicable when a principal uses an X.509 certificate stored in software to authenticate to the authentication authority.", + "This class is used to indicate that the principal authenticated via the provision of a fixed-line telephone number, transported via a telephony protocol such as ADSL.", + "Indicates that the principal is \"roaming\" (perhaps using a phone card) and authenticates via the means of the line number, a user suffix, and a password element.", + "This class is used to indicate that the principal authenticated via the provision of a fixed-line telephone number and a user suffix, transported via a telephony protocol such as ADSL.", + "Indicates that the principal authenticated via the means of the line number, a user suffix, and a password element.", + "The Secure Remote Password class is applicable when the authentication was performed by means of Secure Remote Password as specified in [RFC 2945].", + "This class indicates that the principal authenticated by means of a client certificate, secured with the SSL/TLS transport.", + "The TimeSyncToken class is applicable when a principal authenticates through a time synchronization token." + ], + "type": "string" + }, + "type": "array" + }, "certificate": { "description": "SAML certificate", "type": "string" @@ -1034,6 +1162,17 @@ }, "type": "object" }, + "ServiceAttachment": { + "description": "Container for the VPC-SC networking configurations.", + "id": "ServiceAttachment", + "properties": { + "name": { + "description": "The service attachment name that will be used for sending private traffic to the CCAIP tenant project. Example: \"projects/${TENANT_PROJECT_ID}/regions/${REGION}/serviceAttachments/ingress-default\".", + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -1061,6 +1200,33 @@ }, "type": "object" }, + "TimeOfDay": { + "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", + "id": "TimeOfDay", + "properties": { + "hours": { + "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "URIs": { "description": "Message storing the URIs of the ContactCenter.", "id": "URIs", @@ -1083,6 +1249,53 @@ } }, "type": "object" + }, + "WeeklySchedule": { + "description": "Message representing a weekly schedule.", + "id": "WeeklySchedule", + "properties": { + "days": { + "description": "Required. Days of the week this schedule applies to.", + "items": { + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "type": "array" + }, + "duration": { + "description": "Optional. Duration of the schedule.", + "format": "google-duration", + "type": "string" + }, + "endTime": { + "$ref": "TimeOfDay", + "description": "Optional. Daily end time of the schedule. If `end_time` is before `start_time`, the schedule will be considered as ending on the next day." + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Required. Daily start time of the schedule." + } + }, + "type": "object" } }, "servicePath": "", diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go index edee4bcf757..3ad45490cc1 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -227,7 +227,33 @@ func (s *AdminUser) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } -// ContactCenter: Message describing ContactCenter object Next ID: 22 +// Component: Defines a logical CCAIP component that e.g. “EMAIL”, "CRM". +// For more information see go/ccaip-private-path-v2. Each logical component is +// associated with a list of service attachments. +type Component struct { + // Name: Name of the component. + Name string `json:"name,omitempty"` + // ServiceAttachments: Associated service attachments. + ServiceAttachments []*ServiceAttachment `json:"serviceAttachments,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Component) MarshalJSON() ([]byte, error) { + type NoMethod Component + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// ContactCenter: Message describing ContactCenter object Next ID: 23 type ContactCenter struct { // AdminUser: Optional. Info about the first admin user, such as given name and // family name. @@ -237,6 +263,8 @@ type ContactCenter struct { CcaipManagedUsers bool `json:"ccaipManagedUsers,omitempty"` // CreateTime: Output only. [Output only] Create time stamp CreateTime string `json:"createTime,omitempty"` + // Critical: Optional. Critical release channel. + Critical *Critical `json:"critical,omitempty"` // CustomerDomainPrefix: Required. Immutable. At least 2 and max 16 char long, // must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). CustomerDomainPrefix string `json:"customerDomainPrefix,omitempty"` @@ -256,6 +284,8 @@ type ContactCenter struct { Name string `json:"name,omitempty"` // Normal: Optional. Normal release channel. Normal *Normal `json:"normal,omitempty"` + // PrivateAccess: Optional. VPC-SC related networking configuration. + PrivateAccess *PrivateAccess `json:"privateAccess,omitempty"` // PrivateComponents: Output only. A list of UJET components that should be // privately accessed. This field is set by reading settings from the data // plane. For more information about the format of the component please refer @@ -277,6 +307,15 @@ type ContactCenter struct { // "STATE_TERMINATING_FAILED" - State TERMINATING_FAILED // "STATE_TERMINATED" - State TERMINATED // "STATE_IN_GRACE_PERIOD" - State IN_GRACE_PERIOD + // "STATE_FAILING_OVER" - State in STATE_FAILING_OVER. This State must ONLY + // be used by Multiregional Instances when a failover was triggered. Customers + // are not able to update instances in this state. + // "STATE_DEGRADED" - State DEGRADED. This State must ONLY be used by + // Multiregional Instances after a failover was executed successfully. + // Customers are not able to update instances in this state. + // "STATE_REPAIRING" - State REPAIRING. This State must ONLY be used by + // Multiregional Instances after a fallback was triggered. Customers are not + // able to update instancs in this state. State string `json:"state,omitempty"` // UpdateTime: Output only. [Output only] Update time stamp UpdateTime string `json:"updateTime,omitempty"` @@ -336,7 +375,32 @@ func (s *ContactCenterQuota) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// Early: First Channel to receive the updates. Meant to dev/test instances +// Critical: Instances in this Channel will receive updates after all instances +// in `Critical` were updated + 2 days. They also will only be updated outside +// of their peak hours. +type Critical struct { + // PeakHours: Required. Hours during which the instance should not be updated. + PeakHours []*WeeklySchedule `json:"peakHours,omitempty"` + // ForceSendFields is a list of field names (e.g. "PeakHours") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PeakHours") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Critical) MarshalJSON() ([]byte, error) { + type NoMethod Critical + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// Early: LINT.IfChange First Channel to receive the updates. Meant to dev/test +// instances type Early struct { } @@ -643,6 +707,33 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// PrivateAccess: Defines ingress and egress private traffic settings for CCAIP +// instances. +type PrivateAccess struct { + // EgressSettings: List of egress components that should not be accessed via + // the Internet. For more information see go/ccaip-private-path-v2. + EgressSettings []*Component `json:"egressSettings,omitempty"` + // IngressSettings: List of ingress components that should not be accessed via + // the Internet. For more information see go/ccaip-private-path-v2. + IngressSettings []*Component `json:"ingressSettings,omitempty"` + // ForceSendFields is a list of field names (e.g. "EgressSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EgressSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *PrivateAccess) MarshalJSON() ([]byte, error) { + type NoMethod PrivateAccess + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // Quota: Quota details. type Quota struct { // ContactCenterCountLimit: Reflects the count limit of contact centers on a @@ -690,6 +781,94 @@ func (s *Quota) MarshalJSON() ([]byte, error) { // SAMLParams: Message storing SAML params to enable Google as IDP. type SAMLParams struct { + // AuthenticationContexts: Additional contexts used for authentication. + // + // Possible values: + // "AUTHENTICATION_CONTEXT_UNSPECIFIED" - The Unspecified class indicates + // that the authentication was performed by unspecified means. + // "INTERNET_PROTOCOL" - The Internet Protocol class is applicable when a + // principal is authenticated through the use of a provided IP address. + // "INTERNET_PROTOCOL_PASSWORD" - The Internet Protocol Password class is + // applicable when a principal is authenticated through the use of a provided + // IP address, in addition to a username/password. + // "KERBEROS" - This class is applicable when the principal has authenticated + // using a password to a local authentication authority, in order to acquire a + // Kerberos ticket. That Kerberos ticket is then used for subsequent network + // authentication. + // "MOBILE_ONE_FACTOR_UNREGISTERED" - Reflects no mobile customer + // registration procedures and an authentication of the mobile device without + // requiring explicit end-user interaction. This context class authenticates + // only the device and never the user; it is useful when services other than + // the mobile operator want to add a secure device authentication to their + // authentication process. + // "MOBILE_TWO_FACTOR_UNREGISTERED" - Reflects no mobile customer + // registration procedures and a two-factor based authentication, such as + // secure device and user PIN. This context class is useful when a service + // other than the mobile operator wants to link their customer ID to a mobile + // supplied two-factor authentication service by capturing mobile phone data at + // enrollment. + // "MOBILE_ONE_FACTOR_CONTRACT" - Reflects mobile contract customer + // registration procedures and a single factor authentication. For example, a + // digital signing device with tamper resistant memory for key storage, such as + // the mobile MSISDN, but no required PIN or biometric for real-time user + // authentication. + // "MOBILE_TWO_FACTOR_CONTRACT" - Reflects mobile contract customer + // registration procedures and a two-factor based authentication. For example, + // a digital signing device with tamper resistant memory for key storage, such + // as a GSM SIM, that requires explicit proof of user identity and intent, such + // as a PIN or biometric. + // "PASSWORD" - The Password class is applicable when a principal + // authenticates to an authentication authority through the presentation of a + // password over an unprotected HTTP session. + // "PASSWORD_PROTECTED_TRANSPORT" - The PasswordProtectedTransport class is + // applicable when a principal authenticates to an authentication authority + // through the presentation of a password over a protected session. + // "PREVIOUS_SESSION" - The PreviousSession class is applicable when a + // principal had authenticated to an authentication authority at some point in + // the past using any authentication context supported by that authentication + // authority + // "PUBLIC_KEY_X509" - The X509 context class indicates that the principal + // authenticated by means of a digital signature where the key was validated as + // part of an X.509 Public Key Infrastructure. + // "PUBLIC_KEY_PGP" - The PGP context class indicates that the principal + // authenticated by means of a digital signature where the key was validated as + // part of a PGP Public Key Infrastructure. + // "PUBLIC_KEY_SPKI" - The SPKI context class indicates that the principal + // authenticated by means of a digital signature where the key was validated + // via an SPKI Infrastructure. + // "PUBLIC_KEY_XML_DIGITAL_SIGNATURE" - This context class indicates that the + // principal authenticated by means of a digital signature according to the + // processing rules specified in the XML Digital Signature specification + // [XMLSig]. + // "SMARTCARD" - The Smartcard class is identified when a principal + // authenticates to an authentication authority using a smartcard. + // "SMARTCARD_PKI" - The SmartcardPKI class is applicable when a principal + // authenticates to an authentication authority through a two-factor + // authentication mechanism using a smartcard with enclosed private key and a + // PIN. + // "SOFTWARE_PKI" - The Software-PKI class is applicable when a principal + // uses an X.509 certificate stored in software to authenticate to the + // authentication authority. + // "TELEPHONY" - This class is used to indicate that the principal + // authenticated via the provision of a fixed-line telephone number, + // transported via a telephony protocol such as ADSL. + // "TELEPHONY_NOMADIC" - Indicates that the principal is "roaming" (perhaps + // using a phone card) and authenticates via the means of the line number, a + // user suffix, and a password element. + // "TELEPHONY_PERSONALIZED" - This class is used to indicate that the + // principal authenticated via the provision of a fixed-line telephone number + // and a user suffix, transported via a telephony protocol such as ADSL. + // "TELEPHONY_AUTHENTICATED" - Indicates that the principal authenticated via + // the means of the line number, a user suffix, and a password element. + // "SECURE_REMOTE_PASSWORD" - The Secure Remote Password class is applicable + // when the authentication was performed by means of Secure Remote Password as + // specified in [RFC 2945]. + // "SSL_TLS_CERTIFICATE_BASED" - This class indicates that the principal + // authenticated by means of a client certificate, secured with the SSL/TLS + // transport. + // "TIME_SYNC_TOKEN" - The TimeSyncToken class is applicable when a principal + // authenticates through a time synchronization token. + AuthenticationContexts []string `json:"authenticationContexts,omitempty"` // Certificate: SAML certificate Certificate string `json:"certificate,omitempty"` // EmailMapping: IdP field that maps to the user’s email address @@ -700,15 +879,15 @@ type SAMLParams struct { SsoUri string `json:"ssoUri,omitempty"` // UserEmail: Email address of the first admin users. UserEmail string `json:"userEmail,omitempty"` - // ForceSendFields is a list of field names (e.g. "Certificate") to + // ForceSendFields is a list of field names (e.g. "AuthenticationContexts") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Certificate") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AuthenticationContexts") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -718,6 +897,31 @@ func (s *SAMLParams) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ServiceAttachment: Container for the VPC-SC networking configurations. +type ServiceAttachment struct { + // Name: The service attachment name that will be used for sending private + // traffic to the CCAIP tenant project. Example: + // "projects/${TENANT_PROJECT_ID}/regions/${REGION}/serviceAttachments/ingress-d + // efault". + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ServiceAttachment) MarshalJSON() ([]byte, error) { + type NoMethod ServiceAttachment + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is suitable for // different programming environments, including REST APIs and RPC APIs. It is // used by gRPC (https://github.com/grpc). Each `Status` message contains three @@ -752,6 +956,39 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// TimeOfDay: Represents a time of day. The date and time zone are either not +// significant or are specified elsewhere. An API may choose to allow leap +// seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may + // choose to allow the value "24:00:00" for scenarios like business closing + // time. + Hours int64 `json:"hours,omitempty"` + // Minutes: Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An + // API may allow the value 60 if it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Hours") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // URIs: Message storing the URIs of the ContactCenter. type URIs struct { // ChatBotUri: Chat Bot Uri of the ContactCenter @@ -781,6 +1018,45 @@ func (s *URIs) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// WeeklySchedule: Message representing a weekly schedule. +type WeeklySchedule struct { + // Days: Required. Days of the week this schedule applies to. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + Days []string `json:"days,omitempty"` + // Duration: Optional. Duration of the schedule. + Duration string `json:"duration,omitempty"` + // EndTime: Optional. Daily end time of the schedule. If `end_time` is before + // `start_time`, the schedule will be considered as ending on the next day. + EndTime *TimeOfDay `json:"endTime,omitempty"` + // StartTime: Required. Daily start time of the schedule. + StartTime *TimeOfDay `json:"startTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "Days") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Days") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *WeeklySchedule) MarshalJSON() ([]byte, error) { + type NoMethod WeeklySchedule + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + type ProjectsLocationsGetCall struct { s *Service name string diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 2e9337afa4e..137445a2ada 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20240422", + "revision": "20240510", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -5447,7 +5447,9 @@ "POD", "DAEMONSET", "DEPLOYMENT", - "STATEFULSET" + "STATEFULSET", + "CADVISOR", + "KUBELET" ], "enumDeprecated": [ false, @@ -5461,6 +5463,8 @@ false, false, false, + false, + false, false ], "enumDescriptions": [ @@ -5475,7 +5479,9 @@ "Pod", "DaemonSet", "Deployment", - "Statefulset" + "Statefulset", + "CADVISOR", + "KUBELET" ], "type": "string" }, diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 8a187f11775..9f7f29759e1 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -4018,6 +4018,8 @@ type MonitoringComponentConfig struct { // "DAEMONSET" - DaemonSet // "DEPLOYMENT" - Deployment // "STATEFULSET" - Statefulset + // "CADVISOR" - CADVISOR + // "KUBELET" - KUBELET EnableComponents []string `json:"enableComponents,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableComponents") to // unconditionally include in API requests. By default, fields with empty or diff --git a/developerconnect/v1/developerconnect-api.json b/developerconnect/v1/developerconnect-api.json index 01db6c41a5d..7e980bfc972 100644 --- a/developerconnect/v1/developerconnect-api.json +++ b/developerconnect/v1/developerconnect-api.json @@ -442,90 +442,6 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "processGitHubEnterpriseWebhook": { - "description": "ProcessGitHubEnterpriseWebhook is called by the external GitHub Enterprise instances for notifying events.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections:processGitHubEnterpriseWebhook", - "httpMethod": "POST", - "id": "developerconnect.projects.locations.connections.processGitHubEnterpriseWebhook", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. Project and location where the webhook will be received. Format: `projects/*/locations/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/connections:processGitHubEnterpriseWebhook", - "request": { - "$ref": "ProcessGitHubEnterpriseWebhookRequest" - }, - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "processGitLabEnterpriseWebhook": { - "description": "ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise instances for notifying events.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections:processGitLabEnterpriseWebhook", - "httpMethod": "POST", - "id": "developerconnect.projects.locations.connections.processGitLabEnterpriseWebhook", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. Project and location where the webhook will be received. Format: `projects/*/locations/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/connections:processGitLabEnterpriseWebhook", - "request": { - "$ref": "ProcessGitLabEnterpriseWebhookRequest" - }, - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "processGitLabWebhook": { - "description": "ProcessGitLabWebhook is called by the GitLab.com for notifying events.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections:processGitLabWebhook", - "httpMethod": "POST", - "id": "developerconnect.projects.locations.connections.processGitLabWebhook", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. Project and location where the webhook will be received. Format: `projects/*/locations/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/connections:processGitLabWebhook", - "request": { - "$ref": "ProcessGitLabWebhookRequest" - }, - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } }, "resources": { @@ -924,7 +840,7 @@ } } }, - "revision": "20240515", + "revision": "20240523", "rootUrl": "https://developerconnect.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -1207,33 +1123,6 @@ }, "type": "object" }, - "HttpBody": { - "description": "Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.", - "id": "HttpBody", - "properties": { - "contentType": { - "description": "The HTTP Content-Type header value specifying the content type of the body.", - "type": "string" - }, - "data": { - "description": "The HTTP request/response body as raw binary.", - "format": "byte", - "type": "string" - }, - "extensions": { - "description": "Application specific response metadata. Must be set in the first response for streaming APIs.", - "items": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "type": "object" - }, - "type": "array" - } - }, - "type": "object" - }, "Installation": { "description": "Represents an installation of the GitHub App.", "id": "Installation", @@ -1516,51 +1405,6 @@ }, "type": "object" }, - "ProcessGitHubEnterpriseWebhookRequest": { - "description": "RPC request object accepted by the ProcessGitHubEnterpriseWebhook RPC method.", - "id": "ProcessGitHubEnterpriseWebhookRequest", - "properties": { - "body": { - "$ref": "HttpBody", - "description": "Required. HTTP request body." - }, - "webhookKey": { - "description": "Required. Arbitrary additional key to find the matching repository for a webhook event if needed.", - "type": "string" - } - }, - "type": "object" - }, - "ProcessGitLabEnterpriseWebhookRequest": { - "description": "RPC request object accepted by the ProcessGitLabEnterpriseWebhook RPC method.", - "id": "ProcessGitLabEnterpriseWebhookRequest", - "properties": { - "body": { - "$ref": "HttpBody", - "description": "Required. HTTP request body." - }, - "webhookKey": { - "description": "Required. Arbitrary additional key to find the matching repository for a webhook event if needed.", - "type": "string" - } - }, - "type": "object" - }, - "ProcessGitLabWebhookRequest": { - "description": "RPC request object accepted by the ProcessGitLabWebhook RPC method.", - "id": "ProcessGitLabWebhookRequest", - "properties": { - "body": { - "$ref": "HttpBody", - "description": "Required. HTTP request body." - }, - "webhookKey": { - "description": "Required. Arbitrary additional key to find the matching repository for a webhook event if needed.", - "type": "string" - } - }, - "type": "object" - }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", diff --git a/developerconnect/v1/developerconnect-gen.go b/developerconnect/v1/developerconnect-gen.go index 75ab3e5a57d..b7fb7d32667 100644 --- a/developerconnect/v1/developerconnect-gen.go +++ b/developerconnect/v1/developerconnect-gen.go @@ -522,50 +522,6 @@ func (s *GitRepositoryLink) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// HttpBody: Message that represents an arbitrary HTTP body. It should only be -// used for payload formats that can't be represented as JSON, such as raw -// binary or an HTML page. This message can be used both in streaming and -// non-streaming API methods in the request as well as the response. It can be -// used as a top-level request field, which is convenient if one wants to -// extract parameters from either the URL or HTTP template into the request -// fields and also want access to the raw HTTP body. Example: message -// GetResourceRequest { // A unique request id. string request_id = 1; // The -// raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } -// service ResourceService { rpc GetResource(GetResourceRequest) returns -// (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns -// (google.protobuf.Empty); } Example with streaming methods: service -// CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream -// google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns -// (stream google.api.HttpBody); } Use of this type only changes how the -// request and response bodies are handled, all other features will continue to -// work unchanged. -type HttpBody struct { - // ContentType: The HTTP Content-Type header value specifying the content type - // of the body. - ContentType string `json:"contentType,omitempty"` - // Data: The HTTP request/response body as raw binary. - Data string `json:"data,omitempty"` - // Extensions: Application specific response metadata. Must be set in the first - // response for streaming APIs. - Extensions []googleapi.RawMessage `json:"extensions,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentType") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ContentType") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *HttpBody) MarshalJSON() ([]byte, error) { - type NoMethod HttpBody - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // Installation: Represents an installation of the GitHub App. type Installation struct { // Id: ID of the installation in GitHub. @@ -923,84 +879,6 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// ProcessGitHubEnterpriseWebhookRequest: RPC request object accepted by the -// ProcessGitHubEnterpriseWebhook RPC method. -type ProcessGitHubEnterpriseWebhookRequest struct { - // Body: Required. HTTP request body. - Body *HttpBody `json:"body,omitempty"` - // WebhookKey: Required. Arbitrary additional key to find the matching - // repository for a webhook event if needed. - WebhookKey string `json:"webhookKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "Body") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Body") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *ProcessGitHubEnterpriseWebhookRequest) MarshalJSON() ([]byte, error) { - type NoMethod ProcessGitHubEnterpriseWebhookRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -// ProcessGitLabEnterpriseWebhookRequest: RPC request object accepted by the -// ProcessGitLabEnterpriseWebhook RPC method. -type ProcessGitLabEnterpriseWebhookRequest struct { - // Body: Required. HTTP request body. - Body *HttpBody `json:"body,omitempty"` - // WebhookKey: Required. Arbitrary additional key to find the matching - // repository for a webhook event if needed. - WebhookKey string `json:"webhookKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "Body") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Body") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *ProcessGitLabEnterpriseWebhookRequest) MarshalJSON() ([]byte, error) { - type NoMethod ProcessGitLabEnterpriseWebhookRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -// ProcessGitLabWebhookRequest: RPC request object accepted by the -// ProcessGitLabWebhook RPC method. -type ProcessGitLabWebhookRequest struct { - // Body: Required. HTTP request body. - Body *HttpBody `json:"body,omitempty"` - // WebhookKey: Required. Arbitrary additional key to find the matching - // repository for a webhook event if needed. - WebhookKey string `json:"webhookKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "Body") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Body") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *ProcessGitLabWebhookRequest) MarshalJSON() ([]byte, error) { - type NoMethod ProcessGitLabWebhookRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // Status: The `Status` type defines a logical error model that is suitable for // different programming environments, including REST APIs and RPC APIs. It is // used by gRPC (https://github.com/grpc). Each `Status` message contains three @@ -2219,315 +2097,6 @@ func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall struct { - s *Service - parent string - processgithubenterprisewebhookrequest *ProcessGitHubEnterpriseWebhookRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// ProcessGitHubEnterpriseWebhook: ProcessGitHubEnterpriseWebhook is called by -// the external GitHub Enterprise instances for notifying events. -// -// - parent: Project and location where the webhook will be received. Format: -// `projects/*/locations/*`. -func (r *ProjectsLocationsConnectionsService) ProcessGitHubEnterpriseWebhook(parent string, processgithubenterprisewebhookrequest *ProcessGitHubEnterpriseWebhookRequest) *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall { - c := &ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.processgithubenterprisewebhookrequest = processgithubenterprisewebhookrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Context(ctx context.Context) *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.processgithubenterprisewebhookrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connections:processGitHubEnterpriseWebhook") - 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{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "developerconnect.projects.locations.connections.processGitHubEnterpriseWebhook" call. -// Any non-2xx status code is an error. Response headers are in either -// *Empty.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 *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ - 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 -} - -type ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall struct { - s *Service - parent string - processgitlabenterprisewebhookrequest *ProcessGitLabEnterpriseWebhookRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// ProcessGitLabEnterpriseWebhook: ProcessGitLabEnterpriseWebhook is called by -// the external GitLab Enterprise instances for notifying events. -// -// - parent: Project and location where the webhook will be received. Format: -// `projects/*/locations/*`. -func (r *ProjectsLocationsConnectionsService) ProcessGitLabEnterpriseWebhook(parent string, processgitlabenterprisewebhookrequest *ProcessGitLabEnterpriseWebhookRequest) *ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall { - c := &ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.processgitlabenterprisewebhookrequest = processgitlabenterprisewebhookrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall) Context(ctx context.Context) *ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.processgitlabenterprisewebhookrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connections:processGitLabEnterpriseWebhook") - 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{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "developerconnect.projects.locations.connections.processGitLabEnterpriseWebhook" call. -// Any non-2xx status code is an error. Response headers are in either -// *Empty.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 *ProjectsLocationsConnectionsProcessGitLabEnterpriseWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ - 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 -} - -type ProjectsLocationsConnectionsProcessGitLabWebhookCall struct { - s *Service - parent string - processgitlabwebhookrequest *ProcessGitLabWebhookRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// ProcessGitLabWebhook: ProcessGitLabWebhook is called by the GitLab.com for -// notifying events. -// -// - parent: Project and location where the webhook will be received. Format: -// `projects/*/locations/*`. -func (r *ProjectsLocationsConnectionsService) ProcessGitLabWebhook(parent string, processgitlabwebhookrequest *ProcessGitLabWebhookRequest) *ProjectsLocationsConnectionsProcessGitLabWebhookCall { - c := &ProjectsLocationsConnectionsProcessGitLabWebhookCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.processgitlabwebhookrequest = processgitlabwebhookrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsConnectionsProcessGitLabWebhookCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsProcessGitLabWebhookCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsProcessGitLabWebhookCall) Context(ctx context.Context) *ProjectsLocationsConnectionsProcessGitLabWebhookCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsConnectionsProcessGitLabWebhookCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsConnectionsProcessGitLabWebhookCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.processgitlabwebhookrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connections:processGitLabWebhook") - 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{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "developerconnect.projects.locations.connections.processGitLabWebhook" call. -// Any non-2xx status code is an error. Response headers are in either -// *Empty.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 *ProjectsLocationsConnectionsProcessGitLabWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ - 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 -} - type ProjectsLocationsConnectionsGitRepositoryLinksCreateCall struct { s *Service parent string diff --git a/drive/v2/drive-api.json b/drive/v2/drive-api.json index 7277a83781a..9a77f2d073c 100644 --- a/drive/v2/drive-api.json +++ b/drive/v2/drive-api.json @@ -14,6 +14,9 @@ "https://www.googleapis.com/auth/drive.file": { "description": "See, edit, create, and delete only the specific Google Drive files you use with this app" }, + "https://www.googleapis.com/auth/drive.meet.readonly": { + "description": "See and download your Google Drive files that were created or edited by Google Meet." + }, "https://www.googleapis.com/auth/drive.metadata": { "description": "View and manage metadata of files in your Google Drive" }, @@ -290,6 +293,7 @@ "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -337,6 +341,7 @@ "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -450,6 +455,7 @@ "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -568,6 +574,7 @@ "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -596,6 +603,7 @@ "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -673,6 +681,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -775,6 +784,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -850,6 +860,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ] }, @@ -929,6 +940,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ] }, @@ -1427,6 +1439,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ], "supportsMediaDownload": true, @@ -1550,6 +1563,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -1806,6 +1820,7 @@ "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -1849,6 +1864,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly" @@ -2436,6 +2452,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -2514,6 +2531,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -2593,6 +2611,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -2700,6 +2719,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -2868,6 +2888,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -3084,6 +3105,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -3144,6 +3166,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -3319,6 +3342,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ] }, @@ -3407,6 +3431,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ] }, @@ -3559,6 +3584,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -3603,6 +3629,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -3842,7 +3869,7 @@ } } }, - "revision": "20240110", + "revision": "20240521", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index d685239379f..1b91d2af2ff 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -113,6 +113,10 @@ const ( // with this app DriveFileScope = "https://www.googleapis.com/auth/drive.file" + // See and download your Google Drive files that were created or edited by + // Google Meet. + DriveMeetReadonlyScope = "https://www.googleapis.com/auth/drive.meet.readonly" + // View and manage metadata of files in your Google Drive DriveMetadataScope = "https://www.googleapis.com/auth/drive.metadata" @@ -136,6 +140,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index 3c9fd349c30..1113679906c 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -14,6 +14,9 @@ "https://www.googleapis.com/auth/drive.file": { "description": "See, edit, create, and delete only the specific Google Drive files you use with this app" }, + "https://www.googleapis.com/auth/drive.meet.readonly": { + "description": "See and download your Google Drive files that were created or edited by Google Meet." + }, "https://www.googleapis.com/auth/drive.metadata": { "description": "View and manage metadata of files in your Google Drive" }, @@ -261,6 +264,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -371,6 +375,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -486,6 +491,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -513,6 +519,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -616,6 +623,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ] }, @@ -667,6 +675,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ] }, @@ -1188,6 +1197,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ], "supportsMediaDownload": true, @@ -1285,6 +1295,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -1406,6 +1417,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -1449,6 +1461,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly" @@ -1645,6 +1658,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -1829,6 +1843,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -1895,6 +1910,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -2085,6 +2101,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ] }, @@ -2138,6 +2155,7 @@ "scopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.readonly" ] }, @@ -2254,6 +2272,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -2300,6 +2319,7 @@ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly", @@ -2503,7 +2523,7 @@ } } }, - "revision": "20240509", + "revision": "20240521", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 294d7196543..ebc83188f0d 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -113,6 +113,10 @@ const ( // with this app DriveFileScope = "https://www.googleapis.com/auth/drive.file" + // See and download your Google Drive files that were created or edited by + // Google Meet. + DriveMeetReadonlyScope = "https://www.googleapis.com/auth/drive.meet.readonly" + // View and manage metadata of files in your Google Drive DriveMetadataScope = "https://www.googleapis.com/auth/drive.metadata" @@ -136,6 +140,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.photos.readonly",