google-cloud-memorystore-v1 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -190,6 +190,13 @@ module Google
190
190
  # @!attribute [r] migration_config
191
191
  # @return [::Google::Cloud::Memorystore::V1::MigrationConfig]
192
192
  # Output only. Migration config for the instance.
193
+ # @!attribute [rw] acl_policy
194
+ # @return [::String]
195
+ # Optional. The ACL policy for the instance.
196
+ # Format: projects/\\{project}/locations/\\{location}/aclPolicies/\\{acl_policy}
197
+ # @!attribute [r] acl_policy_info
198
+ # @return [::Google::Cloud::Memorystore::V1::AclPolicyInfo]
199
+ # Output only. Details of the applied ACL policy.
193
200
  class Instance
194
201
  include ::Google::Protobuf::MessageExts
195
202
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -418,6 +425,29 @@ module Google
418
425
  end
419
426
  end
420
427
 
428
+ # Details of the applied ACL policy.
429
+ # @!attribute [r] applied_acl_policy
430
+ # @return [::String]
431
+ # Output only. The resource name of the applied ACL policy.
432
+ # Format:
433
+ # "projects/\\{project}/locations/\\{location}/aclPolicies/\\{acl_policy}"
434
+ # @!attribute [r] applied_acl_policy_revision
435
+ # @return [::String]
436
+ # Output only. The resource name of the applied ACL policy revision.
437
+ # Format:
438
+ # "projects/\\{project}/locations/\\{location}/aclPolicies/\\{acl_policy}/revisions/\\{revision}"
439
+ # @!attribute [r] applied_acl_policy_revision_number
440
+ # @return [::Integer]
441
+ # Output only. The revision number of the applied ACL policy revision.
442
+ # @!attribute [r] acl_policy_revision_statuses
443
+ # @return [::Array<::Google::Cloud::Memorystore::V1::AclPolicyRevisionStatus>]
444
+ # Output only. A list of status for various revisions of this ACL policy on
445
+ # the instance.
446
+ class AclPolicyInfo
447
+ include ::Google::Protobuf::MessageExts
448
+ extend ::Google::Protobuf::MessageExts::ClassMethods
449
+ end
450
+
421
451
  # Request for `StartMigration`.
422
452
  # @!attribute [rw] self_managed_source
423
453
  # @return [::Google::Cloud::Memorystore::V1::SelfManagedSource]
@@ -519,6 +549,142 @@ module Google
519
549
  end
520
550
  end
521
551
 
