Class: Google::Apis::ComposerV1beta1::LoadSnapshotRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/composer_v1beta1/classes.rb,
lib/google/apis/composer_v1beta1/representations.rb,
lib/google/apis/composer_v1beta1/representations.rb

Overview

Request to load a snapshot into a Cloud Composer environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LoadSnapshotRequest

Returns a new instance of LoadSnapshotRequest.



1191
1192
1193
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 1191

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#skip_airflow_overrides_settingBoolean Also known as: skip_airflow_overrides_setting?

Whether or not to skip setting Airflow overrides when loading the environment' s state. Corresponds to the JSON property skipAirflowOverridesSetting

Returns:

  • (Boolean)


1161
1162
1163
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 1161

def skip_airflow_overrides_setting
  @skip_airflow_overrides_setting
end

#skip_environment_variables_settingBoolean Also known as: skip_environment_variables_setting?

Whether or not to skip setting environment variables when loading the environment's state. Corresponds to the JSON property skipEnvironmentVariablesSetting

Returns:

  • (Boolean)


1168
1169
1170
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 1168

def skip_environment_variables_setting
  @skip_environment_variables_setting
end

#skip_gcs_data_copyingBoolean Also known as: skip_gcs_data_copying?

Whether or not to skip copying Cloud Storage data when loading the environment' s state. Corresponds to the JSON property skipGcsDataCopying

Returns:

  • (Boolean)


1175
1176
1177
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 1175

def skip_gcs_data_copying
  @skip_gcs_data_copying
end

#skip_pypi_packages_installationBoolean Also known as: skip_pypi_packages_installation?

Whether or not to skip installing Pypi packages when loading the environment's state. Corresponds to the JSON property skipPypiPackagesInstallation

Returns:

  • (Boolean)


1182
1183
1184
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 1182

def skip_pypi_packages_installation
  @skip_pypi_packages_installation
end

#snapshot_pathString

A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/ project_location_environment_timestamp". Corresponds to the JSON property snapshotPath

Returns:

  • (String)


1189
1190
1191
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 1189

def snapshot_path
  @snapshot_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1196
1197
1198
1199
1200
1201
1202
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 1196

def update!(**args)
  @skip_airflow_overrides_setting = args[:skip_airflow_overrides_setting] if args.key?(:skip_airflow_overrides_setting)
  @skip_environment_variables_setting = args[:skip_environment_variables_setting] if args.key?(:skip_environment_variables_setting)
  @skip_gcs_data_copying = args[:skip_gcs_data_copying] if args.key?(:skip_gcs_data_copying)
  @skip_pypi_packages_installation = args[:skip_pypi_packages_installation] if args.key?(:skip_pypi_packages_installation)
  @snapshot_path = args[:snapshot_path] if args.key?(:snapshot_path)
end