lib/google/apis/backupdr_v1/classes.rb in google-apis-backupdr_v1-0.19.0 vs lib/google/apis/backupdr_v1/classes.rb in google-apis-backupdr_v1-0.20.0

- old
+ new

@@ -244,57 +244,10 @@ @key = args[:key] if args.key?(:key) @values = args[:values] if args.key?(:values) end end - # Provides the mapping of a cloud asset to a direct physical location or to a - # proxy that defines the location on its behalf. - class AssetLocation - include Google::Apis::Core::Hashable - - # Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants - # that use CCFE RMS for storing resource metadata. - # Corresponds to the JSON property `ccfeRmsPath` - # @return [String] - attr_accessor :ccfe_rms_path - - # Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state - # of the region at the time of asset creation. - # Corresponds to the JSON property `expected` - # @return [Google::Apis::BackupdrV1::IsolationExpectations] - attr_accessor :expected - - # Defines extra parameters required for specific asset types. - # Corresponds to the JSON property `extraParameters` - # @return [Array<Google::Apis::BackupdrV1::ExtraParameter>] - attr_accessor :extra_parameters - - # Contains all kinds of physical location definitions for this asset. - # Corresponds to the JSON property `locationData` - # @return [Array<Google::Apis::BackupdrV1::LocationData>] - attr_accessor :location_data - - # Defines parents assets if any in order to allow later generation of - # child_asset_location data via child assets. - # Corresponds to the JSON property `parentAsset` - # @return [Array<Google::Apis::BackupdrV1::CloudAsset>] - attr_accessor :parent_asset - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ccfe_rms_path = args[:ccfe_rms_path] if args.key?(:ccfe_rms_path) - @expected = args[:expected] if args.key?(:expected) - @extra_parameters = args[:extra_parameters] if args.key?(:extra_parameters) - @location_data = args[:location_data] if args.key?(:location_data) - @parent_asset = args[:parent_asset] if args.key?(:parent_asset) - end - end - # An instance-attached disk resource. class AttachedDisk include Google::Apis::Core::Hashable # Optional. Specifies whether the disk will be auto-deleted when the instance is @@ -906,12 +859,12 @@ # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Required. The resource type to which the `BackupPlan` will be applied. - # Examples include, "compute.googleapis.com/Instance" and "storage.googleapis. - # com/Bucket". + # Examples include, "compute.googleapis.com/Instance", "sqladmin.googleapis.com/ + # Instance" and "storage.googleapis.com/Bucket". # Corresponds to the JSON property `resourceType` # @return [String] attr_accessor :resource_type # Output only. The `State` for the `BackupPlan`. @@ -977,12 +930,11 @@ # Required. Immutable. Resource name of workload on which backupplan is applied # Corresponds to the JSON property `resource` # @return [String] attr_accessor :resource - # Output only. Output Only. Resource type of workload on which backupplan is - # applied + # Optional. Resource type of workload on which backupplan is applied # Corresponds to the JSON property `resourceType` # @return [String] attr_accessor :resource_type # Output only. The config info related to backup rules. @@ -1308,30 +1260,10 @@ @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end end - # Policy ID that identified data placement in Blobstore as per go/blobstore-user- - # guide#data-metadata-placement-and-failure-domains - class BlobstoreLocation - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `policyId` - # @return [Array<String>] - attr_accessor :policy_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @policy_id = args[:policy_id] if args.key?(:policy_id) - end - end - # The request message for Operations.CancelOperation. class CancelOperationRequest include Google::Apis::Core::Hashable def initialize(**args) @@ -1341,54 +1273,10 @@ # Update properties of this object def update!(**args) end end - # - class CloudAsset - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `assetName` - # @return [String] - attr_accessor :asset_name - - # - # Corresponds to the JSON property `assetType` - # @return [String] - attr_accessor :asset_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @asset_name = args[:asset_name] if args.key?(:asset_name) - @asset_type = args[:asset_type] if args.key?(:asset_type) - end - end - - # - class CloudAssetComposition - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `childAsset` - # @return [Array<Google::Apis::BackupdrV1::CloudAsset>] - attr_accessor :child_asset - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @child_asset = args[:child_asset] if args.key?(:child_asset) - end - end - # ComputeInstanceBackupProperties represents Compute Engine instance backup # properties. class ComputeInstanceBackupProperties include Google::Apis::Core::Hashable @@ -2004,29 +1892,10 @@ @location = args[:location] if args.key?(:location) @type = args[:type] if args.key?(:type) end end - # - class DirectLocationAssignment - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `location` - # @return [Array<Google::Apis::BackupdrV1::LocationAssignment>] - attr_accessor :location - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @location = args[:location] if args.key?(:location) - end - end - # A set of Display Device options class DisplayDevice include Google::Apis::Core::Hashable # Optional. Enables display for the Compute Engine VM @@ -2141,30 +2010,10 @@ @location = args[:location] if args.key?(:location) @title = args[:title] if args.key?(:title) end end - # Defines parameters that should only be used for specific asset types. - class ExtraParameter - include Google::Apis::Core::Hashable - - # To be used for specifying the intended distribution of regional compute. - # googleapis.com/InstanceGroupManager instances - # Corresponds to the JSON property `regionalMigDistributionPolicy` - # @return [Google::Apis::BackupdrV1::RegionalMigDistributionPolicy] - attr_accessor :regional_mig_distribution_policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @regional_mig_distribution_policy = args[:regional_mig_distribution_policy] if args.key?(:regional_mig_distribution_policy) - end - end - # Request message for FetchAccessToken. class FetchAccessTokenRequest include Google::Apis::Core::Hashable # Required. The generation of the backup to update. @@ -2552,74 +2401,10 @@ def update!(**args) @resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags) end end - # - class IsolationExpectations - include Google::Apis::Core::Hashable - - # Explicit overrides for ZI and ZS requirements to be used for resources that - # should be excluded from ZI/ZS verification logic. - # Corresponds to the JSON property `requirementOverride` - # @return [Google::Apis::BackupdrV1::RequirementOverride] - attr_accessor :requirement_override - - # - # Corresponds to the JSON property `ziOrgPolicy` - # @return [String] - attr_accessor :zi_org_policy - - # - # Corresponds to the JSON property `ziRegionPolicy` - # @return [String] - attr_accessor :zi_region_policy - - # - # Corresponds to the JSON property `ziRegionState` - # @return [String] - attr_accessor :zi_region_state - - # Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead - # for setting ZI expectations as per go/zicy-publish-physical-location. - # Corresponds to the JSON property `zoneIsolation` - # @return [String] - attr_accessor :zone_isolation - - # Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs - # expectations as per go/zicy-publish-physical-location. - # Corresponds to the JSON property `zoneSeparation` - # @return [String] - attr_accessor :zone_separation - - # - # Corresponds to the JSON property `zsOrgPolicy` - # @return [String] - attr_accessor :zs_org_policy - - # - # Corresponds to the JSON property `zsRegionState` - # @return [String] - attr_accessor :zs_region_state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @requirement_override = args[:requirement_override] if args.key?(:requirement_override) - @zi_org_policy = args[:zi_org_policy] if args.key?(:zi_org_policy) - @zi_region_policy = args[:zi_region_policy] if args.key?(:zi_region_policy) - @zi_region_state = args[:zi_region_state] if args.key?(:zi_region_state) - @zone_isolation = args[:zone_isolation] if args.key?(:zone_isolation) - @zone_separation = args[:zone_separation] if args.key?(:zone_separation) - @zs_org_policy = args[:zs_org_policy] if args.key?(:zs_org_policy) - @zs_region_state = args[:zs_region_state] if args.key?(:zs_region_state) - end - end - # Response message for List BackupPlanAssociation class ListBackupPlanAssociationsResponse include Google::Apis::Core::Hashable # The list of Backup Plan Associations in the project for the specified location. @@ -2927,86 +2712,10 @@ @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) end end - # - class LocationAssignment - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # - # Corresponds to the JSON property `locationType` - # @return [String] - attr_accessor :location_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @location = args[:location] if args.key?(:location) - @location_type = args[:location_type] if args.key?(:location_type) - end - end - - # - class LocationData - include Google::Apis::Core::Hashable - - # Policy ID that identified data placement in Blobstore as per go/blobstore-user- - # guide#data-metadata-placement-and-failure-domains - # Corresponds to the JSON property `blobstoreLocation` - # @return [Google::Apis::BackupdrV1::BlobstoreLocation] - attr_accessor :blobstore_location - - # - # Corresponds to the JSON property `childAssetLocation` - # @return [Google::Apis::BackupdrV1::CloudAssetComposition] - attr_accessor :child_asset_location - - # - # Corresponds to the JSON property `directLocation` - # @return [Google::Apis::BackupdrV1::DirectLocationAssignment] - attr_accessor :direct_location - - # - # Corresponds to the JSON property `gcpProjectProxy` - # @return [Google::Apis::BackupdrV1::TenantProjectProxy] - attr_accessor :gcp_project_proxy - - # Message describing that the location of the customer resource is tied to - # placer allocations - # Corresponds to the JSON property `placerLocation` - # @return [Google::Apis::BackupdrV1::PlacerLocation] - attr_accessor :placer_location - - # - # Corresponds to the JSON property `spannerLocation` - # @return [Google::Apis::BackupdrV1::SpannerLocation] - attr_accessor :spanner_location - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @blobstore_location = args[:blobstore_location] if args.key?(:blobstore_location) - @child_asset_location = args[:child_asset_location] if args.key?(:child_asset_location) - @direct_location = args[:direct_location] if args.key?(:direct_location) - @gcp_project_proxy = args[:gcp_project_proxy] if args.key?(:gcp_project_proxy) - @placer_location = args[:placer_location] if args.key?(:placer_location) - @spanner_location = args[:spanner_location] if args.key?(:spanner_location) - end - end - # ManagementServer describes a single BackupDR ManagementServer instance. class ManagementServer include Google::Apis::Core::Hashable # Output only. The hostname or ip address of the exposed AGM endpoints, used by @@ -3490,31 +3199,10 @@ @target = args[:target] if args.key?(:target) @verb = args[:verb] if args.key?(:verb) end end - # Message describing that the location of the customer resource is tied to - # placer allocations - class PlacerLocation - include Google::Apis::Core::Hashable - - # Directory with a config related to it in placer (e.g. "/placer/prod/home/my- - # root/my-dir") - # Corresponds to the JSON property `placerConfig` - # @return [String] - attr_accessor :placer_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @placer_config = args[:placer_config] if args.key?(:placer_config) - end - end - # An Identity and Access Management (IAM) policy, which specifies access # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. # A `binding` binds one or more `members`, or principals, to a single `role`. # Principals can be user accounts, service accounts, Google groups, and domains ( # such as G Suite). A `role` is a named list of permissions; each `role` can be @@ -3606,37 +3294,10 @@ @etag = args[:etag] if args.key?(:etag) @version = args[:version] if args.key?(:version) end end - # To be used for specifying the intended distribution of regional compute. - # googleapis.com/InstanceGroupManager instances - class RegionalMigDistributionPolicy - include Google::Apis::Core::Hashable - - # The shape in which the group converges around distribution of resources. - # Instance of proto2 enum - # Corresponds to the JSON property `targetShape` - # @return [Fixnum] - attr_accessor :target_shape - - # Cloud zones used by regional MIG to create instances. - # Corresponds to the JSON property `zones` - # @return [Array<Google::Apis::BackupdrV1::ZoneConfiguration>] - attr_accessor :zones - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @target_shape = args[:target_shape] if args.key?(:target_shape) - @zones = args[:zones] if args.key?(:zones) - end - end - # Message for deleting a DataSource. class RemoveDataSourceRequest include Google::Apis::Core::Hashable # Optional. An optional request ID to identify requests. Specify a unique @@ -3661,35 +3322,10 @@ def update!(**args) @request_id = args[:request_id] if args.key?(:request_id) end end - # - class RequirementOverride - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `ziOverride` - # @return [String] - attr_accessor :zi_override - - # - # Corresponds to the JSON property `zsOverride` - # @return [String] - attr_accessor :zs_override - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @zi_override = args[:zi_override] if args.key?(:zi_override) - @zs_override = args[:zs_override] if args.key?(:zs_override) - end - end - # Request message for restoring from a Backup. class RestoreBackupRequest include Google::Apis::Core::Hashable # ComputeInstanceRestoreProperties represents Compute Engine instance properties @@ -4040,36 +3676,10 @@ # Update properties of this object def update!(**args) end end - # - class SpannerLocation - include Google::Apis::Core::Hashable - - # Set of backups used by the resource with name in the same format as what is - # available at http://table/spanner_automon.backup_metadata - # Corresponds to the JSON property `backupName` - # @return [Array<String>] - attr_accessor :backup_name - - # Set of databases used by the resource in format /span// - # Corresponds to the JSON property `dbName` - # @return [Array<String>] - attr_accessor :db_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @backup_name = args[:backup_name] if args.key?(:backup_name) - @db_name = args[:db_name] if args.key?(:db_name) - end - end - # `StandardSchedule` defines a schedule that run within the confines of a # defined window of days. We can define recurrence type for schedule as HOURLY, # DAILY, WEEKLY, MONTHLY or YEARLY. class StandardSchedule include Google::Apis::Core::Hashable @@ -4227,29 +3837,10 @@ def update!(**args) @gcp_resource = args[:gcp_resource] if args.key?(:gcp_resource) end end - # - class TenantProjectProxy - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `projectNumbers` - # @return [Array<String>] - attr_accessor :project_numbers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @project_numbers = args[:project_numbers] if args.key?(:project_numbers) - end - end - # Request message for `TestIamPermissions` method. class TestIamPermissionsRequest include Google::Apis::Core::Hashable # The set of permissions to check for the `resource`. Permissions with wildcards @@ -4394,28 +3985,9 @@ # Update properties of this object def update!(**args) @first_party_oauth2_client_id = args[:first_party_oauth2_client_id] if args.key?(:first_party_oauth2_client_id) @third_party_oauth2_client_id = args[:third_party_oauth2_client_id] if args.key?(:third_party_oauth2_client_id) - end - end - - # - class ZoneConfiguration - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `zone` - # @return [String] - attr_accessor :zone - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @zone = args[:zone] if args.key?(:zone) end end end end end