552
+ # The ACL policy resource.
553
+ # @!attribute [rw] name
554
+ # @return [::String]
555
+ # Identifier. Full resource path of the ACL policy.
556
+ # @!attribute [rw] rules
557
+ # @return [::Array<::Google::Cloud::Memorystore::V1::AclRule>]
558
+ # Required. The ACL rules within the ACL policy.
559
+ # @!attribute [r] state
560
+ # @return [::Google::Cloud::Memorystore::V1::AclPolicy::State]
561
+ # Output only. The state of the ACL policy.
562
+ # @!attribute [r] etag
563
+ # @return [::String]
564
+ # Output only. Etag of the ACL policy.
565
+ # @!attribute [r] instance_acl_policy_attachments
566
+ # @return [::Array<::Google::Cloud::Memorystore::V1::InstanceAclPolicyAttachment>]
567
+ # Output only. The ACL policy attachment status for each attached instance.
568
+ # @!attribute [r] create_time
569
+ # @return [::Google::Protobuf::Timestamp]
570
+ # Output only. The timestamp that the ACL policy was created.
571
+ # @!attribute [r] update_time
572
+ # @return [::Google::Protobuf::Timestamp]
573
+ # Output only. The timestamp that the ACL policy was last updated.
574
+ class AclPolicy
575
+ include ::Google::Protobuf::MessageExts
576
+ extend ::Google::Protobuf::MessageExts::ClassMethods
577
+
578
+ # Represents the different states of an ACL policy.
579
+ module State
580
+ # Not set.
581
+ STATE_UNSPECIFIED = 0
582
+
583
+ # ACL policy has been created and is fully usable.
584
+ ACTIVE = 1
585
+
586
+ # ACL policy is being updated.
587
+ UPDATING = 2
588
+
589
+ # ACL policy is being deleted.
590
+ DELETING = 3
591
+ end
592
+ end
593
+
594
+ # The ACL policy revision resource.
595
+ # @!attribute [rw] name
596
+ # @return [::String]
597
+ # Identifier. The name of the ACL policy revision.
598
+ # Format:
599
+ # "projects/\\{project}/locations/\\{location}/aclPolicies/\\{acl_policy}/revisions/\\{revision}"
600
+ # @!attribute [r] revision_number
601
+ # @return [::Integer]
602
+ # Output only. The revision number of the ACL policy revision.
603
+ # @!attribute [r] snapshot
604
+ # @return [::Google::Cloud::Memorystore::V1::AclPolicy]
605
+ # Output only. The snapshot of the ACL policy at the time of revision
606
+ # creation.
607
+ # @!attribute [r] create_time
608
+ # @return [::Google::Protobuf::Timestamp]
609
+ # Output only. The timestamp that the revision was created.
610
+ # @!attribute [r] attached_instances
611
+ # @return [::Array<::String>]
612
+ # Output only. A list of instances that are attached to this ACL policy
613
+ # revision.
614
+ class AclPolicyRevision
615
+ include ::Google::Protobuf::MessageExts
616
+ extend ::Google::Protobuf::MessageExts::ClassMethods
617
+ end
618
+
619
+ # AclPolicyRevisionStatus stores the per-revision status for an attached
620
+ # instance.
621
+ # @!attribute [r] acl_policy_revision
622
+ # @return [::String]
623
+ # Output only. The resource name of the ACL policy revision this status
624
+ # refers to. Format:
625
+ # "projects/\\{project}/locations/\\{location}/aclPolicies/\\{acl_policy}/revisions/\\{revision}"
626
+ # @!attribute [r] acl_policy_revision_number
627
+ # @return [::Integer]
628
+ # Output only. The revision number of the ACL policy revision this status
629
+ # refers to.
630
+ # @!attribute [r] state
631
+ # @return [::Google::Cloud::Memorystore::V1::AclPolicyRevisionStatus::State]
632
+ # Output only. AclPolicyRevision state.
633
+ # @!attribute [r] error_message
634
+ # @return [::String]
635
+ # Output only. Human-readable error message providing more details for FAILED
636
+ # states.
637
+ class AclPolicyRevisionStatus
638
+ include ::Google::Protobuf::MessageExts
639
+ extend ::Google::Protobuf::MessageExts::ClassMethods
640
+
641
+ # Enum indicating the status of this ACL policy revision on the instance.
642
+ module State
643
+ # Not set.
644
+ STATE_UNSPECIFIED = 0
645
+
646
+ # The instance is attempting to apply this revision.
647
+ APPLYING = 1
648
+
649
+ # The instance has successfully applied this revision.
650
+ APPLIED = 2
651
+
652
+ # The instance failed to apply this revision.
653
+ FAILED = 3
654
+ end
655
+ end
656
+
657
+ # InstanceAclPolicyAttachment stores the ACL policy status for an attached
658
+ # instance for the revisions successfully applied, under application or failed.
659
+ # @!attribute [r] instance
660
+ # @return [::String]
661
+ # Output only. The resource name of the attached instance.
662
+ # Format:
663
+ # "projects/\\{project}/locations/\\{location}/instances/\\{instance}"
664
+ # @!attribute [r] acl_policy_revision_statuses
665
+ # @return [::Array<::Google::Cloud::Memorystore::V1::AclPolicyRevisionStatus>]
666
+ # Output only. A list of status for various revisions of this ACL policy on
667
+ # the instance.
668
+ class InstanceAclPolicyAttachment
669
+ include ::Google::Protobuf::MessageExts
670
+ extend ::Google::Protobuf::MessageExts::ClassMethods
671
+ end
672
+
673
+ # A single ACL rule which defines the policy for a user.
674
+ # @!attribute [rw] username
675
+ # @return [::String]
676
+ # Required. Specifies the IAM user or service account to be added to the ACL
677
+ # policy. This username will be directly set on the Valkey OSS.
678
+ # @!attribute [rw] rule
679
+ # @return [::String]
680
+ # Required. The rule to be applied to the username. Ex: "on >password123 ~*
681
+ # +@all" The format of the rule is defined by Valkey OSS:
682
+ # https://valkey.io/topics/acl/
683
+ class AclRule
684
+ include ::Google::Protobuf::MessageExts
685
+ extend ::Google::Protobuf::MessageExts::ClassMethods
686
+ end
687
+
522
688
  # The automated backup config for an instance.
523
689
  # @!attribute [rw] fixed_frequency_schedule
524
690
  # @return [::Google::Cloud::Memorystore::V1::AutomatedBackupConfig::FixedFrequencySchedule]
@@ -1112,6 +1278,15 @@ module Google
1112
1278
  # @return [::String]
1113
1279
  # Optional. Defines zone where all resources will be allocated with
1114
1280
  # SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
1281
+ # @!attribute [rw] zones
1282
+ # @return [::Array<::String>]
1283
+ # Optional. Specify the zones of a multi-zone instance where Memorystore
1284
+ # instance allocates resources. This flag isn't applicable for single-zone
1285
+ # instances.
1286
+ # @!attribute [r] active_zones
1287
+ # @return [::Array<::String>]
1288
+ # Output only. The exact list of zones where the instance currently has
1289
+ # active VMs.
1115
1290
  # @!attribute [rw] mode
