generated/google/apis/file_v1/classes.rb in google-api-client-0.28.1 vs generated/google/apis/file_v1/classes.rb in google-api-client-0.28.2
- old
+ new
@@ -52,153 +52,10 @@
# Update properties of this object
def update!(**args)
end
end
- # File share configuration for the instance.
- class FileShareConfig
- include Google::Apis::Core::Hashable
-
- # File share capacity in gigabytes (GB).
- # Cloud Filestore defines 1 GB as 1024^3 bytes.
- # Corresponds to the JSON property `capacityGb`
- # @return [Fixnum]
- attr_accessor :capacity_gb
-
- # The name of the file share (must be 16 characters or less).
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
- @name = args[:name] if args.key?(:name)
- end
- end
-
- # A Cloud Filestore instance.
- class Instance
- include Google::Apis::Core::Hashable
-
- # Output only.
- # The time when the instance was created.
- # Corresponds to the JSON property `createTime`
- # @return [String]
- attr_accessor :create_time
-
- # Optional. A description of the instance (2048 characters or less).
- # Corresponds to the JSON property `description`
- # @return [String]
- attr_accessor :description
-
- # Server-specified ETag for the instance resource to prevent simultaneous
- # updates from overwriting each other.
- # Corresponds to the JSON property `etag`
- # @return [String]
- attr_accessor :etag
-
- # File system shares on the instance.
- # For this version, only a single file share is supported.
- # Corresponds to the JSON property `fileShares`
- # @return [Array<Google::Apis::FileV1::FileShareConfig>]
- attr_accessor :file_shares
-
- # Resource labels to represent user provided metadata.
- # Corresponds to the JSON property `labels`
- # @return [Hash<String,String>]
- attr_accessor :labels
-
- # Output only.
- # The resource name of the instance, in the format
- # projects/`project_id`/locations/`location_id`/instances/`instance_id`.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- # VPC networks to which the instance is connected.
- # For this version, only a single network is supported.
- # Corresponds to the JSON property `networks`
- # @return [Array<Google::Apis::FileV1::NetworkConfig>]
- attr_accessor :networks
-
- # Output only.
- # The instance state.
- # Corresponds to the JSON property `state`
- # @return [String]
- attr_accessor :state
-
- # Output only.
- # Additional information about the instance state, if available.
- # Corresponds to the JSON property `statusMessage`
- # @return [String]
- attr_accessor :status_message
-
- # The service tier of the instance.
- # Corresponds to the JSON property `tier`
- # @return [String]
- attr_accessor :tier
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @create_time = args[:create_time] if args.key?(:create_time)
- @description = args[:description] if args.key?(:description)
- @etag = args[:etag] if args.key?(:etag)
- @file_shares = args[:file_shares] if args.key?(:file_shares)
- @labels = args[:labels] if args.key?(:labels)
- @name = args[:name] if args.key?(:name)
- @networks = args[:networks] if args.key?(:networks)
- @state = args[:state] if args.key?(:state)
- @status_message = args[:status_message] if args.key?(:status_message)
- @tier = args[:tier] if args.key?(:tier)
- end
- end
-
- # ListInstancesResponse is the result of ListInstancesRequest.
- class ListInstancesResponse
- include Google::Apis::Core::Hashable
-
- # A list of instances in the project for the specified location.
- # If the `location` value in the request is "-", the response contains a list
- # of instances from all locations. If any location is unreachable, the
- # response will only return instances in reachable locations and the
- # "unreachable" field will be populated with a list of unreachable locations.
- # Corresponds to the JSON property `instances`
- # @return [Array<Google::Apis::FileV1::Instance>]
- attr_accessor :instances
-
- # The token you can use to retrieve the next page of results. Not returned
- # if there are no more results in the list.
- # Corresponds to the JSON property `nextPageToken`
- # @return [String]
- attr_accessor :next_page_token
-
- # Locations that could not be reached.
- # Corresponds to the JSON property `unreachable`
- # @return [Array<String>]
- attr_accessor :unreachable
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @instances = args[:instances] if args.key?(:instances)
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
- @unreachable = args[:unreachable] if args.key?(:unreachable)
- end
- end
-
# The response message for Locations.ListLocations.
class ListLocationsResponse
include Google::Apis::Core::Hashable
# A list of locations that matches the specified filter in the request.
@@ -289,59 +146,9 @@
@display_name = args[:display_name] if args.key?(:display_name)
@labels = args[:labels] if args.key?(:labels)
@location_id = args[:location_id] if args.key?(:location_id)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
- end
- end
-
- # Network configuration for the instance.
- class NetworkConfig
- include Google::Apis::Core::Hashable
-
- # Output only.
- # IPv4 addresses in the format
- # `octet 1`.`octet 2`.`octet 3`.`octet 4` or IPv6 addresses in the format
- # `block 1`:`block 2`:`block 3`:`block 4`:`block 5`:`block 6`:`block 7`:`block 8`
- # .
- # Corresponds to the JSON property `ipAddresses`
- # @return [Array<String>]
- attr_accessor :ip_addresses
-
- # Internet protocol versions for which the instance has IP addresses
- # assigned. For this version, only MODE_IPV4 is supported.
- # Corresponds to the JSON property `modes`
- # @return [Array<String>]
- attr_accessor :modes
-
- # The name of the Google Compute Engine
- # [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
- # instance is connected.
- # Corresponds to the JSON property `network`
- # @return [String]
- attr_accessor :network
-
- # A /29 CIDR block in one of the
- # [internal IP address ranges](https://www.arin.net/knowledge/address_filters.
- # html)
- # that identifies the range of IP addresses reserved for this
- # instance. For example, 10.0.0.0/29 or 192.168.0.0/29. The range you specify
- # can't overlap with either existing subnets or assigned IP address ranges
- # for other Cloud Filestore instances in the selected VPC network.
- # Corresponds to the JSON property `reservedIpRange`
- # @return [String]
- attr_accessor :reserved_ip_range
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
- @modes = args[:modes] if args.key?(:modes)
- @network = args[:network] if args.key?(:network)
- @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.