diff --git a/api_names_out.yaml b/api_names_out.yaml index 5c9b24c3d..40ce9727c 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -103957,6 +103957,8 @@ "/file:v1/FileShareConfig": file_share_config "/file:v1/FileShareConfig/capacityGb": capacity_gb "/file:v1/FileShareConfig/name": name +"/file:v1/FileShareConfig/nfsExportOptions": nfs_export_options +"/file:v1/FileShareConfig/nfsExportOptions/nfs_export_option": nfs_export_option "/file:v1/FileShareConfig/sourceBackup": source_backup "/file:v1/GoogleCloudSaasacceleratorManagementProvidersV1Instance": google_cloud_saasaccelerator_management_providers_v1_instance "/file:v1/GoogleCloudSaasacceleratorManagementProvidersV1Instance/consumerDefinedName": consumer_defined_name @@ -104087,6 +104089,13 @@ "/file:v1/NetworkConfig/modes/mode": mode "/file:v1/NetworkConfig/network": network "/file:v1/NetworkConfig/reservedIpRange": reserved_ip_range +"/file:v1/NfsExportOptions": nfs_export_options +"/file:v1/NfsExportOptions/accessMode": access_mode +"/file:v1/NfsExportOptions/anonGid": anon_gid +"/file:v1/NfsExportOptions/anonUid": anon_uid +"/file:v1/NfsExportOptions/ipRanges": ip_ranges +"/file:v1/NfsExportOptions/ipRanges/ip_range": ip_range +"/file:v1/NfsExportOptions/squashMode": squash_mode "/file:v1/Operation": operation "/file:v1/Operation/done": done "/file:v1/Operation/error": error diff --git a/generated/google/apis/file_v1.rb b/generated/google/apis/file_v1.rb index 10507533b..ad7298683 100644 --- a/generated/google/apis/file_v1.rb +++ b/generated/google/apis/file_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/filestore/ module FileV1 VERSION = 'V1' - REVISION = '20201029' + REVISION = '20201208' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/file_v1/classes.rb b/generated/google/apis/file_v1/classes.rb index 5828d4d49..887fce80c 100644 --- a/generated/google/apis/file_v1/classes.rb +++ b/generated/google/apis/file_v1/classes.rb @@ -271,6 +271,11 @@ module Google # @return [String] attr_accessor :name + # Nfs Export Options. There is a limit of 10 export options per file share. + # Corresponds to the JSON property `nfsExportOptions` + # @return [Array] + attr_accessor :nfs_export_options + # The resource name of the backup, in the format projects/`project_number`/ # locations/`location_id`/backups/`backup_id`, that this file share has been # restored from. @@ -286,6 +291,7 @@ module Google def update!(**args) @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb) @name = args[:name] if args.key?(:name) + @nfs_export_options = args[:nfs_export_options] if args.key?(:nfs_export_options) @source_backup = args[:source_backup] if args.key?(:source_backup) end end @@ -1065,6 +1071,61 @@ module Google end end + # NFS export options specifications. + class NfsExportOptions + include Google::Apis::Core::Hashable + + # Either READ_ONLY, for allowing only read requests on the exported directory, + # or READ_WRITE, for allowing both read and write requests. The default is + # READ_WRITE. + # Corresponds to the JSON property `accessMode` + # @return [String] + attr_accessor :access_mode + + # An integer representing the anonymous group id with a default value of 65534. + # Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be + # returned if this field is specified for other squash_mode settings. + # Corresponds to the JSON property `anonGid` + # @return [Fixnum] + attr_accessor :anon_gid + + # An integer representing the anonymous user id with a default value of 65534. + # Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be + # returned if this field is specified for other squash_mode settings. + # Corresponds to the JSON property `anonUid` + # @return [Fixnum] + attr_accessor :anon_uid + + # List of either an IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.` + # octet 4` or CIDR ranges in the format `octet 1`.`octet 2`.`octet 3`.`octet 4`/` + # mask size` which may mount the file share. Overlapping IP ranges are not + # allowed, both within and across NfsExportOptions. An error will be returned. + # The limit is 64 IP ranges/addresses for each FileShareConfig among all + # NfsExportOptions. + # Corresponds to the JSON property `ipRanges` + # @return [Array] + attr_accessor :ip_ranges + + # Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or + # ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH. + # Corresponds to the JSON property `squashMode` + # @return [String] + attr_accessor :squash_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @access_mode = args[:access_mode] if args.key?(:access_mode) + @anon_gid = args[:anon_gid] if args.key?(:anon_gid) + @anon_uid = args[:anon_uid] if args.key?(:anon_uid) + @ip_ranges = args[:ip_ranges] if args.key?(:ip_ranges) + @squash_mode = args[:squash_mode] if args.key?(:squash_mode) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation diff --git a/generated/google/apis/file_v1/representations.rb b/generated/google/apis/file_v1/representations.rb index 29cf5a5b0..8333ee8a7 100644 --- a/generated/google/apis/file_v1/representations.rb +++ b/generated/google/apis/file_v1/representations.rb @@ -166,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NfsExportOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -278,6 +284,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :capacity_gb, :numeric_string => true, as: 'capacityGb' property :name, as: 'name' + collection :nfs_export_options, as: 'nfsExportOptions', class: Google::Apis::FileV1::NfsExportOptions, decorator: Google::Apis::FileV1::NfsExportOptions::Representation + property :source_backup, as: 'sourceBackup' end end @@ -476,6 +484,17 @@ module Google end end + class NfsExportOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :access_mode, as: 'accessMode' + property :anon_gid, :numeric_string => true, as: 'anonGid' + property :anon_uid, :numeric_string => true, as: 'anonUid' + collection :ip_ranges, as: 'ipRanges' + property :squash_mode, as: 'squashMode' + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/file_v1/synth.metadata b/generated/google/apis/file_v1/synth.metadata index 0a3c492b6..d8fc345ad 100644 --- a/generated/google/apis/file_v1/synth.metadata +++ b/generated/google/apis/file_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "cdb4e840d40bb3831448360e59b74b03dafa9fe0" + "sha": "5ab582b9fd0d10a9c077f19503e11742261f2755" } } ]