1116
1291
  # @return [::Google::Cloud::Memorystore::V1::ZoneDistributionConfig::ZoneDistributionMode]
1117
1292
  # Optional. Current zone distribution mode. Defaults to MULTI_ZONE.
@@ -1163,6 +1338,85 @@ module Google
1163
1338
  end
1164
1339
  end
1165
1340
 
1341
+ # Request for `ListAclPolicies`.
1342
+ # @!attribute [rw] parent
1343
+ # @return [::String]
1344
+ # Required. The resource name of the ACL policy location using the form:
1345
+ # `projects/{project}/locations/{location}`
1346
+ # where `location` refers to a Google Cloud region.
1347
+ # @!attribute [rw] page_size
1348
+ # @return [::Integer]
1349
+ # Optional. The maximum number of items to return.
1350
+ #
1351
+ # If not specified, a default value of 1000 will be used by the service.
1352
+ # Regardless of the page_size value, the response may include a partial list
1353
+ # and a caller should only rely on response's
1354
+ # `next_page_token`
1355
+ # to determine if there are more ACL policies left to be queried.
1356
+ #
1357
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
1358
+ # @!attribute [rw] page_token
1359
+ # @return [::String]
1360
+ # Optional. The `next_page_token` value returned from a previous
1361
+ # `ListAclPolicies` request, if any.
1362
+ class ListAclPoliciesRequest
1363
+ include ::Google::Protobuf::MessageExts
1364
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1365
+ end
1366
+
1367
+ # Response for `ListAclPolicies`.
1368
+ # @!attribute [rw] acl_policies
1369
+ # @return [::Array<::Google::Cloud::Memorystore::V1::AclPolicy>]
1370
+ # A list of ACL policies in the project in the specified location,
1371
+ # or across all locations.
1372
+ #
1373
+ # If the `location` in the parent field of the request is "-", all regions
1374
+ # available to the project are queried, and the results aggregated.
1375
+ # @!attribute [rw] next_page_token
1376
+ # @return [::String]
1377
+ # Token to retrieve the next page of results, or empty if there are no more
1378
+ # results in the list.
1379
+ # @!attribute [rw] unreachable
1380
+ # @return [::Array<::String>]
1381
+ # Unordered list. Locations that could not be reached.
1382
+ class ListAclPoliciesResponse
1383
+ include ::Google::Protobuf::MessageExts
1384
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1385
+ end
1386
+
1387
+ # Request for `ListAclPolicyRevisions`.
1388
+ # @!attribute [rw] parent
1389
+ # @return [::String]
1390
+ # Required. The resource name of the ACL policy to list revisions for.
1391
+ # Format: "projects/\\{project}/locations/\\{location}/aclPolicies/\\{acl_policy}"
1392
+ # @!attribute [rw] page_size
1393
+ # @return [::Integer]
1394
+ # Optional. The maximum number of items to return.
1395
+ # @!attribute [rw] page_token
1396
+ # @return [::String]
1397
+ # Optional. The `next_page_token` value returned from a previous
1398
+ # `ListAclPolicyRevisions` request, if any.
1399
+ class ListAclPolicyRevisionsRequest
1400
+ include ::Google::Protobuf::MessageExts
1401
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1402
+ end
1403
+
1404
+ # Response for `ListAclPolicyRevisions`.
1405
+ # @!attribute [rw] acl_policy_revisions
1406
+ # @return [::Array<::Google::Cloud::Memorystore::V1::AclPolicyRevision>]
1407
+ # A list of ACL policy revisions.
1408
+ # @!attribute [rw] next_page_token
1409
+ # @return [::String]
1410
+ # Token to retrieve the next page of results, or empty if there are no more
1411
+ # results in the list.
1412
+ # @!attribute [rw] unreachable
1413
+ # @return [::Array<::String>]
1414
+ # Unordered list. Locations that could not be reached.
1415
+ class ListAclPolicyRevisionsResponse
1416
+ include ::Google::Protobuf::MessageExts
1417
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1418
+ end
1419
+
1166
1420
  # Request message for [ListInstances][].
1167
1421
  # @!attribute [rw] parent
1168
1422
  # @return [::String]
@@ -1205,6 +1459,28 @@ module Google
1205
1459
  extend ::Google::Protobuf::MessageExts::ClassMethods
1206
1460
  end
1207
1461
 
