diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 802250b068d..62bffa11d26 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -16094,7 +16094,7 @@ } } }, - "revision": "20231023", + "revision": "20231024", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -20393,7 +20393,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint": { - "description": "The dedicated serving endpoint for this FeatureOnlineStore.", + "description": "The dedicated serving endpoint for this FeatureOnlineStore. Only need to set when you choose Optimized storage type or enable EmbeddingManagement.", "id": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint", "properties": { "publicEndpointDomainName": { @@ -21270,17 +21270,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1GenieSource": { - "description": "Contains information about the source of the models generated from Generative AI Studio.", - "id": "GoogleCloudAiplatformV1beta1GenieSource", - "properties": { - "baseModelUri": { - "description": "Required. The public base model URI.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1HyperparameterTuningJob": { "description": "Represents a HyperparameterTuningJob. A HyperparameterTuningJob has a Study specification and multiple CustomJobs with identical CustomJob specification.", "id": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob", @@ -23395,10 +23384,6 @@ "$ref": "GoogleCloudAiplatformV1beta1ExplanationSpec", "description": "The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob." }, - "generatedModelSource": { - "$ref": "GoogleCloudAiplatformV1beta1ModelGeneratedModelSource", - "description": "Optional. Used to specify the source of the Model Garden model or Genie models. Only present for models created or tuned from Model Garden and Genie." - }, "labels": { "additionalProperties": { "type": "string" @@ -24077,32 +24062,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1ModelGardenSource": { - "description": "Contains information about the source of the models generated from Model Garden.", - "id": "GoogleCloudAiplatformV1beta1ModelGardenSource", - "properties": { - "publicModelName": { - "description": "Required. The model garden source model resource name.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudAiplatformV1beta1ModelGeneratedModelSource": { - "description": "Used to specify the source of the Model Garden model or Genie models. Only present for models created or tuned from Model Garden and Genie.", - "id": "GoogleCloudAiplatformV1beta1ModelGeneratedModelSource", - "properties": { - "genieSource": { - "$ref": "GoogleCloudAiplatformV1beta1GenieSource", - "description": "Information about the base model of Genie models." - }, - "modelGardenSource": { - "$ref": "GoogleCloudAiplatformV1beta1ModelGardenSource", - "description": "Source information of Model Garden models." - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig": { "id": "GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig", "properties": { diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index c79bfb18e09..4bd0212e9bb 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -9582,7 +9582,9 @@ func (s *GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling) Mars } // GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint -// : The dedicated serving endpoint for this FeatureOnlineStore. +// : The dedicated serving endpoint for this FeatureOnlineStore. Only +// need to set when you choose Optimized storage type or enable +// EmbeddingManagement. type GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint struct { // PublicEndpointDomainName: Output only. This field will be populated // with the domain name to use for this FeatureOnlineStore @@ -11402,35 +11404,6 @@ func (s *GoogleCloudAiplatformV1beta1GenericOperationMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1GenieSource: Contains information about -// the source of the models generated from Generative AI Studio. -type GoogleCloudAiplatformV1beta1GenieSource struct { - // BaseModelUri: Required. The public base model URI. - BaseModelUri string `json:"baseModelUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BaseModelUri") 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. "BaseModelUri") 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 *GoogleCloudAiplatformV1beta1GenieSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1GenieSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1beta1HyperparameterTuningJob: Represents a // HyperparameterTuningJob. A HyperparameterTuningJob has a Study // specification and multiple CustomJobs with identical CustomJob @@ -15414,11 +15387,6 @@ type GoogleCloudAiplatformV1beta1Model struct { // setting explanation_spec of BatchPredictionJob. ExplanationSpec *GoogleCloudAiplatformV1beta1ExplanationSpec `json:"explanationSpec,omitempty"` - // GeneratedModelSource: Optional. Used to specify the source of the - // Model Garden model or Genie models. Only present for models created - // or tuned from Model Garden and Genie. - GeneratedModelSource *GoogleCloudAiplatformV1beta1ModelGeneratedModelSource `json:"generatedModelSource,omitempty"` - // Labels: The labels with user-defined metadata to organize your // Models. Label keys and values can be no longer than 64 characters // (Unicode codepoints), can only contain lowercase letters, numeric @@ -16658,70 +16626,6 @@ func (s *GoogleCloudAiplatformV1beta1ModelExportFormat) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1ModelGardenSource: Contains information -// about the source of the models generated from Model Garden. -type GoogleCloudAiplatformV1beta1ModelGardenSource struct { - // PublicModelName: Required. The model garden source model resource - // name. - PublicModelName string `json:"publicModelName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PublicModelName") 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. "PublicModelName") 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 *GoogleCloudAiplatformV1beta1ModelGardenSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1ModelGardenSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1beta1ModelGeneratedModelSource: Used to -// specify the source of the Model Garden model or Genie models. Only -// present for models created or tuned from Model Garden and Genie. -type GoogleCloudAiplatformV1beta1ModelGeneratedModelSource struct { - // GenieSource: Information about the base model of Genie models. - GenieSource *GoogleCloudAiplatformV1beta1GenieSource `json:"genieSource,omitempty"` - - // ModelGardenSource: Source information of Model Garden models. - ModelGardenSource *GoogleCloudAiplatformV1beta1ModelGardenSource `json:"modelGardenSource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GenieSource") 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. "GenieSource") 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 *GoogleCloudAiplatformV1beta1ModelGeneratedModelSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1ModelGeneratedModelSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig struct { // EmailAlertConfig: Email alert config. EmailAlertConfig *GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfigEmailAlertConfig `json:"emailAlertConfig,omitempty"` diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 9978d12ebff..e54318ce302 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -4047,7 +4047,7 @@ } } }, - "revision": "20231030", + "revision": "20231031", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { @@ -7761,9 +7761,29 @@ "CAN_VIEW_NON_FINANCIAL_DATA_GLOBAL", "CAN_VIEW_APP_QUALITY_GLOBAL" ], + "enumDeprecated": [ + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Unknown or unspecified permission.", - "View app information and download bulk reports (read-only).", + "View app information and download bulk reports (read-only). Deprecated: Check CAN_VIEW_NON_FINANCIAL_DATA_GLOBAL.", "View financial data, orders, and cancellation survey responses.", "Admin (all permissions).", "Edit Play Games Services projects.", diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index a058737386b..a64d0a3db15 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -6928,7 +6928,7 @@ type User struct { // "DEVELOPER_LEVEL_PERMISSION_UNSPECIFIED" - Unknown or unspecified // permission. // "CAN_SEE_ALL_APPS" - View app information and download bulk reports - // (read-only). + // (read-only). Deprecated: Check CAN_VIEW_NON_FINANCIAL_DATA_GLOBAL. // "CAN_VIEW_FINANCIAL_DATA_GLOBAL" - View financial data, orders, and // cancellation survey responses. // "CAN_MANAGE_PERMISSIONS_GLOBAL" - Admin (all permissions). diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index cf4e70af0c1..f6eee23a77e 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -43542,7 +43542,7 @@ } } }, - "revision": "20231017", + "revision": "20231024", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -58110,11 +58110,6 @@ "type": "array" }, "baseInstanceName": { - "annotations": { - "required": [ - "compute.instanceGroupManagers.insert" - ] - }, "description": "The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.", "pattern": "[a-z][-a-z0-9]{0,57}", "type": "string" @@ -68083,6 +68078,10 @@ "description": "Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used.", "format": "int32", "type": "integer" + }, + "zone": { + "description": "The name of the zone where the instance hosting the network endpoint is located (valid only for regional GCE_VM_IP_PORT NEGs). It should comply with RFC1035. The zone must belong to the region of the Network Endpoint Group.", + "type": "string" } }, "type": "object" @@ -79883,6 +79882,11 @@ "description": "The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/", "type": "string" }, + "nextHopInterRegionCost": { + "description": "[Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.", + "format": "uint32", + "type": "integer" + }, "nextHopInterconnectAttachment": { "description": "[Output Only] The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for the dynamic routes generated by Cloud Router with a linked interconnectAttachment.", "type": "string" @@ -79891,10 +79895,29 @@ "description": "The network IP address of an instance that should handle matching packets. Both IPv6 address and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address.", "type": "string" }, + "nextHopMed": { + "description": "[Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.", + "format": "uint32", + "type": "integer" + }, "nextHopNetwork": { "description": "The URL of the local network if it should handle matching packets.", "type": "string" }, + "nextHopOrigin": { + "description": "[Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.", + "enum": [ + "EGP", + "IGP", + "INCOMPLETE" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, "nextHopPeering": { "description": "[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.", "type": "string" diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index a8e43197a62..51bb70488e7 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -36697,6 +36697,12 @@ type NetworkEndpoint struct { // defaultPort for the network endpoint group will be used. Port int64 `json:"port,omitempty"` + // Zone: The name of the zone where the instance hosting the network + // endpoint is located (valid only for regional GCE_VM_IP_PORT NEGs). It + // should comply with RFC1035. The zone must belong to the region of the + // Network Endpoint Group. + Zone string `json:"zone,omitempty"` + // ForceSendFields is a list of field names (e.g. "Annotations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -52909,6 +52915,11 @@ type Route struct { // https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ NextHopInstance string `json:"nextHopInstance,omitempty"` + // NextHopInterRegionCost: [Output only] Internal fixed region-to-region + // cost that Google Cloud calculates based on factors such as network + // performance, distance, and available bandwidth between regions. + NextHopInterRegionCost int64 `json:"nextHopInterRegionCost,omitempty"` + // NextHopInterconnectAttachment: [Output Only] The URL to an // InterconnectAttachment which is the next hop for the route. This // field will only be populated for the dynamic routes generated by @@ -52924,10 +52935,25 @@ type Route struct { // 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. NextHopIp string `json:"nextHopIp,omitempty"` + // NextHopMed: [Output Only] Multi-Exit Discriminator, a BGP route + // metric that indicates the desirability of a particular route in a + // network. + NextHopMed int64 `json:"nextHopMed,omitempty"` + // NextHopNetwork: The URL of the local network if it should handle // matching packets. NextHopNetwork string `json:"nextHopNetwork,omitempty"` + // NextHopOrigin: [Output Only] Indicates the origin of the route. Can + // be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), + // or INCOMPLETE. + // + // Possible values: + // "EGP" + // "IGP" + // "INCOMPLETE" + NextHopOrigin string `json:"nextHopOrigin,omitempty"` + // NextHopPeering: [Output Only] The network peering name that should // handle matching packets, which should conform to RFC1035. NextHopPeering string `json:"nextHopPeering,omitempty"` diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 34ea0ecf940..f2e78554d07 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -40215,7 +40215,7 @@ } } }, - "revision": "20231017", + "revision": "20231024", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -53800,11 +53800,6 @@ "type": "array" }, "baseInstanceName": { - "annotations": { - "required": [ - "compute.instanceGroupManagers.insert" - ] - }, "description": "The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.", "pattern": "[a-z][-a-z0-9]{0,57}", "type": "string" diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 1a3d484e212..4913c0f596d 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -35267,7 +35267,7 @@ } } }, - "revision": "20231017", + "revision": "20231024", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -47650,11 +47650,6 @@ "type": "array" }, "baseInstanceName": { - "annotations": { - "required": [ - "compute.instanceGroupManagers.insert" - ] - }, "description": "The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.", "pattern": "[a-z][-a-z0-9]{0,57}", "type": "string" diff --git a/identitytoolkit/v1/identitytoolkit-api.json b/identitytoolkit/v1/identitytoolkit-api.json index d73533f8941..dfcde6a15a7 100644 --- a/identitytoolkit/v1/identitytoolkit-api.json +++ b/identitytoolkit/v1/identitytoolkit-api.json @@ -1239,7 +1239,7 @@ } } }, - "revision": "20230707", + "revision": "20231027", "rootUrl": "https://identitytoolkit.googleapis.com/", "schemas": { "GoogleCloudIdentitytoolkitV1Argon2Parameters": { @@ -1477,7 +1477,7 @@ "type": "string" }, "signinMethods": { - "description": "The list of sign-in methods that the user has previously used. Each element is one of `password`, `emailLink`, or the provider ID of an IdP. Present only when a registered email identifier is set in the request.", + "description": "The list of sign-in methods that the user has previously used. Each element is one of `password`, `emailLink`, or the provider ID of an IdP. Present only when a registered email identifier is set in the request. If [email enumeration protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, this method returns an empty list.", "items": { "type": "string" }, @@ -2557,7 +2557,7 @@ "type": "string" }, "email": { - "description": "The user's new email to be updated in the account's attributes. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production.", + "description": "The user's new email to be updated in the account's attributes. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. If [email enumeration protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, the email cannot be changed by the user without verifying the email first, but it can be changed by an administrator.", "type": "string" }, "emailVerified": { diff --git a/identitytoolkit/v1/identitytoolkit-gen.go b/identitytoolkit/v1/identitytoolkit-gen.go index 48e4afcce2f..cb12d140331 100644 --- a/identitytoolkit/v1/identitytoolkit-gen.go +++ b/identitytoolkit/v1/identitytoolkit-gen.go @@ -565,7 +565,9 @@ type GoogleCloudIdentitytoolkitV1CreateAuthUriResponse struct { // SigninMethods: The list of sign-in methods that the user has // previously used. Each element is one of `password`, `emailLink`, or // the provider ID of an IdP. Present only when a registered email - // identifier is set in the request. + // identifier is set in the request. If email enumeration protection + // (https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) + // is enabled, this method returns an empty list. SigninMethods []string `json:"signinMethods,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -2187,7 +2189,10 @@ type GoogleCloudIdentitytoolkitV1SetAccountInfoRequest struct { // attributes. The length of email should be less than 256 characters // and in the format of `name@domain.tld`. The email should also match // the RFC 822 (https://tools.ietf.org/html/rfc822) addr-spec - // production. + // production. If email enumeration protection + // (https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) + // is enabled, the email cannot be changed by the user without verifying + // the email first, but it can be changed by an administrator. Email string `json:"email,omitempty"` // EmailVerified: Whether the user's email has been verified. Specifying diff --git a/identitytoolkit/v2/identitytoolkit-api.json b/identitytoolkit/v2/identitytoolkit-api.json index 063375985ad..c109a49f3ec 100644 --- a/identitytoolkit/v2/identitytoolkit-api.json +++ b/identitytoolkit/v2/identitytoolkit-api.json @@ -289,32 +289,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getPasskeyConfig": { - "description": "Retrieve a passkey configuration for an Identity Toolkit project.", - "flatPath": "v2/projects/{projectsId}/passkeyConfig", - "httpMethod": "GET", - "id": "identitytoolkit.projects.getPasskeyConfig", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the config, for example: 'projects/my-awesome-project/passkeyConfig'.", - "location": "path", - "pattern": "^projects/[^/]+/passkeyConfig$", - "required": true, - "type": "string" - } - }, - "path": "v2/{+name}", - "response": { - "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/firebase" - ] - }, "updateConfig": { "description": "Update an Identity Toolkit project configuration.", "flatPath": "v2/projects/{projectsId}/config", @@ -349,41 +323,6 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ] - }, - "updatePasskeyConfig": { - "description": "Update a passkey configuration for an Identity Toolkit project.", - "flatPath": "v2/projects/{projectsId}/passkeyConfig", - "httpMethod": "PATCH", - "id": "identitytoolkit.projects.updatePasskeyConfig", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the PasskeyConfig resource.", - "location": "path", - "pattern": "^projects/[^/]+/passkeyConfig$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Optional. The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v2/{+name}", - "request": { - "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - }, - "response": { - "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/firebase" - ] } }, "resources": { @@ -1017,32 +956,6 @@ "https://www.googleapis.com/auth/firebase" ] }, - "getPasskeyConfig": { - "description": "Retrieve a passkey configuration for an Identity Toolkit project.", - "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/passkeyConfig", - "httpMethod": "GET", - "id": "identitytoolkit.projects.tenants.getPasskeyConfig", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the config, for example: 'projects/my-awesome-project/passkeyConfig'.", - "location": "path", - "pattern": "^projects/[^/]+/tenants/[^/]+/passkeyConfig$", - "required": true, - "type": "string" - } - }, - "path": "v2/{+name}", - "response": { - "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/firebase" - ] - }, "list": { "description": "List tenants under the given agent project. Requires read permission on the Agent project.", "flatPath": "v2/projects/{projectsId}/tenants", @@ -1172,41 +1085,6 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ] - }, - "updatePasskeyConfig": { - "description": "Update a passkey configuration for an Identity Toolkit project.", - "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/passkeyConfig", - "httpMethod": "PATCH", - "id": "identitytoolkit.projects.tenants.updatePasskeyConfig", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the PasskeyConfig resource.", - "location": "path", - "pattern": "^projects/[^/]+/tenants/[^/]+/passkeyConfig$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Optional. The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v2/{+name}", - "request": { - "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - }, - "response": { - "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/firebase" - ] } }, "resources": { @@ -1777,7 +1655,7 @@ } } }, - "revision": "20230804", + "revision": "20231027", "rootUrl": "https://identitytoolkit.googleapis.com/", "schemas": { "GoogleCloudIdentitytoolkitAdminV2AllowByDefault": { @@ -2606,28 +2484,6 @@ }, "type": "object" }, - "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig": { - "description": "Configuration for signing in users using passkeys.", - "id": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig", - "properties": { - "expectedOrigins": { - "description": "Required. The website or app origins associated with the customer's sites or apps. Only challenges signed from these origins will be allowed to sign in with passkeys.", - "items": { - "type": "string" - }, - "type": "array" - }, - "name": { - "description": "Required. The name of the PasskeyConfig resource.", - "type": "string" - }, - "rpId": { - "description": "Required. The relying party ID for the purpose of passkeys verifications. This cannot be changed once created.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig": { "description": "The configuration for the password policy on the project.", "id": "GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig", diff --git a/identitytoolkit/v2/identitytoolkit-gen.go b/identitytoolkit/v2/identitytoolkit-gen.go index 7a410d4aac6..2c02b0b0e3f 100644 --- a/identitytoolkit/v2/identitytoolkit-gen.go +++ b/identitytoolkit/v2/identitytoolkit-gen.go @@ -1751,49 +1751,6 @@ func (s *GoogleCloudIdentitytoolkitAdminV2OAuthResponseType) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIdentitytoolkitAdminV2PasskeyConfig: Configuration for -// signing in users using passkeys. -type GoogleCloudIdentitytoolkitAdminV2PasskeyConfig struct { - // ExpectedOrigins: Required. The website or app origins associated with - // the customer's sites or apps. Only challenges signed from these - // origins will be allowed to sign in with passkeys. - ExpectedOrigins []string `json:"expectedOrigins,omitempty"` - - // Name: Required. The name of the PasskeyConfig resource. - Name string `json:"name,omitempty"` - - // RpId: Required. The relying party ID for the purpose of passkeys - // verifications. This cannot be changed once created. - RpId string `json:"rpId,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ExpectedOrigins") 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. "ExpectedOrigins") 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 *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitAdminV2PasskeyConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig: The // configuration for the password policy on the project. type GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig struct { @@ -5368,157 +5325,6 @@ func (c *ProjectsGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudId } -// method id "identitytoolkit.projects.getPasskeyConfig": - -type ProjectsGetPasskeyConfigCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetPasskeyConfig: Retrieve a passkey configuration for an Identity -// Toolkit project. -// -// - name: The resource name of the config, for example: -// 'projects/my-awesome-project/passkeyConfig'. -func (r *ProjectsService) GetPasskeyConfig(name string) *ProjectsGetPasskeyConfigCall { - c := &ProjectsGetPasskeyConfigCall{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 information. -func (c *ProjectsGetPasskeyConfigCall) Fields(s ...googleapi.Field) *ProjectsGetPasskeyConfigCall { - 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 *ProjectsGetPasskeyConfigCall) IfNoneMatch(entityTag string) *ProjectsGetPasskeyConfigCall { - 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 *ProjectsGetPasskeyConfigCall) Context(ctx context.Context) *ProjectsGetPasskeyConfigCall { - 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 *ProjectsGetPasskeyConfigCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsGetPasskeyConfigCall) 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, "v2/{+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.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "identitytoolkit.projects.getPasskeyConfig" call. -// Exactly one of *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig.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 *ProjectsGetPasskeyConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2PasskeyConfig, 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 := &GoogleCloudIdentitytoolkitAdminV2PasskeyConfig{ - 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": "Retrieve a passkey configuration for an Identity Toolkit project.", - // "flatPath": "v2/projects/{projectsId}/passkeyConfig", - // "httpMethod": "GET", - // "id": "identitytoolkit.projects.getPasskeyConfig", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the config, for example: 'projects/my-awesome-project/passkeyConfig'.", - // "location": "path", - // "pattern": "^projects/[^/]+/passkeyConfig$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "response": { - // "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/firebase" - // ] - // } - -} - // method id "identitytoolkit.projects.updateConfig": type ProjectsUpdateConfigCall struct { @@ -5679,41 +5485,41 @@ func (c *ProjectsUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleClou } -// method id "identitytoolkit.projects.updatePasskeyConfig": +// method id "identitytoolkit.projects.defaultSupportedIdpConfigs.create": -type ProjectsUpdatePasskeyConfigCall struct { - s *Service - name string - googlecloudidentitytoolkitadminv2passkeyconfig *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsDefaultSupportedIdpConfigsCreateCall struct { + s *Service + parent string + googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdatePasskeyConfig: Update a passkey configuration for an Identity +// Create: Create a default supported Idp configuration for an Identity // Toolkit project. // -// - name: The name of the PasskeyConfig resource. -func (r *ProjectsService) UpdatePasskeyConfig(name string, googlecloudidentitytoolkitadminv2passkeyconfig *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig) *ProjectsUpdatePasskeyConfigCall { - c := &ProjectsUpdatePasskeyConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudidentitytoolkitadminv2passkeyconfig = googlecloudidentitytoolkitadminv2passkeyconfig +// - parent: The parent resource name where the config to be created, +// for example: "projects/my-awesome-project". +func (r *ProjectsDefaultSupportedIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsDefaultSupportedIdpConfigsCreateCall { + c := &ProjectsDefaultSupportedIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. Empty update mask will result in updating -// nothing. For the `FieldMask` definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask -func (c *ProjectsUpdatePasskeyConfigCall) UpdateMask(updateMask string) *ProjectsUpdatePasskeyConfigCall { - c.urlParams_.Set("updateMask", updateMask) +// IdpId sets the optional parameter "idpId": The id of the Idp to +// create a config for. Call ListDefaultSupportedIdps for list of all +// default supported Idps. +func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) IdpId(idpId string) *ProjectsDefaultSupportedIdpConfigsCreateCall { + c.urlParams_.Set("idpId", idpId) 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 *ProjectsUpdatePasskeyConfigCall) Fields(s ...googleapi.Field) *ProjectsUpdatePasskeyConfigCall { +func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5721,21 +5527,21 @@ func (c *ProjectsUpdatePasskeyConfigCall) Fields(s ...googleapi.Field) *Projects // 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 *ProjectsUpdatePasskeyConfigCall) Context(ctx context.Context) *ProjectsUpdatePasskeyConfigCall { +func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsCreateCall { 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 *ProjectsUpdatePasskeyConfigCall) Header() http.Header { +func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsUpdatePasskeyConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) 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_ { @@ -5743,36 +5549,37 @@ func (c *ProjectsUpdatePasskeyConfigCall) doRequest(alt string) (*http.Response, } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2passkeyconfig) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig) 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, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/defaultSupportedIdpConfigs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "identitytoolkit.projects.updatePasskeyConfig" call. -// Exactly one of *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.create" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig.ServerResponse.Header -// or (if a response was returned at all) in +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResp +// onse.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 *ProjectsUpdatePasskeyConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2PasskeyConfig, error) { +func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5791,7 +5598,7 @@ func (c *ProjectsUpdatePasskeyConfigCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIdentitytoolkitAdminV2PasskeyConfig{ + ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5803,34 +5610,33 @@ func (c *ProjectsUpdatePasskeyConfigCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Update a passkey configuration for an Identity Toolkit project.", - // "flatPath": "v2/projects/{projectsId}/passkeyConfig", - // "httpMethod": "PATCH", - // "id": "identitytoolkit.projects.updatePasskeyConfig", + // "description": "Create a default supported Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the PasskeyConfig resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/passkeyConfig$", - // "required": true, + // "idpId": { + // "description": "The id of the Idp to create a config for. Call ListDefaultSupportedIdps for list of all default supported Idps.", + // "location": "query", // "type": "string" // }, - // "updateMask": { - // "description": "Optional. The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - // "format": "google-fieldmask", - // "location": "query", + // "parent": { + // "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+parent}/defaultSupportedIdpConfigs", // "request": { - // "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" // }, // "response": { - // "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -5840,178 +5646,17 @@ func (c *ProjectsUpdatePasskeyConfigCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "identitytoolkit.projects.defaultSupportedIdpConfigs.create": +// method id "identitytoolkit.projects.defaultSupportedIdpConfigs.delete": -type ProjectsDefaultSupportedIdpConfigsCreateCall struct { - s *Service - parent string - googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsDefaultSupportedIdpConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Create a default supported Idp configuration for an Identity -// Toolkit project. -// -// - parent: The parent resource name where the config to be created, -// for example: "projects/my-awesome-project". -func (r *ProjectsDefaultSupportedIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsDefaultSupportedIdpConfigsCreateCall { - c := &ProjectsDefaultSupportedIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig - return c -} - -// IdpId sets the optional parameter "idpId": The id of the Idp to -// create a config for. Call ListDefaultSupportedIdps for list of all -// default supported Idps. -func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) IdpId(idpId string) *ProjectsDefaultSupportedIdpConfigsCreateCall { - c.urlParams_.Set("idpId", idpId) - 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 *ProjectsDefaultSupportedIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsCreateCall { - 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 *ProjectsDefaultSupportedIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsCreateCall { - 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 *ProjectsDefaultSupportedIdpConfigsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) 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.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig) - 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, "v2/{+parent}/defaultSupportedIdpConfigs") - 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 "identitytoolkit.projects.defaultSupportedIdpConfigs.create" call. -// Exactly one of -// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResp -// onse.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 *ProjectsDefaultSupportedIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, 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 := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{ - 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": "Create a default supported Idp configuration for an Identity Toolkit project.", - // "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs", - // "httpMethod": "POST", - // "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "idpId": { - // "description": "The id of the Idp to create a config for. Call ListDefaultSupportedIdps for list of all default supported Idps.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+parent}/defaultSupportedIdpConfigs", - // "request": { - // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/firebase" - // ] - // } - -} - -// method id "identitytoolkit.projects.defaultSupportedIdpConfigs.delete": - -type ProjectsDefaultSupportedIdpConfigsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Delete a default supported Idp configuration for an Identity +// Delete: Delete a default supported Idp configuration for an Identity // Toolkit project. // // - name: The resource name of the config, for example: @@ -8995,157 +8640,6 @@ func (c *ProjectsTenantsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "identitytoolkit.projects.tenants.getPasskeyConfig": - -type ProjectsTenantsGetPasskeyConfigCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetPasskeyConfig: Retrieve a passkey configuration for an Identity -// Toolkit project. -// -// - name: The resource name of the config, for example: -// 'projects/my-awesome-project/passkeyConfig'. -func (r *ProjectsTenantsService) GetPasskeyConfig(name string) *ProjectsTenantsGetPasskeyConfigCall { - c := &ProjectsTenantsGetPasskeyConfigCall{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 information. -func (c *ProjectsTenantsGetPasskeyConfigCall) Fields(s ...googleapi.Field) *ProjectsTenantsGetPasskeyConfigCall { - 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 *ProjectsTenantsGetPasskeyConfigCall) IfNoneMatch(entityTag string) *ProjectsTenantsGetPasskeyConfigCall { - 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 *ProjectsTenantsGetPasskeyConfigCall) Context(ctx context.Context) *ProjectsTenantsGetPasskeyConfigCall { - 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 *ProjectsTenantsGetPasskeyConfigCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsTenantsGetPasskeyConfigCall) 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, "v2/{+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.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "identitytoolkit.projects.tenants.getPasskeyConfig" call. -// Exactly one of *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig.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 *ProjectsTenantsGetPasskeyConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2PasskeyConfig, 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 := &GoogleCloudIdentitytoolkitAdminV2PasskeyConfig{ - 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": "Retrieve a passkey configuration for an Identity Toolkit project.", - // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/passkeyConfig", - // "httpMethod": "GET", - // "id": "identitytoolkit.projects.tenants.getPasskeyConfig", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the config, for example: 'projects/my-awesome-project/passkeyConfig'.", - // "location": "path", - // "pattern": "^projects/[^/]+/tenants/[^/]+/passkeyConfig$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "response": { - // "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/firebase" - // ] - // } - -} - // method id "identitytoolkit.projects.tenants.list": type ProjectsTenantsListCall struct { @@ -9801,167 +9295,6 @@ func (c *ProjectsTenantsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) } -// method id "identitytoolkit.projects.tenants.updatePasskeyConfig": - -type ProjectsTenantsUpdatePasskeyConfigCall struct { - s *Service - name string - googlecloudidentitytoolkitadminv2passkeyconfig *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// UpdatePasskeyConfig: Update a passkey configuration for an Identity -// Toolkit project. -// -// - name: The name of the PasskeyConfig resource. -func (r *ProjectsTenantsService) UpdatePasskeyConfig(name string, googlecloudidentitytoolkitadminv2passkeyconfig *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig) *ProjectsTenantsUpdatePasskeyConfigCall { - c := &ProjectsTenantsUpdatePasskeyConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudidentitytoolkitadminv2passkeyconfig = googlecloudidentitytoolkitadminv2passkeyconfig - return c -} - -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. Empty update mask will result in updating -// nothing. For the `FieldMask` definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask -func (c *ProjectsTenantsUpdatePasskeyConfigCall) UpdateMask(updateMask string) *ProjectsTenantsUpdatePasskeyConfigCall { - c.urlParams_.Set("updateMask", updateMask) - 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 *ProjectsTenantsUpdatePasskeyConfigCall) Fields(s ...googleapi.Field) *ProjectsTenantsUpdatePasskeyConfigCall { - 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 *ProjectsTenantsUpdatePasskeyConfigCall) Context(ctx context.Context) *ProjectsTenantsUpdatePasskeyConfigCall { - 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 *ProjectsTenantsUpdatePasskeyConfigCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsTenantsUpdatePasskeyConfigCall) 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.googlecloudidentitytoolkitadminv2passkeyconfig) - 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, "v2/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", 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 "identitytoolkit.projects.tenants.updatePasskeyConfig" call. -// Exactly one of *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIdentitytoolkitAdminV2PasskeyConfig.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 *ProjectsTenantsUpdatePasskeyConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2PasskeyConfig, 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 := &GoogleCloudIdentitytoolkitAdminV2PasskeyConfig{ - 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": "Update a passkey configuration for an Identity Toolkit project.", - // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/passkeyConfig", - // "httpMethod": "PATCH", - // "id": "identitytoolkit.projects.tenants.updatePasskeyConfig", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the PasskeyConfig resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/tenants/[^/]+/passkeyConfig$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Optional. The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "request": { - // "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIdentitytoolkitAdminV2PasskeyConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/firebase" - // ] - // } - -} - // method id "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.create": type ProjectsTenantsDefaultSupportedIdpConfigsCreateCall struct {