| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -119,6 +119,13 @@ class Database(proto.Message): | |||
| 119 | 119 | source_info (google.cloud.firestore_admin_v1.types.Database.SourceInfo): | |
| 120 | 120 | Output only. Information about the provenance | |
| 121 | 121 | of this database. | |
| 122 | + tags (MutableMapping[str, str]): | ||
| 123 | + Optional. Input only. Immutable. Tag | ||
| 124 | + keys/values directly bound to this resource. For | ||
| 125 | + example: | ||
| 126 | + | ||
| 127 | + "123/environment": "production", | ||
| 128 | + "123/costCenter": "marketing". | ||
| 122 | 129 | free_tier (bool): | |
| 123 | 130 | Output only. Background: Free tier is the | |
| 124 | 131 | ability of a Firestore database to use a small | |
@@ -524,6 +531,11 @@ class CustomerManagedEncryptionOptions(proto.Message): | |||
| 524 | 531 | number=26, | |
| 525 | 532 | message=SourceInfo, | |
| 526 | 533 | ) | |
| 534 | + tags: MutableMapping[str, str] = proto.MapField( | ||
| 535 | + proto.STRING, | ||
| 536 | + proto.STRING, | ||
| 537 | + number=29, | ||
| 538 | + ) | ||
| 527 | 539 | free_tier: bool = proto.Field( | |
| 528 | 540 | proto.BOOL, | |
| 529 | 541 | number=30, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1047,6 +1047,12 @@ class RestoreDatabaseRequest(proto.Message): | |||
| 1047 | 1047 | If this field is not specified, the restored database will | |
| 1048 | 1048 | use the same encryption configuration as the backup, namely | |
| 1049 | 1049 | [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption]. | |
| 1050 | + tags (MutableMapping[str, str]): | ||
| 1051 | + Optional. Immutable. Tags to be bound to the restored | ||
| 1052 | + database. | ||
| 1053 | + | ||
| 1054 | + The tags should be provided in the format of | ||
| 1055 | + ``tagKeys/{tag_key_id} -> tagValues/{tag_value_id}``. | ||
| 1050 | 1056 | """ | |
| 1051 | 1057 | ||
| 1052 | 1058 | parent: str = proto.Field( | |
@@ -1066,6 +1072,11 @@ class RestoreDatabaseRequest(proto.Message): | |||
| 1066 | 1072 | number=9, | |
| 1067 | 1073 | message=gfa_database.Database.EncryptionConfig, | |
| 1068 | 1074 | ) | |
| 1075 | + tags: MutableMapping[str, str] = proto.MapField( | ||
| 1076 | + proto.STRING, | ||
| 1077 | + proto.STRING, | ||
| 1078 | + number=10, | ||
| 1079 | + ) | ||
| 1069 | 1080 | ||
| 1070 | 1081 | ||
| 1071 | 1082 | __all__ = tuple(sorted(__protobuf__.manifest)) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,7 +72,7 @@ class firestore_adminCallTransformer(cst.CSTTransformer): | |||
| 72 | 72 | 'list_indexes': ('parent', 'filter', 'page_size', 'page_token', ), | |
| 73 | 73 | 'list_user_creds': ('parent', ), | |
| 74 | 74 | 'reset_user_password': ('name', ), | |
| 75 | - 'restore_database': ('parent', 'database_id', 'backup', 'encryption_config', ), | ||
| 75 | + 'restore_database': ('parent', 'database_id', 'backup', 'encryption_config', 'tags', ), | ||
| 76 | 76 | 'update_backup_schedule': ('backup_schedule', 'update_mask', ), | |
| 77 | 77 | 'update_database': ('database', 'update_mask', ), | |
| 78 | 78 | 'update_field': ('field', 'update_mask', ), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20792,6 +20792,7 @@ def test_create_database_rest_call_success(request_type): | |||
| 20792 | 20792 | "backup": {"backup": "backup_value"}, | |
| 20793 | 20793 | "operation": "operation_value", | |
| 20794 | 20794 | }, | |
| 20795 | + "tags": {}, | ||
| 20795 | 20796 | "free_tier": True, | |
| 20796 | 20797 | "etag": "etag_value", | |
| 20797 | 20798 | "database_edition": 1, | |
@@ -21303,6 +21304,7 @@ def test_update_database_rest_call_success(request_type): | |||
| 21303 | 21304 | "backup": {"backup": "backup_value"}, | |
| 21304 | 21305 | "operation": "operation_value", | |
| 21305 | 21306 | }, | |
| 21307 | + "tags": {}, | ||
| 21306 | 21308 | "free_tier": True, | |
| 21307 | 21309 | "etag": "etag_value", | |
| 21308 | 21310 | "database_edition": 1, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments