Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix typos #707

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/fog/aws/elasticache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def setup_credentials(options)
@aws_access_key_id = options[:aws_access_key_id]
end

# returns an Array of (Mock) elasticache nodes, representated as Hashes
# returns an Array of (Mock) elasticache nodes, represented as Hashes
def create_cache_nodes(cluster_id, num_nodes = 1, port = '11211')
(1..num_nodes).map do |node_number|
node_id = "%04d" % node_number
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/models/compute/dhcp_option.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize(attributes={})
super
end

# Associates an existing dhcp configration set with a VPC
# Associates an existing dhcp configuration set with a VPC
#
# dhcp_option.attach(dopt-id, vpc-id)
#
Expand Down
6 changes: 3 additions & 3 deletions lib/fog/aws/models/compute/flavors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class Compute
},
{
:id => 't4g.nano',
:name => 'T4G Nano Instace',
:name => 'T4G Nano Instance',
:bits => 64,
:cores => 2,
:disk => 0,
Expand Down Expand Up @@ -318,7 +318,7 @@ class Compute
},
{
:id => 't4g.medium',
:name => 'T4G Medium Instace',
:name => 'T4G Medium Instance',
:bits => 64,
:cores => 2,
:disk => 0,
Expand Down Expand Up @@ -3558,7 +3558,7 @@ class Compute
},
{
:id => "m6a.48xlarge",
:name => "m6a Fourty Eight Extra Large",
:name => "m6a Forty Eight Extra Large",
:bits => 64,
:cores => 192,
:ram => 824634,
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/models/compute/network_interfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def initialize(attributes)
#
# Returns an array of all network interfaces
#
#>> AWS.network_interfaves.all
#>> AWS.network_interfaces.all
# <Fog::AWS::Compute::NetworkInterfaces
# filters={}
# [
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/models/elasticache/cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def save
:engine_version => engine_version,
:notification_topic_arn => notification_config['TopicArn'],
:port => port,
:preferred_availablility_zone => zone,
:preferred_availability_zone => zone,
:preferred_maintenance_window => maintenance_window,
:s3_snapshot_location => s3_snapshot_location,
:parameter_group_name => parameter_group_name || parameter_group['CacheParameterGroupName'],
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/models/storage/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def public_url
# @param [Hash] options
# @option options [String] acl sets x-amz-acl HTTP header. Valid values include, private | public-read | public-read-write | authenticated-read | bucket-owner-read | bucket-owner-full-control
# @option options [String] cache_control sets Cache-Control header. For example, 'No-cache'
# @option options [String] content_disposition sets Content-Disposition HTTP header. For exampple, 'attachment; filename=testing.txt'
# @option options [String] content_disposition sets Content-Disposition HTTP header. For example, 'attachment; filename=testing.txt'
# @option options [String] content_encoding sets Content-Encoding HTTP header. For example, 'x-gzip'
# @option options [String] content_md5 sets Content-MD5. For example, '79054025255fb1a26e4bc422aef54eb4'
# @option options [String] content_type Content-Type. For example, 'text/plain'
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/parsers/iam/list_server_certificates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def end_element(name)
when 'member'
@response['Certificates'] << @certificate
reset_certificate
when 'IsTrunctated'
when 'IsTruncated'
@response[name] = !!value
when 'Marker'
@response[name] = value
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/parsers/rds/db_cluster_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def end_element(name)
when 'VpcSecurityGroupId'
@vpc_security_group[name] = value
when 'Status'
# Unfortunately, status is used in VpcSecurityGroupMemebership and
# Unfortunately, status is used in VpcSecurityGroupMembership and
# DBSecurityGroups
if @in_db_security_groups
@db_security_group[name]=value
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/parsers/rds/db_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def end_element(name)
when 'VpcSecurityGroupId'
@vpc_security_group[name] = value
when 'Status'
# Unfortunately, status is used in VpcSecurityGroupMemebership and
# Unfortunately, status is used in VpcSecurityGroupMembership and
# DBSecurityGroups
if @in_db_security_groups
@db_security_group[name]=value
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/parsers/rds/modify_db_subnet_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module AWS
module RDS
class ModifyDBSubnetGroup < Fog::Parsers::Base
def reset
@response = { 'ModifyDBSubnetGrouptAttributeResult' => {}, 'ResponseMetadata' => {} }
@response = { 'ModifyDBSubnetGroupAttributeResult' => {}, 'ResponseMetadata' => {} }
end

def start_element(name, attrs = [])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def start_element(name, attrs = [])
def end_element(name)
super
case name
when 'ClusterSubnetGroupName', 'Desciption', 'VpcId', 'SubnetGroupStatus'
when 'ClusterSubnetGroupName', 'Description', 'VpcId', 'SubnetGroupStatus'
@response[name] = value
when 'SubnetIdentifier', 'SubnetStatus'
@subnet[name] = value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Real
# * auto_scaling_group_name<~String> - The name of the Auto Scaling
# group.
# * options<~Hash>:
# 'TagetGroupARNs'<~Array> - A list of target group arns to use.
# 'TargetGroupARNs'<~Array> - A list of target group arns to use.
#
# ==== See Also
# http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_AttachLoadBalancerTargetGroups.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Real
# * 'ActivityId'<~String> - Specifies the ID of the activity.
# * 'AutoScalingGroupName'<~String> - The name of the Auto
# Scaling group.
# * 'Cause'<~String> - Contins the reason the activity was
# * 'Cause'<~String> - Contains the reason the activity was
# begun.
# * 'Description'<~String> - Contains a friendly, more verbose
# description of the scaling activity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Real
# http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_PutScheduledUpdateGroupAction.html
#
def put_scheduled_update_group_action(auto_scaling_group_name, scheduled_action_name, time=nil, options = {})
# The 'Time' paramenter is now an alias for StartTime and needs to be identical if specified.
# The 'Time' parameter is now an alias for StartTime and needs to be identical if specified.
time = options['StartTime'].nil? ? time : options['StartTime']
if !time.nil?
time = time.class == Time ? time.utc.iso8601 : Time.parse(time).utc.iso8601
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/cloud_formation/create_change_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Real
# * UsePreviousTemplate [Boolean] Reuse the template that is associated with the stack to create the change set.
# * NotificationARNs [Array] List of SNS topics to publish events to.
# * Parameters [Hash] Hash of providers to supply to template.
# * Capabilities [Array] List of capabilties the stack is granted. Currently CAPABILITY_IAM for allowing the creation of IAM resources.
# * Capabilities [Array] List of capabilities the stack is granted. Currently CAPABILITY_IAM for allowing the creation of IAM resources.
#
# @return [Excon::Response]:
# * body [Hash:
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/cloud_formation/create_stack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Real
# * NotificationARNs [Array] List of SNS topics to publish events to.
# * Parameters [Hash] Hash of providers to supply to template
# * TimeoutInMinutes [Integer] Minutes to wait before status is set to CREATE_FAILED
# * Capabilities [Array] List of capabilties the stack is granted. Currently CAPABILITY_IAM for allowing the creation of IAM resources
# * Capabilities [Array] List of capabilities the stack is granted. Currently CAPABILITY_IAM for allowing the creation of IAM resources
# * StackPolicyBody [String] Structure containing the stack policy body.
# * StackPolicyURL [String] URL of file containing the stack policy.
# * Tags [Array] Key-value pairs to associate with this stack.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Real
#
# @return [Excon::Response]:
# * body [Hash:
# * Capabilities [Array] List of capabilties in the template.
# * Capabilities [Array] List of capabilities in the template.
# * CapabilitiesReason [String] The list of resources that generated the values in the Capabilities response element.
# * Description [String] Template Description.
# * Metadata [String] Template Metadata.
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/cloud_formation/update_stack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Real
# or (one of the two Template parameters is required)
# * TemplateURL [String] URL of file containing the template body.
# * Parameters [Hash] Hash of providers to supply to template.
# * Capabilities [Array] List of capabilties the stack is granted. Currently CAPABILITY_IAM for allowing the creation of IAM resources.
# * Capabilities [Array] List of capabilities the stack is granted. Currently CAPABILITY_IAM for allowing the creation of IAM resources.
# * NotificationARNs [Array] List of SNS topics to publish events to.
# * ResourceTypes [Array] The template resource types that you have permissions to work.
# * StackPolicyBody [String] Structure containing the stack policy body.
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/cloud_watch/list_metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class CloudWatch
class Real
require 'fog/aws/parsers/cloud_watch/list_metrics'

# List availabe metrics
# List available metrics
#
# ==== Options
# * Dimensions<~Array>: a list of dimensions to filter against,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Real
# Add permissions to a security group
#
# ==== Parameters
# * group_name<~String> - Name of group, optional (can also be specifed as GroupName in options)
# * group_name<~String> - Name of group, optional (can also be specified as GroupName in options)
# * options<~Hash>:
# * 'GroupName'<~String> - Name of security group to modify
# * 'GroupId'<~String> - Id of security group to modify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Real
# Add permissions to a security group
#
# ==== Parameters
# * group_name<~String> - Name of group, optional (can also be specifed as GroupName in options)
# * group_name<~String> - Name of group, optional (can also be specified as GroupName in options)
# * options<~Hash>:
# * 'GroupName'<~String> - Name of security group to modify
# * 'GroupId'<~String> - Id of security group to modify
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/compute/create_network_interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Real
# * 'availabilityZone'<~String> - The availability zone
# * 'description'<~String> - The description
# * 'ownerId'<~String> - The ID of the person who created the interface
# * 'requesterId'<~String> - The ID ot teh entity requesting this interface
# * 'requesterId'<~String> - The ID or the entity requesting this interface
# * 'requesterManaged'<~String> -
# * 'status'<~String> - "available" or "in-use"
# * 'macAddress'<~String> -
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/compute/create_vpc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def create_vpc(cidrBlock, options = {})
route_table = self.data[:route_tables].find { |routetable| routetable["routeTableId"].eql? default_route.id }

# This pushes a main route to the associationSet
# add_route_association(routeTableId, subnetId, main=false) is declared in assocate_route_table.rb
# add_route_association(routeTableId, subnetId, main=false) is declared in associate_route_table.rb
assoc = add_route_association(default_route.id, nil, true)
route_table["associationSet"].push(assoc)

Expand Down
4 changes: 2 additions & 2 deletions lib/fog/aws/requests/compute/describe_network_interfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Real
# * 'availabilityZone'<~String> - The availability zone
# * 'description'<~String> - The description
# * 'ownerId'<~String> - The ID of the person who created the interface
# * 'requesterId'<~String> - The ID ot teh entity requesting this interface
# * 'requesterId'<~String> - The ID of the entity requesting this interface
# * 'requesterManaged'<~String> -
# * 'status'<~String> - "available" or "in-use"
# * 'macAddress'<~String> -
Expand Down Expand Up @@ -49,7 +49,7 @@ class Real
# * 'privateIpAddresses' <~Array>:
# * 'privateIpAddress'<~String> - One of the additional private ip address
# * 'privateDnsName'<~String> - The private DNS associate to the ip address
# * 'primay'<~String> - Whether main ip associate with NIC true of false
# * 'primary'<~String> - Whether main ip associate with NIC true of false
#
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/2012-03-01/APIReference/index.html?ApiReference-query-DescribeNetworkInterfaces.html]
def describe_network_interfaces(filters = {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Real
# ==== Parameters
# * network_interface_id<~String> - The ID of the network interface you want to describe an attribute of
# * attribute<~String> - The attribute to modify, must be one of 'description', 'groupSet', 'sourceDestCheck' or 'attachment'
# * value<~Object> - New value of attribute, the actual tyep depends on teh attribute:
# * value<~Object> - New value of attribute, the actual type depends on the attribute:
# description - a string
# groupSet - a list of group id's
# sourceDestCheck - a boolean value
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/compute/modify_volume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Real
# * volume_id<~String> - The ID of the volume
# * options<~Hash>:
# * 'VolumeType'<~String> - Type of volume
# * 'Size'<~Integer> - Size in GiBs fo the volume
# * 'Size'<~Integer> - Size in GiBs of the volume
# * 'Iops'<~Integer> - Number of IOPS the volume supports
#
# ==== Response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Real
# Remove permissions from a security group
#
# ==== Parameters
# * group_name<~String> - Name of group, optional (can also be specifed as GroupName in options)
# * group_name<~String> - Name of group, optional (can also be specified as GroupName in options)
# * options<~Hash>:
# * 'GroupName'<~String> - Name of security group to modify
# * 'GroupId'<~String> - Id of security group to modify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Real
# Remove permissions from a security group
#
# ==== Parameters
# * group_name<~String> - Name of group, optional (can also be specifed as GroupName in options)
# * group_name<~String> - Name of group, optional (can also be specified as GroupName in options)
# * options<~Hash>:
# * 'GroupName'<~String> - Name of security group to modify
# * 'GroupId'<~String> - Id of security group to modify
Expand Down
4 changes: 2 additions & 2 deletions lib/fog/aws/requests/compute/run_instances.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Real
# * 'Ebs.VolumeType'<~String> - Type of EBS volue. Valid options in ['standard', 'io1'] default is 'standard'.
# * 'Ebs.Iops'<~String> - The number of I/O operations per second (IOPS) that the volume supports. Required when VolumeType is 'io1'
# * 'HibernationOptions'<~Array>: array of hashes
# * 'Configured'<~Boolean> - specifies whether or not the instance is configued for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites.
# * 'Configured'<~Boolean> - specifies whether or not the instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites.
# * 'NetworkInterfaces'<~Array>: array of hashes
# * 'NetworkInterfaceId'<~String> - An existing interface to attach to a single instance
# * 'DeviceIndex'<~String> - The device index. Applies both to attaching an existing network interface and creating a network interface
Expand All @@ -46,7 +46,7 @@ class Real
# * 'AssociatePublicIpAddress'<~String> - Indicates whether to assign a public IP address to an instance in a VPC. The public IP address is assigned to a specific network interface
# * 'TagSpecifications'<~Array>: array of hashes
# * 'ResourceType'<~String> - Type of resource to apply tags on, e.g: instance or volume
# * 'Tags'<~Array> - List of hashs reprensenting tag to be set
# * 'Tags'<~Array> - List of hashes reprensenting tag to be set
# * 'Key'<~String> - Tag name
# * 'Value'<~String> - Tag value
# * 'ClientToken'<~String> - unique case-sensitive token for ensuring idempotency
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/data_pipeline/deactivate_pipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def deactivate_pipeline(id, cancel_active=true)

response = request({
:body => Fog::JSON.encode(params),
:headers => { 'X-Amz-Target' => 'DataPipeline.DectivatePipeline' }
:headers => { 'X-Amz-Target' => 'DataPipeline.DeactivatePipeline' }
})
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/ecs/list_task_definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Real
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'TaskDefinitionArns' <~Array> - list of task definition Amazon Resource Name (ARN) entries for the ListTaskDefintions request.
# * 'TaskDefinitionArns' <~Array> - list of task definition Amazon Resource Name (ARN) entries for the ListTaskDefinitions request.
# * 'NextToken' <~String> - nextToken value to include in a future ListTaskDefinitions request
def list_task_definitions(params={})
request({
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/efs/create_file_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def create_file_system(creation_token, options={})
:method => 'POST',
:expects => 201,
'CreationToken' => creation_token,
'PerformanceMode' => options[:peformance_mode] || 'generalPurpose',
'PerformanceMode' => options[:performance_mode] || 'generalPurpose',
'Encrypted' => options[:encrypted] || false
}
params[:kms_key_id] = options[:kms_key_id] if options.key?(:kms_key_id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def authorize_cache_security_group_ingress(name, ec2_name, ec2_owner_id)
if sec_group = self.data[:security_groups][name]

if sec_group['EC2SecurityGroups'].find{|h| h['EC2SecurityGroupName'] == opts['EC2SecurityGroupName']}
raise Fog::AWS::Elasticache::AuthorizationAlreadyExists.new("AuthorizationAlreadyExists => #{opts['EC2SecurityGroupName']} is alreay defined")
raise Fog::AWS::Elasticache::AuthorizationAlreadyExists.new("AuthorizationAlreadyExists => #{opts['EC2SecurityGroupName']} is already defined")
end
sec_group['EC2SecurityGroups'] << opts.merge({'Status' => 'authorizing'})

Expand Down
Loading