1462
+ # Request for `GetAclPolicy`.
1463
+ # @!attribute [rw] name
1464
+ # @return [::String]
1465
+ # Required. Memorystore ACL policy resource name using the form:
1466
+ # `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
1467
+ # where `location` refers to a Google Cloud region.
1468
+ class GetAclPolicyRequest
1469
+ include ::Google::Protobuf::MessageExts
1470
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1471
+ end
1472
+
1473
+ # Request for `GetAclPolicyRevision`.
1474
+ # @!attribute [rw] name
1475
+ # @return [::String]
1476
+ # Required. Memorystore ACL policy revision resource name using the form:
1477
+ # `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
1478
+ # where `location` refers to a Google Cloud region.
1479
+ class GetAclPolicyRevisionRequest
1480
+ include ::Google::Protobuf::MessageExts
1481
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1482
+ end
1483
+
1208
1484
  # Request message for [GetInstance][].
1209
1485
  # @!attribute [rw] name
1210
1486
  # @return [::String]
@@ -1215,6 +1491,34 @@ module Google
1215
1491
  extend ::Google::Protobuf::MessageExts::ClassMethods
1216
1492
  end
1217
1493
 
1494
+ # Request for `CreateAclPolicy`.
1495
+ # @!attribute [rw] parent
1496
+ # @return [::String]
1497
+ # Required. The resource name of the ACL policy location using the form:
1498
+ # `projects/{project}/locations/{location}`
1499
+ # where `location` refers to a Google Cloud region.
1500
+ # @!attribute [rw] acl_policy_id
1501
+ # @return [::String]
1502
+ # Required. The logical name of the ACL policy in the customer project
1503
+ # with the following restrictions:
1504
+ #
1505
+ # * Must contain only lowercase letters, numbers, and hyphens.
1506
+ # * Must start with a letter.
1507
+ # * Must be between 1-63 characters.
1508
+ # * Must end with a number or a letter.
1509
+ # * Must be unique within the customer project / location
1510
+ # @!attribute [rw] acl_policy
1511
+ # @return [::Google::Cloud::Memorystore::V1::AclPolicy]
1512
+ # Required. The ACL policy that is to be created.
1513
+ # @!attribute [rw] request_id
1514
+ # @return [::String]
1515
+ # Optional. Idempotent request UUID.
1516
+ # .
1517
+ class CreateAclPolicyRequest
1518
+ include ::Google::Protobuf::MessageExts
1519
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1520
+ end
1521
+
1218
1522
  # Request message for [CreateInstance][].
1219
1523
  # @!attribute [rw] parent
1220
1524
  # @return [::String]
@@ -1255,6 +1559,25 @@ module Google
1255
1559
  extend ::Google::Protobuf::MessageExts::ClassMethods
1256
1560
  end
1257
1561
 
1562
+ # Request for `UpdateAclPolicy`.
1563
+ # @!attribute [rw] acl_policy
1564
+ # @return [::Google::Cloud::Memorystore::V1::AclPolicy]
1565
+ # Required. The ACL policy to be updated.
1566
+ # @!attribute [rw] update_mask
1567
+ # @return [::Google::Protobuf::FieldMask]
1568
+ # Optional. Mask of fields to be updated. At least one path must be supplied
1569
+ # in this field. The elements of the repeated paths field may only include
1570
+ # these fields from `AclPolicy`:
1571
+ #
1572
+ # * `rules`
1573
+ # @!attribute [rw] request_id
1574
+ # @return [::String]
1575
+ # Optional. Idempotent request UUID.
1576
+ class UpdateAclPolicyRequest
1577
+ include ::Google::Protobuf::MessageExts
1578
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1579
+ end
1580
+
1258
1581
  # Request message for [UpdateInstance][].
1259
1582
  # @!attribute [rw] update_mask
1260
1583
  # @return [::Google::Protobuf::FieldMask]
@@ -1283,6 +1606,24 @@ module Google
1283
1606
  extend ::Google::Protobuf::MessageExts::ClassMethods
1284
1607
  end
1285
1608
 
1609
+ # Request for `DeleteAclPolicy`.
1610
+ # @!attribute [rw] name
1611
+ # @return [::String]
1612
+ # Required. Memorystore ACL policy resource name using the form:
1613
+ # `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
1614
+ # where `location` refers to a Google Cloud region.
1615
+ # @!attribute [rw] request_id
1616
+ # @return [::String]
1617
+ # Optional. Idempotent request UUID.
1618
+ # @!attribute [rw] etag
1619
+ # @return [::String]
1620
+ # Optional. Etag of the ACL policy. If this is different from the server's
1621
+ # etag, the request will fail with an ABORTED error.
1622
+ class DeleteAclPolicyRequest
1623
+ include ::Google::Protobuf::MessageExts
1624
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1625
+ end
1626
+
1286
1627
  # Request message for [DeleteInstance][].
1287
1628
  # @!attribute [rw] name
1288
1629
  # @return [::String]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-memorystore-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC