@@ -907,6 +907,44 @@ def update!(**args)
907907 class GoogleFirebaseAppcheckV1PlayIntegrityConfig
908908 include Google ::Apis ::Core ::Hashable
909909
910+ # A settings object specifying account requirements for Android devices running
911+ # your app. These settings correspond to requirements on the [**account details**
912+ # field](https://developer.android.com/google/play/integrity/verdicts#account-
913+ # details-field) obtained from the Play Integrity API. See the [default
914+ # responses table](https://developer.android.com/google/play/integrity/setup#
915+ # default) for a quick summary. The default values for these settings work for
916+ # most apps, and are recommended.
917+ # Corresponds to the JSON property `accountDetails`
918+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails]
919+ attr_accessor :account_details
920+
921+ # A settings object specifying application integrity requirements for Android
922+ # devices running your app. These settings correspond to requirements on the [**
923+ # application integrity** field](https://developer.android.com/google/play/
924+ # integrity/verdicts#application-integrity-field) obtained from the Play
925+ # Integrity API. See the [default responses table](https://developer.android.com/
926+ # google/play/integrity/setup#default) for a quick summary. The default values
927+ # for these settings work for most apps, and are recommended.
928+ # Corresponds to the JSON property `appIntegrity`
929+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity]
930+ attr_accessor :app_integrity
931+
932+ # A settings object specifying device integrity requirements for Android devices
933+ # running your app. These settings correspond to requirements on the [**device
934+ # integrity** field](https://developer.android.com/google/play/integrity/
935+ # verdicts#device-integrity-field) obtained from the Play Integrity API. See the
936+ # [default responses table](https://developer.android.com/google/play/integrity/
937+ # setup#default) for a quick summary. Warning: There are also [conditional](
938+ # https://developer.android.com/google/play/integrity/setup#conditional) as well
939+ # as [optional](https://developer.android.com/google/play/integrity/setup#
940+ # optional_device_information) responses that you can receive, but requires
941+ # additional explicit opt-in from you. The App Check API is **not** responsible
942+ # for any such opt-ins. The default values for these settings work for most apps,
943+ # and are recommended.
944+ # Corresponds to the JSON property `deviceIntegrity`
945+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity]
946+ attr_accessor :device_integrity
947+
910948 # Required. The relative resource name of the Play Integrity configuration
911949 # object, in the format: ``` projects/`project_number`/apps/`app_id`/
912950 # playIntegrityConfig ```
@@ -927,11 +965,115 @@ def initialize(**args)
927965
928966 # Update properties of this object
929967 def update! ( **args )
968+ @account_details = args [ :account_details ] if args . key? ( :account_details )
969+ @app_integrity = args [ :app_integrity ] if args . key? ( :app_integrity )
970+ @device_integrity = args [ :device_integrity ] if args . key? ( :device_integrity )
930971 @name = args [ :name ] if args . key? ( :name )
931972 @token_ttl = args [ :token_ttl ] if args . key? ( :token_ttl )
932973 end
933974 end
934975
976+ # A settings object specifying account requirements for Android devices running
977+ # your app. These settings correspond to requirements on the [**account details**
978+ # field](https://developer.android.com/google/play/integrity/verdicts#account-
979+ # details-field) obtained from the Play Integrity API. See the [default
980+ # responses table](https://developer.android.com/google/play/integrity/setup#
981+ # default) for a quick summary. The default values for these settings work for
982+ # most apps, and are recommended.
983+ class GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails
984+ include Google ::Apis ::Core ::Hashable
985+
986+ # Specifies whether the caller must have received the [`LICENSED` verdict](https:
987+ # //developer.android.com/google/play/integrity/verdicts#account-details-field).
988+ # For additional details about scenarios where your users will receive this `
989+ # LICENSED` label, see [the default responses table](https://developer.android.
990+ # com/google/play/integrity/setup#default). If set to `true`, apps without the `
991+ # LICENSED` app licensing verdict will be rejected. If set to `false`, any app
992+ # licensing verdict is allowed. The default value is `false`.
993+ # Corresponds to the JSON property `requireLicensed`
994+ # @return [Boolean]
995+ attr_accessor :require_licensed
996+ alias_method :require_licensed? , :require_licensed
997+
998+ def initialize ( **args )
999+ update! ( **args )
1000+ end
1001+
1002+ # Update properties of this object
1003+ def update! ( **args )
1004+ @require_licensed = args [ :require_licensed ] if args . key? ( :require_licensed )
1005+ end
1006+ end
1007+
1008+ # A settings object specifying application integrity requirements for Android
1009+ # devices running your app. These settings correspond to requirements on the [**
1010+ # application integrity** field](https://developer.android.com/google/play/
1011+ # integrity/verdicts#application-integrity-field) obtained from the Play
1012+ # Integrity API. See the [default responses table](https://developer.android.com/
1013+ # google/play/integrity/setup#default) for a quick summary. The default values
1014+ # for these settings work for most apps, and are recommended.
1015+ class GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity
1016+ include Google ::Apis ::Core ::Hashable
1017+
1018+ # Specifies whether your running app is allowed to have the `
1019+ # UNRECOGNIZED_VERSION` [app recognition verdict](https://developer.android.com/
1020+ # google/play/integrity/verdicts#application-integrity-field). Note that the app
1021+ # recognition verdict `PLAY_RECOGNIZED` is a strong, comprehensive integrity
1022+ # signal that takes into account various other signals, including conditional
1023+ # and optional device integrity responses that you have opted into. If your app
1024+ # is published off-Play, this field should be set to `true` to allow instances
1025+ # of your app installed from off-Play sources to function. If set to `false`,
1026+ # only `PLAY_RECOGNIZED` verdicts are allowed, and both `UNRECOGNIZED_VERSION`
1027+ # and `UNEVALUATED` will be rejected. If set to `true`, any app recognition
1028+ # verdict is allowed. The default value is `false`.
1029+ # Corresponds to the JSON property `allowUnrecognizedVersion`
1030+ # @return [Boolean]
1031+ attr_accessor :allow_unrecognized_version
1032+ alias_method :allow_unrecognized_version? , :allow_unrecognized_version
1033+
1034+ def initialize ( **args )
1035+ update! ( **args )
1036+ end
1037+
1038+ # Update properties of this object
1039+ def update! ( **args )
1040+ @allow_unrecognized_version = args [ :allow_unrecognized_version ] if args . key? ( :allow_unrecognized_version )
1041+ end
1042+ end
1043+
1044+ # A settings object specifying device integrity requirements for Android devices
1045+ # running your app. These settings correspond to requirements on the [**device
1046+ # integrity** field](https://developer.android.com/google/play/integrity/
1047+ # verdicts#device-integrity-field) obtained from the Play Integrity API. See the
1048+ # [default responses table](https://developer.android.com/google/play/integrity/
1049+ # setup#default) for a quick summary. Warning: There are also [conditional](
1050+ # https://developer.android.com/google/play/integrity/setup#conditional) as well
1051+ # as [optional](https://developer.android.com/google/play/integrity/setup#
1052+ # optional_device_information) responses that you can receive, but requires
1053+ # additional explicit opt-in from you. The App Check API is **not** responsible
1054+ # for any such opt-ins. The default values for these settings work for most apps,
1055+ # and are recommended.
1056+ class GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity
1057+ include Google ::Apis ::Core ::Hashable
1058+
1059+ # Specifies the minimum device integrity level in order for the device to be
1060+ # considered valid. Any device with a device recognition verdict lower than this
1061+ # level will be rejected. If this is unspecified, the default level is `
1062+ # NO_INTEGRITY`.
1063+ # Corresponds to the JSON property `minDeviceRecognitionLevel`
1064+ # @return [String]
1065+ attr_accessor :min_device_recognition_level
1066+
1067+ def initialize ( **args )
1068+ update! ( **args )
1069+ end
1070+
1071+ # Update properties of this object
1072+ def update! ( **args )
1073+ @min_device_recognition_level = args [ :min_device_recognition_level ] if args . key? ( :min_device_recognition_level )
1074+ end
1075+ end
1076+
9351077 # A JWK as specified by [section 4 of RFC 7517](https://tools.ietf.org/html/
9361078 # rfc7517#section-4) and [section 6.3.1 of RFC 7518](https://tools.ietf.org/html/
9371079 # rfc7518#section-6.3.1).
@@ -1022,6 +1164,16 @@ class GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig
10221164 # @return [String]
10231165 attr_accessor :name
10241166
1167+ # A settings object specifying risk tolerance and requirements for your
1168+ # application. These settings correspond to requirements on the [**`riskAnalysis`
1169+ # **](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#
1170+ # interpret_assessment) tuple in the assessment obtained from reCAPTCHA
1171+ # Enterprise. The default values for these settings work for most apps, and are
1172+ # recommended.
1173+ # Corresponds to the JSON property `riskAnalysis`
1174+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis]
1175+ attr_accessor :risk_analysis
1176+
10251177 # The score-based site key [created in reCAPTCHA Enterprise](https://cloud.
10261178 # google.com/recaptcha-enterprise/docs/create-key#creating_a_site_key) used to [
10271179 # invoke reCAPTCHA and generate the reCAPTCHA tokens](https://cloud.google.com/
@@ -1046,18 +1198,54 @@ def initialize(**args)
10461198 # Update properties of this object
10471199 def update! ( **args )
10481200 @name = args [ :name ] if args . key? ( :name )
1201+ @risk_analysis = args [ :risk_analysis ] if args . key? ( :risk_analysis )
10491202 @site_key = args [ :site_key ] if args . key? ( :site_key )
10501203 @token_ttl = args [ :token_ttl ] if args . key? ( :token_ttl )
10511204 end
10521205 end
10531206
1207+ # A settings object specifying risk tolerance and requirements for your
1208+ # application. These settings correspond to requirements on the [**`riskAnalysis`
1209+ # **](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#
1210+ # interpret_assessment) tuple in the assessment obtained from reCAPTCHA
1211+ # Enterprise. The default values for these settings work for most apps, and are
1212+ # recommended.
1213+ class GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis
1214+ include Google ::Apis ::Core ::Hashable
1215+
1216+ # Specifies a minimum score required for a reCAPTCHA token to be considered
1217+ # valid. If its score is greater than or equal to this value, it will be
1218+ # accepted; otherwise, it will be rejected. The value must be between 0.0 and 1.
1219+ # 0. The default value is 0.5.
1220+ # Corresponds to the JSON property `minValidScore`
1221+ # @return [Float]
1222+ attr_accessor :min_valid_score
1223+
1224+ def initialize ( **args )
1225+ update! ( **args )
1226+ end
1227+
1228+ # Update properties of this object
1229+ def update! ( **args )
1230+ @min_valid_score = args [ :min_valid_score ] if args . key? ( :min_valid_score )
1231+ end
1232+ end
1233+
10541234 # An app's reCAPTCHA v3 configuration object. This configuration is used by
10551235 # ExchangeRecaptchaV3Token to validate reCAPTCHA tokens issued to apps by
10561236 # reCAPTCHA v3. It also controls certain properties of the returned `
10571237 # AppCheckToken`, such as its ttl.
10581238 class GoogleFirebaseAppcheckV1RecaptchaV3Config
10591239 include Google ::Apis ::Core ::Hashable
10601240
1241+ # Specifies a minimum score required for a reCAPTCHA token to be considered
1242+ # valid. If its score is greater than or equal to this value, it will be
1243+ # accepted; otherwise, it will be rejected. The value must be between 0.0 and 1.
1244+ # 0. The default value is 0.5.
1245+ # Corresponds to the JSON property `minValidScore`
1246+ # @return [Float]
1247+ attr_accessor :min_valid_score
1248+
10611249 # Required. The relative resource name of the reCAPTCHA v3 configuration object,
10621250 # in the format: ``` projects/`project_number`/apps/`app_id`/recaptchaV3Config ``
10631251 # `
@@ -1093,6 +1281,7 @@ def initialize(**args)
10931281
10941282 # Update properties of this object
10951283 def update! ( **args )
1284+ @min_valid_score = args [ :min_valid_score ] if args . key? ( :min_valid_score )
10961285 @name = args [ :name ] if args . key? ( :name )
10971286 @site_secret = args [ :site_secret ] if args . key? ( :site_secret )
10981287 @site_secret_set = args [ :site_secret_set ] if args . key? ( :site_secret_set )
0 commit comments