generated/google/apis/file_v1/classes.rb in google-api-client-0.37.2 vs generated/google/apis/file_v1/classes.rb in google-api-client-0.37.3

- old
+ new

@@ -78,70 +78,11 @@ @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb) @name = args[:name] if args.key?(:name) end end - # Instance represents the interface for SLM services to actuate the state - # of control plane resources. - # Example Instance in JSON, where - # consumer-project=snapchat, - # producer-project=cloud-sql: - # ```json - # Instance: - # ` - # "name": - # "projects/snapchat/locations/us-east1/instances/prod-instance", - # "create_time": ` - # "seconds": 1526406431, - # `, - # "labels": ` - # "env": "prod", - # "foo": "bar" - # `, - # "state": READY, - # "software_versions": ` - # "software_update": "cloud-sql-09-28-2018", - # `, - # "maintenance_policy_names": ` - # "UpdatePolicy": - # "projects/snapchat/locations/us-east1/maintenancePolicies/prod-update- - # policy", - # ` - # "tenant_project_id": "cloud-sql-test-tenant", - # "producer_metadata": ` - # "cloud-sql-tier": "basic", - # "cloud-sql-instance-size": "1G", - # `, - # "provisioned_resources": [ - # ` - # "resource-type": "compute-instance", - # "resource-url": - # "https://www.googleapis.com/compute/v1/projects/cloud-sql/zones/us-east1- - # b/instances/vm-1", - # ` - # ], - # "maintenance_schedules": ` - # "csa_rollout": ` - # "start_time": ` - # "seconds": 1526406431, - # `, - # "end_time": ` - # "seconds": 1535406431, - # `, - # `, - # "ncsa_rollout": ` - # "start_time": ` - # "seconds": 1526406431, - # `, - # "end_time": ` - # "seconds": 1535406431, - # `, - # ` - # `, - # "consumer_defined_name": "my-sql-instance1", - # ` - # ``` + # class GoogleCloudSaasacceleratorManagementProvidersV1Instance include Google::Apis::Core::Hashable # consumer_defined_name is the name that is set by the consumer. On the other # hand Name field represents system-assigned id of an instance so consumers @@ -196,20 +137,10 @@ # instance, e.g. compute VMs. See go/get-instance-metadata. # Corresponds to the JSON property `provisionedResources` # @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource>] attr_accessor :provisioned_resources - # The map between RolloutType and the corresponding RolloutMetadata. - # This is only mutated by rollout service. For actuation implementation, - # this information is pass-through for Rollout management. Producer shall - # not modify by itself. - # For update of a single entry in this map, the update field mask shall - # follow this sementics: go/advanced-field-masks - # Corresponds to the JSON property `rolloutMetadata` - # @return [Hash<String,Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata>] - attr_accessor :rollout_metadata - # Link to the SLM instance template. Only populated when updating SLM # instances via SSA's Actuation service adaptor. # Service producers with custom control plane (e.g. Cloud SQL) doesn't # need to populate this field. Instead they should use software_versions. # Corresponds to the JSON property `slmInstanceTemplate` @@ -257,11 +188,10 @@ @maintenance_policy_names = args[:maintenance_policy_names] if args.key?(:maintenance_policy_names) @maintenance_schedules = args[:maintenance_schedules] if args.key?(:maintenance_schedules) @name = args[:name] if args.key?(:name) @producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata) @provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources) - @rollout_metadata = args[:rollout_metadata] if args.key?(:rollout_metadata) @slm_instance_template = args[:slm_instance_template] if args.key?(:slm_instance_template) @slo_metadata = args[:slo_metadata] if args.key?(:slo_metadata) @software_versions = args[:software_versions] if args.key?(:software_versions) @state = args[:state] if args.key?(:state) @tenant_project_id = args[:tenant_project_id] if args.key?(:tenant_project_id) @@ -349,51 +279,10 @@ @location = args[:location] if args.key?(:location) @node_id = args[:node_id] if args.key?(:node_id) end end - # This message has been deprecated. - # NotificationMetadata is the notification state for an instance. - class GoogleCloudSaasacceleratorManagementProvidersV1NotificationMetadata - include Google::Apis::Core::Hashable - - # Whether the instance update has been rescheduled. - # Corresponds to the JSON property `rescheduled` - # @return [Boolean] - attr_accessor :rescheduled - alias_method :rescheduled?, :rescheduled - - # The scheduled end time for the maintenance window during which update - # can be performed on the instance. - # Corresponds to the JSON property `scheduledEndTime` - # @return [String] - attr_accessor :scheduled_end_time - - # The scheduled start time for the maintenance window during which - # update can be performed on the instance. - # Corresponds to the JSON property `scheduledStartTime` - # @return [String] - attr_accessor :scheduled_start_time - - # The target release to be applied to the instance. - # Corresponds to the JSON property `targetRelease` - # @return [String] - attr_accessor :target_release - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @rescheduled = args[:rescheduled] if args.key?(:rescheduled) - @scheduled_end_time = args[:scheduled_end_time] if args.key?(:scheduled_end_time) - @scheduled_start_time = args[:scheduled_start_time] if args.key?(:scheduled_start_time) - @target_release = args[:target_release] if args.key?(:target_release) - end - end - # Describes provisioned dataplane resources. class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource include Google::Apis::Core::Hashable # Type of the resource. This can be either a GCP resource or a custom one @@ -418,42 +307,9 @@ # Update properties of this object def update!(**args) @resource_type = args[:resource_type] if args.key?(:resource_type) @resource_url = args[:resource_url] if args.key?(:resource_url) - end - end - - # This message has been deprecated. - # RolloutMetadata for an actuation instance. It maps to a single RolloutType. - class GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata - include Google::Apis::Core::Hashable - - # This message has been deprecated. - # NotificationMetadata is the notification state for an instance. - # Corresponds to the JSON property `notification` - # @return [Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationMetadata] - attr_accessor :notification - - # The last Release that has been applied to the instance. - # Corresponds to the JSON property `releaseName` - # @return [String] - attr_accessor :release_name - - # The last rollout that has been applied to the instance. - # Corresponds to the JSON property `rolloutName` - # @return [String] - attr_accessor :rollout_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @notification = args[:notification] if args.key?(:notification) - @release_name = args[:release_name] if args.key?(:release_name) - @rollout_name = args[:rollout_name] if args.key?(:rollout_name) end end # SloEligibility is a tuple containing eligibility value: true if an instance # is eligible for SLO calculation or false if it should be excluded from all